[root@obiapp-po-1p tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/RootVolGroup00-lv_root 7.8G 5.2G 2.2G 71% /
/dev/mapper/RootVolGroup00-lv_var 9.7G 790M 8.5G 9% /var
/dev/mapper/RootVolGroup00-lv_opt 20G 17G 2.3G 88% /opt
/dev/sda1 494M 18M 451M 4% /boot
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 4.0K 0 4.0K 0% /dev/vx
/dev/vx/dsk/clstrdg/datavol01 511G 20G 461G 5% /data
[root@obiapp-po-1p tmp]# vgdisplay
--- Volume group ---
VG Name RootVolGroup00
System ID
Format lvm2
====================================
====================================
Alloc PE / Size 1344 / 42.00 GB
Free PE / Size 2975 / 92.97 GB
===================================
==================================
[root@obiapp-po-1p tmp]# lvextend –L +20G /dev/RootVolGroup00/lv_opt
Extending logical volume lv_opt to 40.00 GB
Logical volume lv_opt successfully resized
[root@obiapp-po-1p tmp]# resize2fs /dev/RootVolGroup00/lv_opt
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/RootVolGroup00/lv_opt is mounted on /opt; on-line resizing required
Performing an on-line resize of /dev/RootVolGroup00/lv_opt to 10485760 (4k) blocks.
The filesystem on /dev/RootVolGroup00/lv_opt is now 10485760 blocks long.
[root@obiapp-po-1p tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/RootVolGroup00-lv_root 7.8G 5.2G 2.2G 71% /
/dev/mapper/RootVolGroup00-lv_var 9.7G 790M 8.5G 9% /var
/dev/mapper/RootVolGroup00-lv_opt 39G 17G 21G 44% /opt
/dev/sda1 494M 18M 451M 4% /boot
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 4.0K 0 4.0K 0% /dev/vx
/dev/vx/dsk/clstrdg/datavol01 511G 20G 461G 5% /data
[root@obiapp-po-1p tmp]#
No comments:
Post a Comment