Operating System - HP-UX
1835940 Members
2061 Online
110088 Solutions
New Discussion

About extend logical volume

 
SOLVED
Go to solution
raymond lei
Occasional Contributor

About extend logical volume

I currently have to extend the logical volumes for /usr on two D-class with 10.20 because they are getting full and I am going to install new system application. One is HFS file system and the other is Vxfs. I tried to extend them on run-level 1, the system always says the device is busy enven after I used "fuser -ku /dev/vg00/lvolxx" to kill all of the processes on that device. I am not surprise about that it doesn't work on HFS, but why can't I do it on Vxfs whith OnlineJFS, it is supposed to get this kind of stuff done online?

Is there a way to extend the logical volume for /usr or other system directory no matter it is HFS or Vxfs?

Really appreciat any respons.

Raymondl
5 REPLIES 5
Solution

Re: About extend logical volume

Raymond,
I have extended /usr in the following manner..
1.Boot in single user mode hpux -is or go to single user mode and unmount /usr.
2.extends -F vxfs /dev/vg00lrlvolx
3.mount it again.

IF u require a step by step instruction.search for document id:KNC091997001
At any point of time you always walk in a straight line
Shyam Kishore
Frequent Advisor

Re: About extend logical volume

Hi,

1. Your /usr filesystem size will not grow much as it is a static directory even if your load any of the packages.

2. when you specify lvextend at prompt by default it may run from /usr/sbin directory, which is a part or your logical volume. If you confirm no process is runing from that /usr, use /sbin/lvextend to extend your filesystem size.

All the best.

-Shyam
Kids learn from masters, masters from mistakes.
Venu_2
Regular Advisor

Re: About extend logical volume

Hi,

Boot the system in single user mode to do this

1. Break the autoboot process
2. Interact with isl

ISL> hpux -is

# lvextend -L total_capacity_of_LV /dev/vg00/lvol??
# extendfs -F hfs/vxfs /dev/vg00/rlvol??
# mount /dev/vg00/lvol?? /mount_point


regards

venu
Rick Garland
Honored Contributor

Re: About extend logical volume

Boot into single user mode.
Doing the "init 1" does not put you into true single user mode.

If you are multiuser mode, do the init 1. Then do bdf.
You will see that the FS are still mounted. Cannot do the extendfs on mounted FS.
raymond lei
Occasional Contributor

Re: About extend logical volume

It works, thanks very much. Now I know the problem is that the "init 1" and "init s" can not bring system to real single user mode.
Raymondl