Operating System - HP-UX
1748230 Members
4221 Online
108759 Solutions
New Discussion юеВ

how can I extend the logical volume containing /usr ?

 
SOLVED
Go to solution
Ionut Grigorescu_2
Super Advisor

how can I extend the logical volume containing /usr ?

I have HP-UX 11.00, no Online JFS.
If it weren't for STRESS I'd have no energy at all
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: how can I extend the logical volume containing /usr ?

Hi,

You will have to shutdown and boot your server in single user mode.

Robert-Jan
Bryan D. Quinn
Respected Contributor
Solution

Re: how can I extend the logical volume containing /usr ?

Hello,

1. Bounce the box into single user mode.

2. lvextend -L new_size_in_MB /dev/vg00/lvolX

3. extendfs -F fs_type /dev/vg00/rlvolX

4. mount /usr

5. bdf and verify new size

6. Bounce the box into multi-user.

Hope this helps!

-Bryan
A. Clay Stephenson
Acclaimed Contributor

Re: how can I extend the logical volume containing /usr ?

Shutdown and come up in single user. The commands needs are lvextend and extendfs -- both of these are statically linked and thus do not need /usr mounted to run. You should print the man pages out beforehand because you won't have them in single-user mode.
If it ain't broke, I can fix that.
Ionut Grigorescu_2
Super Advisor

Re: how can I extend the logical volume containing /usr ?

thanks all! case closed
If it weren't for STRESS I'd have no energy at all
Hazem Mahmoud_3
Respected Contributor

Re: how can I extend the logical volume containing /usr ?

Unfortunately /usr is one of those filesystems that you cannot unmount. Therefore you will need to do the following:
Reboot
Interrupt the boot sequence and type "hpux -is" then when prompted for interact with IPL say Y.
lvextend -L /dev/vg00/
extendfs /dev/vg00/

-Hazem