Sometimes we are facing with the growth of using the vg00 in our HP-UX system. As we know the vg00 is usually used to store the file system of a server. I coincidentally faced with a problem where the /usr mount point greater up to 93%. For the anticipation and keep the system is running we have to increase the volume of the mount point.
/dev/vg00/lvol7 7667712 7130224 533344 93% /usr
On HP-UX are known onlineJFS that can be used for this purpose. Just to share the experiences, here are the steps to extend the /usr mount point using onlineJFS in HP-UX:
1.Perform backups Ignite especially if the system is large and critical. In anticipation of the unexpected matters.
2.Check availability onlineJFS facilities on the system, whether already installed
# swlist | grep -i online
BBBBBBB B.11.23.0609 HP OnLineJFS (Server)
OnlineDiag B.11.23.09.05 HPUX 11.23 Support Tools Bundle, June 2007
3.Check the available volume that can still be used.
vgdisplay v vg00
vgdisplay: Volume group "/dev/v" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "v".
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4356
VGDA 4
PE Size (Mbytes) 32
Total PE 8692
Alloc PE 8574
Free PE 118
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
4.Having completed all the requirements and then execution.
#lvextend -L 13000 /dev/vg00/lvol7
Warning: rounding up logical volume size to extent boundary at size "13024" MB.
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# bc
13000*1024
13312000
# fsadm -b 13312000 /usr
fsadm: /etc/default/fs is used for determining the file system type
UX:vxfs fsadm: INFO: V-3-25942: /dev/vg00/rlvol7 size increased from 7667712 sectors to 13312000 sectors
I think it will be different steps depend on the system and situation. Be careful and please double check the step before going worse.
/dev/vg00/lvol7 7667712 7130224 533344 93% /usr
On HP-UX are known onlineJFS that can be used for this purpose. Just to share the experiences, here are the steps to extend the /usr mount point using onlineJFS in HP-UX:
1.Perform backups Ignite especially if the system is large and critical. In anticipation of the unexpected matters.
2.Check availability onlineJFS facilities on the system, whether already installed
# swlist | grep -i online
BBBBBBB B.11.23.0609 HP OnLineJFS (Server)
OnlineDiag B.11.23.09.05 HPUX 11.23 Support Tools Bundle, June 2007
3.Check the available volume that can still be used.
vgdisplay v vg00
vgdisplay: Volume group "/dev/v" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "v".
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4356
VGDA 4
PE Size (Mbytes) 32
Total PE 8692
Alloc PE 8574
Free PE 118
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
4.Having completed all the requirements and then execution.
#lvextend -L 13000 /dev/vg00/lvol7
Warning: rounding up logical volume size to extent boundary at size "13024" MB.
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# bc
13000*1024
13312000
# fsadm -b 13312000 /usr
fsadm: /etc/default/fs is used for determining the file system type
UX:vxfs fsadm: INFO: V-3-25942: /dev/vg00/rlvol7 size increased from 7667712 sectors to 13312000 sectors
I think it will be different steps depend on the system and situation. Be careful and please double check the step before going worse.