1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| [root@ics-prod ~]# lvextend -l +100%FREE /dev/mapper/vgdata-lvdata Size of logical volume vgdata/lvdata changed from 350.00 GiB (89600 extents) to <400.00 GiB (102399 extents). Logical volume vgdata/lvdata successfully resized. [root@ics-prod ~]# df -h 文件系统 容量 已用 可用 已用% 挂载点 devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 785M 7.0G 10% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/mapper/centos-root 50G 20G 31G 40% / /dev/vda1 1014M 194M 821M 20% /boot /dev/mapper/vgdata-lvdata 350G 175G 176G 50% /data /dev/mapper/centos-home 42G 929M 41G 3% /home tmpfs 3.2G 0 3.2G 0% /run/user/0 overlay 50G 20G 31G 40% /var/lib/docker/overlay2/aea61d0d5be06da225f205b14c0806c27c5c9aaefbd9a030dfcfd295ba14a304/merged [root@ics-prod ~]# xfs_growfs /dev/mapper/vgdata-lvdata meta-data=/dev/mapper/vgdata-lvdata isize=512 agcount=4, agsize=22937600 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=0 spinodes=0 data = bsize=4096 blocks=91750400, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal bsize=4096 blocks=44800, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 data blocks changed from 91750400 to 104856576 [root@ics-prod ~]# df -h 文件系统 容量 已用 可用 已用% 挂载点 devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 785M 7.0G 10% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/mapper/centos-root 50G 20G 31G 40% / /dev/vda1 1014M 194M 821M 20% /boot /dev/mapper/vgdata-lvdata 400G 175G 226G 44% /data /dev/mapper/centos-home 42G 929M 41G 3% /home tmpfs 3.2G 0 3.2G 0% /run/user/0 overlay 50G 20G 31G 40% /var/lib/docker/overlay2/aea61d0d5be06da225f205b14c0806c27c5c9aaefbd9a030dfcfd295ba14a304/merged
|