Operating System - HP-UX
1832977 Members
2553 Online
110048 Solutions
New Discussion

Re: un mounting file systems

 
khilari
Regular Advisor

un mounting file systems

Hi people, well i wanted to know as to how do u unmount a filesystem like /var or /usr.
U do umount and it says file system busy. Then u do fuser -cu /home, and it shows all the users and the process numbers going on. Now, if i want to increase the file system of lets say / home on a live system, how do i do it. And also tell me where can i get online jfs from without purchasing it.

Thanks alot.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: un mounting file systems

Quite often the only way to unmount these root file systems is to reboot into single user mode. It is simply not possible to get rid of all the processes and user's that are using /var and /usr, so you have to reboot, interrupt the process and come up in single user mode. At that point, the file systems will not be mounted.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: un mounting file systems

And . . . you can't get OnlineJFS without purchasing it.


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: un mounting file systems

You cannot get OnlineJFS legally without purchasing it. Essentially, you are on the right track for unmounting a filesystem. You run fuser or lsof to identify processes that are using the filesystems and kill the processes. The difficulty is that some filesystems (e.g. /var) are all but impossible to umount because critical daemons are running. In that case, the solution is to shutdown and bring the system up in single-user mode.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: un mounting file systems

Hi:

The easiest way to deal with filesystems like '/var' and '/tmp' or '/home' is to boot *into* single-user mode where the filesystems are not mounted and do your resizing then. You may need to mount '/usr' to obtain access to commands but that is quite acceptable. When done with your filesystem maintenance, a reboot will bring you up easily and cleanly.

Having said this, this is one reason to purchase Online JFS. No, it is *not* free! However, it is worth far more than just being able to dynamically extend filesystems. Online JFS enables the ability to use additional mount options for potentially improved performance. See the manpages for 'mount_vxfs' for more information.

Regards!

...JRF...
Shahul
Esteemed Contributor

Re: un mounting file systems

Hi,

you may be able to unmount /home, by kicking out all the users, but /var and /usr are bit difficult to unmount when you are in multiuser mode. It's good to bring system to maintenance mode and do the work.

HP will not give online JFS with out paying for it, so you can't get it legally for free.

Hope this helps

Best of luck
Shahul