Operating System - HP-UX
1837507 Members
3729 Online
110117 Solutions
New Discussion

increase the size of file system

 
unixuser
Advisor

increase the size of file system

Hi all,

i need to increase the size of "/u01" file sytem which is mounted on logical volume "lv00", but "/u01" file system size is 9 GB and logical volume "lvoo" size 9 GB.how do i increase the size of /u01.do i increase the size of logical volume "lv00" and then increase file system "/u01" or directly increase increase the size of "/u01".thanks a lot in advance.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: increase the size of file system

See the EXAMPLES section of "man lvextend".


Pete

Pete
Kapil Jha
Honored Contributor

Re: increase the size of file system

yeh u r right
first you would increase size of LV and then would span the filesystem over that increased LV.

lvextend -L xxxxM /path/to/LV (be sure u have space in volume group)
fsadm -b xxxxM /mount_point

always have a look over man page before playing with filesystem ;)

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Rahul Rai_1
Frequent Advisor

Re: increase the size of file system

Hi Unixuser,

Do you have jfs online feauture then you need to follow the Kapil's steps,

If you dont have online jfs feature then,

Ex:-

umount mount_directory
lvextend -L larger_size /dev/vg00/lvol1
extendfs -F fstype /dev/vg00/rlvol1
mount /dev/vg00/lvol1 mount_directory

and please assigne the points to my friends, I am not talking about me :)

Regards,
Rahul Rai.
Hakki Aydin Ucar
Honored Contributor

Re: increase the size of file system

Following is my notes from lab training:

# lvextend -L 522 /dev/vg00/lvol4 /dev/dsk/c3t5d
Warning: rounding up logical volume size to extent boundary at size "528" MB.
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
# umount /home
# extendfs /dev/vg00/rlvol4
# mount /home
# bdf /home
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 540672 213904 324232 40% /home