[root@guangdian lib]# vgdisplay --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size <1.09 TiB PE Size 4.00 MiB Total PE 285647 Alloc PE / Size 285646 / <1.09 TiB Free PE / Size 1 / 4.00 MiB VG UUID 4NKz0b-Alp0-gQJF-LmsB-R0JA-0WhR-RCzalL [root@guangdian lib]# lvdisplay --- Logical volume --- LV Path /dev/centos/swap LV Name swap VG Name centos LV UUID fUURt3-Ee42-aOiy-ZnWF-IOfc-aJ7p-JYVfIf LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:12 +0800 LV Status available # open 2 LV Size <31.44 GiB Current LE 8048 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/centos/home LV Name home VG Name centos LV UUID xeRdqP-oCOa-CzK7-V8Si-qjmM-eUYX-cGlj59 LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:13 +0800 LV Status available # open 1 LV Size 1.01 TiB Current LE 264798 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/centos/root LV Name root VG Name centos LV UUID BPsadR-H2iE-OgiL-t2DB-jL7S-m0Fq-N78Hby LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:30 +0800 LV Status available # open 1 LV Size 50.00 GiB Current LE 12800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
WARNING: Reducing active and open logical volume to 300.00 GiB. THIS MAY DESTROY YOUR DATA (filesystem etc.) Do you really want to reduce centos/home? [y/n]:
[root@guangdian lib]# vgdisplay --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 5 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size <1.09 TiB PE Size 4.00 MiB Total PE 285647 Alloc PE / Size 97648 / <381.44 GiB Free PE / Size 187999 / 734.37 GiB VG UUID 4NKz0b-Alp0-gQJF-LmsB-R0JA-0WhR-RCzalL [root@guangdian lib]# lvdisplay --- Logical volume --- LV Path /dev/centos/swap LV Name swap VG Name centos LV UUID fUURt3-Ee42-aOiy-ZnWF-IOfc-aJ7p-JYVfIf LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:12 +0800 LV Status available # open 2 LV Size <31.44 GiB Current LE 8048 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/centos/home LV Name home VG Name centos LV UUID xeRdqP-oCOa-CzK7-V8Si-qjmM-eUYX-cGlj59 LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:13 +0800 LV Status available # open 1 LV Size 300.00 GiB Current LE 76800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/centos/root LV Name root VG Name centos LV UUID BPsadR-H2iE-OgiL-t2DB-jL7S-m0Fq-N78Hby LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:30 +0800 LV Status available # open 1 LV Size 50.00 GiB Current LE 12800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
[root@guangdian lib]# lvdisplay --- Logical volume --- LV Path /dev/centos/swap LV Name swap VG Name centos LV UUID fUURt3-Ee42-aOiy-ZnWF-IOfc-aJ7p-JYVfIf LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:12 +0800 LV Status available # open 2 LV Size <31.44 GiB Current LE 8048 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/centos/home LV Name home VG Name centos LV UUID xeRdqP-oCOa-CzK7-V8Si-qjmM-eUYX-cGlj59 LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:13 +0800 LV Status available # open 1 LV Size 300.00 GiB Current LE 76800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/centos/root LV Name root VG Name centos LV UUID BPsadR-H2iE-OgiL-t2DB-jL7S-m0Fq-N78Hby LV Write Access read/write LV Creation host, time guangdian, 2017-12-27 16:32:30 +0800 LV Status available # open 1 LV Size 200.00 GiB Current LE 51200 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0