Operating System - HP-UX
1825723 Members
2906 Online
109687 Solutions
New Discussion

change filesystem to largefile option without unmounting

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

change filesystem to largefile option without unmounting

Hello,

Is there any way to modify filesystem to accept large files without unmounting it?

I've a filesystem without largefile option, I need to extend a tablespace into this filesystem with a file bigger than 2 GB and I want to try to do it without stop database (some files from database are already stored there).

Thanks in advance for your help.
Regards,

Carles
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: change filesystem to largefile option without unmounting

Carles,

The man page doesn't mention anything about unmounting. I would just go ahead and try it:

fsadm -o largefiles /dev/vg02/lvol1


Pete

Pete
Pete Randall
Outstanding Contributor

Re: change filesystem to largefile option without unmounting

Carles,

The man page doesn't mention anything about unmounting. I would just go ahead and try it:

fsadm -o largefiles /mountpoint


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: change filesystem to largefile option without unmounting

If you have OnlineJFS then yes this is possible. All you need to do is execute fsadm -F vxfs -o largefiles /u01 and this can be done while the filesystem is mounted. You do not have to add the largefiles mount optiuon as this does not actually turn on or off largefiles.


If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: change filesystem to largefile option without unmounting

If you have OnlineJFS / AdvancedJFS then you can do this without unmounting the filesystem.

The syntax should be:

# fsadm -F vxfs -o largefiles /mountpoint

If you don't have OnlineJFs, then I believe you have to unmount first.
Geoff Wild
Honored Contributor

Re: change filesystem to largefile option without unmounting

That is correct - onlineJFS - you can do it on the fly - no OnlineJFS - then you have to unmount it.

swlist -l product |grep OnlineJFS


Don't forget to update /etc/fstab.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Olivier Masse
Honored Contributor

Re: change filesystem to largefile option without unmounting

If you're talking about mount-time parameters and the fsadm has been done, mount has a "-o remount" option that you can use to set SOME parameters dynamically -- don't know about largefiles, but it does with with the log options.

Try something like:
mount -o remount,largefiles /filesystem

Better do it on a test filesystem first.

Olivier.
Raj D.
Honored Contributor

Re: change filesystem to largefile option without unmounting

Hi Catles ,

You can change the flag to largfile with this command:

# fsadm -o largefiles /mount_point

( Where /mount_point is your filesystem mountpoint , not the lvol name )


Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: change filesystem to largefile option without unmounting

Hi Carles ,

You can change the flag to largfile with this command:

# fsadm -o largefiles /mount_point

( Where /mount_point is your filesystem mountpoint , not the lvol name )


Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Carles Viaplana
Valued Contributor

Re: change filesystem to largefile option without unmounting

Sorry for my delay!

Finally we have stopped system for maintenance and we updated filesystem at same time.

Thanks anyway for your help.
Regards,

Carles