Operating System - HP-UX
1833059 Members
2631 Online
110049 Solutions
New Discussion

Re: Help required in unmounting /usr

 
Manjunath Shastry
Frequent Advisor

Help required in unmounting /usr


I am considerably new to HP-UX Administration.

I was trying to increase the size of /usr file system, it required an unmount but I was unable to unmount it as it was active. I used fuser to track the active processes and kill them but they were System related ones.

How can I increase the size of the file Systems which reside in rootvg and are always active.

Would appreciate your help.
A Horse that kicks doesn 't pull
5 REPLIES 5
Ross Zubritski
Trusted Contributor

Re: Help required in unmounting /usr

Hi,

You will need to either purchase the On-Line JFS option which will allow to to increase "busy" filessystems, or reboot the server in single user mode and extend the filesystem.

Regards,

RZ
Pete Randall
Outstanding Contributor

Re: Help required in unmounting /usr

The only way to unmount /usr is to reboot in single user mode.

Pete

Pete
Vicente Sanchez_3
Respected Contributor

Re: Help required in unmounting /usr

Hi,

You have to do it in single user.

Reboot the machine, stop autoboot and boot manually with
hpux -is.

This boot in single user and now you are able to extend /usr.

Before booting write the name of the lvol where usr is located.

After change it do init 3 or the level the machines has.

And, evaluate buy JFS-Online.

HTH. Vicente.
James R. Ferguson
Acclaimed Contributor

Re: Help required in unmounting /usr

Hi:

You need to boot up into single user mode wherein '/usr' isn't mounted in the first place. Once there, use the commands in '/sbin' to increase your logical volume size and then the actual filesystem ('lvextend' and 'extendfs'). When done, reboot or do 'init 3' to enter multiuser mode.

Regards!

...JRF...
Jose Mosquera
Honored Contributor

Re: Help required in unmounting /usr

Hi,

Normally you can't umount /usr in multiuser mode, but... ...if you force this drastic command combination, /usr will be umonted

# fuser ???ku /dev/vg[nn]/lvol[n];umount /mount_point

In the past I've experimented troubles with sendmail service after do this, but just on 10.20

If you try this way or the ortodox ISL way you must do the followings steps to boot into SingleUser:

?? switch off/on the system
?? break bootprocess
?? boot to ISL
>boot pri isl
interact with IPL? YES
ISL> hpux -is

#lvextend ???L [new total size in Kb] /dev/vg[nn]/ lvol[n]
If fstyp = hfs
#extendfs ???F hfs /dev/vg[nn]/rlvol[n]
If fstyp = vxfs
#extendfs ???F vxfs /dev/vg[nn]/lvol[n]
#mount /dev/vg[nn]/lvol[n] /usr
#fsck /dev/vg[nn]/lvol[n]

Rgds.