Operating System - HP-UX
1833346 Members
2796 Online
110051 Solutions
New Discussion

Re: remounting /opt filesystem

 
Debbie Downing_2
Regular Advisor

remounting /opt filesystem

Hi

Is it possible to perform just a remount of /opt without unmount and mounting. I know this is possible on Linux but not sure if this is possible with HP-UX (11.23).

Regards

Debbie
6 REPLIES 6
Peter Godron
Honored Contributor

Re: remounting /opt filesystem

Debbie,
surely a mountpoint is either mounted or not.
Check with bdf.

You could try the mount command for /opt

See man 1m mount for details.
If the file system is already mounted, the message stating this would be displayed.

Pete Randall
Outstanding Contributor

Re: remounting /opt filesystem

Debbie,

What do you hope to accomplist with this? To me, /opt is either mounted or it is not. "Re-mounting" it is not going to make anything special happen - /opt will be exactly identical to how it was before the "re-mount".


Pete

Pete
Fabio Ettore
Honored Contributor

Re: remounting /opt filesystem

Hi,

usually people wants to umount/mount a filesystem in order to change option (eg. largefiles) or take a fsck on it or enlarge/decrease the size. If you have OnlineJFS you can simply accomplish last operation, in all other cases you need to umount/mount again the filesystem. I never heard about re-mount a filesystem on HP-UX.
Maybe a

mount /opt

should be sufficient, but pretty sure will give the message 'already mounted' for /opt.
Otherwise please clear better your needs.

Best regards,
Fabio
WISH? IMPROVEMENT!
Bill Hassell
Honored Contributor

Re: remounting /opt filesystem

/opt is always open (active) on a running system so umount /opt will fail (mountpoint busy). You can use lsof (download a copy) to see what processes are using /opt. You can also use fuser to see what is using /opt, but do NOT use the -k option! It will blindly kill all processes using /opt which is not a good idea until you review the list.


Bill Hassell, sysadmin
James R. Ferguson
Acclaimed Contributor

Re: remounting /opt filesystem

Hi Debbie:

Linux has far more variations for 'mount' than HP-UX. Perhaps if you clarify what it is that you would like to do, an alternative can be found.

Regards!

...JRF...
Ganesh Balraman
Regular Advisor

Re: remounting /opt filesystem

Dear Sir,

It is not at all possible to umount /opt on the running server , since most of the files are getting accesed .


Regds
B.Ganesh