data vg00 -wi-ao---- 5.85g
swap vg00 -wi-ao---- 1.95g
lvzx01 vgzx -wi-ao---- 4.00g
lvzx02 vgzx -wi-ao---- 5.00g
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-data
5.7G 1.9G 3.6G 34% /
tmpfs 499M 0 499M 0% /dev/shm
/dev/sda1 190M 36M 145M 20% /boot
/dev/mapper/vgzx-lvzx01
2.0G 3.0M 1.9G 1% /oradata
/dev/mapper/vgzx-lvzx02
2.0G 3.0M 1.9G 1% /orasoft
7)扩展文件系统resize2fs
从上面可以看出,LV分别做了扩展,但在操作系统上还没有显示为扩展
[root@localhost ~]# resize2fs /dev/mapper/vgzx-lvzx01
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vgzx-lvzx01 is mounted on /oradata; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mapper/vgzx-lvzx01 to 1048576 (4k) blocks.
The filesystem on /dev/mapper/vgzx-lvzx01 is now 1048576 blocks long.
[root@localhost ~]# resize2fs /dev/mapper/vgzx-lvzx02
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vgzx-lvzx02 is mounted on /orasoft; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mapper/vgzx-lvzx02 to 1310720 (4k) blocks.
The filesystem on /dev/mapper/vgzx-lvzx02 is now 1310720 blocks long.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-data
5.7G 1.9G 3.6G 34% /
tmpfs 499M 0 499M 0% /dev/shm
/dev/sda1 190M 36M 145M 20% /boot
/dev/mapper/vgzx-lvzx01
3.9G 4.0M 3.7G 1% /oradata
/dev/mapper/vgzx-lvzx02
4.9G 4.0M 4.7G 1% /orasoft