Operating System - HP-UX
1832609 Members
2371 Online
110043 Solutions
New Discussion

Re: change mounted fs options

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

change mounted fs options

Hi guys,

I've many filesystem mounted with these options:

/oraarch06 on /dev/vg06PA/lvARCH6 nosuid,log,largefiles on Sat Dec 1 12:37:55 2007


I would like to change "log" for "delaylog" and add these option: nodatainlog,
mincache=direct,convosync=direct

Can I add/change them while filesystem is mounted? I'm running OnlineJFS 3.3

regards
Jonathan
9 REPLIES 9
Hasan  Atasoy
Honored Contributor
Solution

Re: change mounted fs options

hi jonathan ;

Assuming you have Online JFS, here is how to re-mount a filesystem:

mount -F vxfs -o delaylog,remount /somefilesys


please look at url

http://forums11.itrc.hp.com/service/forums/questionanswer.do;HP-FORUMS-S-WPA-IDX=HvDp1yRxhfwsWc5jqKTShTHvnc1Kjd67zYh8pxBJpKyHMCVJFyNp!-2121343701!525260783?threadId=180707


Hasan
Jonathan Caplette_1
Super Advisor

Re: change mounted fs options

Ok I read in that tread that it will work for FS that are listed in /etc/fstab...

Now my environement is using MC/SG... The options and filesystems are mounted with the SG script...

How can I do it online?
Sandman!
Honored Contributor

Re: change mounted fs options

Make changes in the package control script file and propogate those across all the nodes in the cluster. This ensures that the pkg startup script is updated on all the nodes. Shared filesystems i.e. those under MC/SG should not be listed in the /etc/fstab file.
Jonathan Caplette_1
Super Advisor

Re: change mounted fs options

I know I will have to replicate the options into the SG scripts... my question is:

Can I change the option on a FS online/mounted even if these FS are use with SG?

Hasan  Atasoy
Honored Contributor

Re: change mounted fs options

hi jonathan ;

add that fs to temporarily to fstab and change mount options then delete from fstab. as said previous post also change package scripts.


Hasan.
Sandman!
Honored Contributor

Re: change mounted fs options

>I know I will have to replicate the options into the SG scripts... my question is:

>Can I change the option on a FS online/mounted even if these FS are use with
>SG?

Yes you can in the array associated with a mounted filesystem in the package control script. For example.

FS_MOUNT_OPT[?]="-o nodatainlog,mincache=direct,convosync=direct"
James R. Ferguson
Acclaimed Contributor

Re: change mounted fs options

Hi Jonathan:

As far as I know, no current version of HP-UX has the Linux equivalent of 'mount -o remount' as when changing from a readonly to a read/write mounting without first explicitly un-mounting.

Regards!

...JRF...
Jonathan Caplette_1
Super Advisor

Re: change mounted fs options

Thanks guys...

I added an temporary entry in /etc/fstab for each filesystem that I had to change...

Did the mount ... with the new options, deleted the entry in /etc/fstab and then added the new options in the control script for MC/SG!

Regards!
Jonathan
James R. Ferguson
Acclaimed Contributor

Re: change mounted fs options

Hi (again) Jonathan:

UPDATE: You *CAN* perform this dynamically. Please see Duncan's post in:

http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1194209

See also, the '-o remount' option:

http://docs.hp.com/en/B3921-60631/mount_vxfs.1M.html


Regards!

...JRF...