Operating System - HP-UX
1760319 Members
3571 Online
108893 Solutions
New Discussion юеВ

Re: Increasing partition size

 
SOLVED
Go to solution
Michael Selvesteen_2
Trusted Contributor

Increasing partition size

Hello Folks,

In my 11.23 box,the bdf command shows

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 409600 191560 216400 47% /
/dev/vg00/lvol1 298928 76352 192680 28% /stand
/dev/vg00/lvol8 4718592 443168 4243040 9% /var
/dev/vg00/lvol7 2211840 1695056 513784 77% /usr
/dev/vg00/lvol4 212992 8544 202920 4% /tmp
/dev/vg00/lvol6 2621440 2134240 484768 81% /opt
/dev/vg00/lvol5 32768 22592 10104 69% /home

I need to increase "/home"'s share. Is it possible without reinstalling the system.

Thanks for your help
6 REPLIES 6
Rainer von Bongartz
Honored Contributor
Solution

Re: Increasing partition size

Sure,

unless you have OnlineJFS you first need to
umount /home.

Then increase lvol5 and increase the file system /home.

If not experienced with lvextend and extendfs you might use SAM for this

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Pete Randall
Outstanding Contributor

Re: Increasing partition size

Michael,

Fortunately, /home is quite easy to extend. The man page for lvextend gives a good example:

"Increase the size of a file system existing on a logical volume.

First, increase the size of the logical volume.

lvextend -L 400 umount /dev/vg06/lvol3

Unmount the file system.

umount /dev/vg06/lvol3

Extend the file system to occupy the entire (larger) logical volume.

extendfs /dev/vg06/rlvol3

Remount the file system.

mount /dev/vg06/lvol3 /mnt/dev/vg06/lvol3"


Pete

Pete
Robert-Jan Goossens_1
Honored Contributor

Re: Increasing partition size

Hi Michael,

If you have online-jfs
lvextend ├в L [n] /dev/[vg]/[lvol]
fsadm ├в F vxfs ├в b [x] /[mount_point]
n = MB
x = KB

Without online-jfs
# umount /[mount_point]
# lvextend -L [n] /dev/[vg]/[lvol]
# extendfs -F vxfs /dev/[vg]/[rlovl]
[n] = MB

Regards,
R
Robert-Jan Goossens_1
Honored Contributor

Re: Increasing partition size

edited version.

If you have online-jfs
# lvextend -L [n] /dev/[vg]/[lvol]
# fsadm -b [x] /[mount_point]
n = MB
x = KB

Without online-jfs
# umount /[mount_point]
# lvextend -L [n] /dev/[vg]/[lvol]
# extendfs -F vxfs /dev/[vg]/[rlovl]
[n] = MB

Robert-Jan
Michael Selvesteen_2
Trusted Contributor

Re: Increasing partition size

Folks,

Thanks for all your help..It worked perfectly.
Michael Selvesteen_2
Trusted Contributor

Re: Increasing partition size

closing thread