1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| [root@localhost ~]# fdisk -l | grep '/dev/s' Disk /dev/sdc: 21.5 GB, 21474836480 bytes, 41943040 sectors Disk /dev/sda: 214.7 GB, 214748364800 bytes, 419430400 sectors /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 419430399 208665600 8e Linux LVM Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors Disk /dev/sdd: 21.5 GB, 21474836480 bytes, 41943040 sectors Disk /dev/sde: 161.1 GB, 161061273600 bytes, 314572800 sectors [root@localhost ~]# pvcreate /dev/sde [root@localhost ~]# vgs #查看已经存在的VG VG #PV #LV #SN Attr VSize VFree VG_chunli 3 1 0 wz--n- 59.99g 1012.00m cl 1 3 0 wz--n- 199.00g 4.00m [root@localhost ~]# [root@localhost ~]# vgextend cl /dev/sde #扩展cl [root@localhost ~]# lvextend --size 200G /dev/cl/home [root@localhost ~]# df -hT /dev/mapper/cl-home xfs 150G 33M 150G 1% /home [root@localhost ~]# xfs_growfs /dev/cl/home [root@localhost ~]# df -hT /dev/mapper/cl-home xfs 200G 33M 200G 1% /home [root@localhost ~]#
|