HPE 9000 and HPE e3000 Servers
1845838 Members
2710 Online
110250 Solutions
New Discussion

Conversion of nolargefiles FS to largefiles FS without umount...!!!!

 
SOLVED
Go to solution
Selvaraj
Advisor

Conversion of nolargefiles FS to largefiles FS without umount...!!!!

can anyone tell me how to convert nolargefiles FS to largefiles FS without umounting the existing filesystem. Currently I am using the following command:-

For e.g:
/test (/dev/vg02/lvol6) is a 8GB filesystem of nolargefiles.

# /usr/sbin/umount /test
# /usr/sbin/fsadm -F vxfs -o largefiles /dev/vg02/rlvol6
# /usr/sbin/mount -F vxfs /dev/vg01/lvol6 /test

Instead of above example, I need better solution to make it reliable and to reduce the down time.

Thanks in advance......!!!!!
You can do it man !
6 REPLIES 6
Rita C Workman
Honored Contributor

Re: Conversion of nolargefiles FS to largefiles FS without umount...!!!!

I'm sorry, maybe someone else will know this kind of magic.

The only way I know to convert a file to largefiles is:

#umount /filesys
#fsadm -o largefiles /dev/vg/rlvol

Edit the /etc/fstab to include largefiles option

#mount /filesys

Regards,
Denver Osborn
Honored Contributor

Re: Conversion of nolargefiles FS to largefiles FS without umount...!!!!

The only other method would be to get the Advanced VxFS filesystem (online jfs)
It will allow you to make changes to vxfs filesystems while they are mounted.

To check if it's installed;

# swlist -l product |grep -i adv
AdvJournalFS B.10.20
The Advanced VxFS File System
Selvaraj
Advisor

Re: Conversion of nolargefiles FS to largefiles FS without umount...!!!!

We had advanced JFS installed in all our servers. But I want to know how convert nolargefiles filesystem to largefiles filesystem without unmounting...???
Can anyone help me!!!
You can do it man !
Denver Osborn
Honored Contributor
Solution

Re: Conversion of nolargefiles FS to largefiles FS without umount...!!!!

To convert to largefiles without unmounting a vxfs filesystem and having Online JFS installed use the following example

# fsadm -F vxfs -o largefiles /mnt_point

Verify "largefiles" with
# fsadm -F vxfs /dev/vg_name/rlvol_name

If the filesystem was not mounted with the largefiles option I don't think you can create files larger than 2GB even after setting largefiles bit - refer to man mount_vxfs. The default for mounting a vxfs filesystem is to mount it according the bit that is set. If largefiles bit is set then the default is to mount with the largefiles option. You can convert it to largefiles but may have to mount again for it to take. Keep in mind I havent tested it out myself, just going from what's provided in the man page.

Hope this helps you!

-Denver
Cheryl Griffin
Honored Contributor

Re: Conversion of nolargefiles FS to largefiles FS without umount...!!!!

Be sure to check out the largefile white paper in /usr/share/doc/lg_files.txt. It outlines how to convert to largefiles and nolargefiles.

Best Wishes
"Downtime is a Crime."
Wodisch
Honored Contributor

Re: Conversion of nolargefiles FS to largefiles FS without umount...!!!!

High,
with the Advanced JFS there is the "remount" option available. Just change your
mount-options on the fly with something like:
mount -F vxfs -o remount,largefiles /dir

I do not have the system available right now, but it is at least very similiar
to the command obove. Read the docu anyway ;-)

HTH,
Wodisch