Extend New Logical Volume
This shows how to increase the size of the logical volume of the mount point /rdbms/oradata/data2, size to increase was grab from unnecessary logical volume (/data1) on another VG (vg71).
$ bdf |grep vg56
/dev/vg56/lvol1 209715200 200494696 9148512 96% /rdbms/oradata/data2
$ bdf | grep vg71
/dev/vg71/lvol2 314507264 9630632 302495344 3% /data1
/dev/vg71/lvol3 314441728 218277456 95544216 70% /data2
The problem is VG71 have two logical volume, lvol2 (data1) and lvol3 (data2).
So first we must remove the unnecessary logical volume, then out the disk member of unnecessary logical volume (/dev/dsk/c64t15d5), after that you can extend the disk to another VG (vg56), extend the lvol (vg56|lvol1|/rdbms/oradata/data2), and verify the space.
Backup the data before use this step.
-verify the online JFS has installed
# swlist |grep -i jfs
B3929CA B.11.11.03.03 HP OnLineJFS
-Remove /dev/vg71/lvol2
# umount /data1
# lvremove /dev/vg71/lvol2
-step out the disk /dev/dsk/c64t15d5 from vg71
# vgreduce /dev/vg71 /dev/dsk/c64t15d5
-Added /dev/dsk/c64t15d5 to VG56
# vgextend /dev/vg56 /dev/dsk/c64t15d5
-Extend lvol1 from vg56
I’want to extend above 50GB, (source size is 209GB, so totally is 259GB)
# lvextend -L 259000 /dev/vg56/lvol1
-Now Increase with online JFS tools
# fsadm -b 265216000 /rdbms/oradata/data2
Note: 265216000= 259000 * 1024
-Verify
# bdf /rdbms/oradata/data2
Filesystem kbytes used avail %used Mounted on
/dev/vg56/lvol1 262078464 200496296 61101096 77% /rdbms/oradata/data2