1832865 Members
2911 Online
110048 Solutions
New Discussion

Re: Extend /usr

 
Ali_11
Occasional Advisor

Extend /usr

Hi,

I want to extend /usr in VG00, but i'dont have JFS online so i must umount the FS to do an extendfs . What will hapenned if i do a fuser -ku to kill all process in this FS.

thanks.
10 REPLIES 10
Ravi_8
Honored Contributor

Re: Extend /usr

Hi, Ali.

you can't unmount /usr /home and /opt when system is in multiuser mode (even fuser -k xxx wouln't help)
Since you don't have On-line JFS, you have to get into single user mode to extend /usr.
never give up
Khalid A. Al-Tayaran
Valued Contributor

Re: Extend /usr



Hi,


Reboot your system and interrupt the booting process then type: hpux -is and answer no to interact with ISL.

Now you extend your /usr file system. Do lxextend then extendfs and your done.

eran maor
Honored Contributor

Re: Extend /usr

Hi

fuser -k will ot help you .

you need to boot the system to single user mode .

mount /var to have access to command and use the command :

lvextend -L m.b-size /dev/vg00/lvol?
and after that extendfs /dev/vg00/lvol?

love computers
Armin Feller
Honored Contributor

Re: Extend /usr

Hi,

try this:

# umount /
---> if message "device busy" try:
# fuser -k /
# umount /
---> if further message "device busy"

you have 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 /dev/vgXY/lvolX
# extendfs -F vxfs /dev/vgXY/rlvolx
# bdf


Regards ...
Armin
Jose Mosquera
Honored Contributor

Re: Extend /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:

#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] /opt
#fsck /dev/vg[nn]/lvol[n]

Rgds.
Rajeev  Shukla
Honored Contributor

Re: Extend /usr

You still wont be able to unmount /usr untill and unless you go to single user mode. So best is to boot the system in single user mode and then extend the /usr

Rajeev
Rory R Hammond
Trusted Contributor

Re: Extend /usr

shutting down the system to single user is a solution but downtime is usaully longer.

/usr is a pretty static file system. I create a new logical volume with the new size and mount it to /usr1.
find /usr |cpio -pdmu /usr1
copies the the data.

edit fstab change usr to usr1 and usr1 to usr and then reboot.
You can create and copy while the system is still in production. And thne schedule reboot, which is very short.

There are a 100 ways to do things and 97 of them are right
Ken Hubnik_2
Honored Contributor

Re: Extend /usr

Single user mode is the only way. HPUX -is
Paul Sperry
Honored Contributor

Re: Extend /usr

Single user mode
OR

add new lvm usr2
cd usr
find . ???print | cpio ???pcxvdmu /usr2
edit fstab comment out usr and change usr2 to usr
reboot
remove unused volumes.
Hai Nguyen_1
Honored Contributor

Re: Extend /usr

Ali,

Do not use fuser to kill processes which are using /usr in multi-user mode.
Instead, bring the server to the single-user mode to extend this filesystem.

Hai