Follow the steps involved to increase the size of the existing logical volume.
Assuming your current file system size is 100MB (112) MB actually) and you want to extend this to 200MB. First lets see how much space you have left in the volume group.
# vgdisplay -v vgName
— Volume groups —
VG Name /dev/vgName
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4294
VGDA 2
PE Size (Mbytes) 16
Total PE 4284
Alloc PE 3469
Free PE 815
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
OK, so you have enough space (Free PE * PE Size = 13040) in the volume group to extend the logical volume.
# lvextend -L 200 /dev/vgName/lvNew123
# lvdisplay /dev/vgName/lvNew123
— Logical volumes —
LV Name /dev/vgName/lvNew123
VG Name /dev/vgName
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 208
Current LE 13
Allocated PE 13
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
The logical volume size is now showing as 208MB.
Assuming you have HP-UX online JFS, you can extend the file system online. I don’t see anybody not using this product in their environment. If you are still using the legacy system without online jfs then it involves much more steps to extend the file system. For now, lets proceed with extending the file system.
# fsadm -b 208M /file_system
You may wonder why have I used this “M”? Yes, it is perfectly fine to use “M” = Megabytes, even though it is not shown in the man pages.
# bdf /file_system
The file system will show up with new size.
Your IP Address is:
38.107.191.117
Clap



