cancel
Showing results for 
Search instead for 
Did you mean: 

increase the volume

atef_3
Contributor

increase the volume

In HP-UX 10.20,
How I can increase the volume of directory \home?
3 REPLIES
Pete Randall
Outstanding Contributor

Re: increase the volume

If you mean capacity, take a look at the man page for vgextend, lvextend and extendfs. The examples section of lvextend shows pretty clearly the steps you need to follow.


Pete

Pete
Ralph Grothe
Honored Contributor

Re: increase the volume

Find out what LV this filesystem resides on.

# bdf /home

Then look if you still have sufficient free PEs in vg00 (assuming that /home's LV is part of vg00)

# vgdisplay vg00|awk '/PE Size|Free PE/{print$NF}'|xargs printf "echo \$((%d*%d))\n"|sh

Decide how much you need to grow the FS
and extend the LV
e.g.

either giving the new end size in MB

# lvextend -L 512 /dev/vg00/lvol5

or in LEs
(e.g. grow by 24 LEs)

# lvextend -l $(($(lvdisplay /dev/vg00/lvol5|awk '/Current LE/{print$NF}')+24)) /dev/vg00/lvol5

Verify the LVs new size

# lvdisplay /dev/vg00/lvol5|awk '/LV Size/{print$NF}'

If you have OnlineJFS grow the mounted filesystem

e.g.

# fsadm -F vxfs -b $(lvdisplay /dev/vg00/lvol5|awk '/LV Size/{print$NF}')m /home

If you lack OnlineJFS you need to unmount /home
which probably requires your user's to logout.
Check if FS is in use

# fuser -c /home
Madness, thy name is system administration
NouZ
Occasional Advisor

Re: increase the volume

Are you using vxvm