[root@ip-10-171-1-80 ec2-user]# growpart /dev/nvme0n1 1
CHANGED: partition=1 start=4096 old: size=209711071 end=209715167 new: size=314568671 end=314572767
[root@ip-10-171-1-80 ec2-user]# xfs_growfs /dev/nvme0n1p1
meta-data=/dev/nvme0n1p1 isize=512 agcount=51, agsize=524159 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1 spinodes=0
data = bsize=4096 blocks=26213883, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 26213883 to 39321083
[root@ip-10-171-1-80 ec2-user]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 584K 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/nvme0n1p1 150G 66G 85G 44% /
overlay 150G 66G 85G 44% /var/lib/docker/overlay2/2a1d5f6d3e887f53b90f7b2892f5f2477b0c6b47e1da1ccf23dd184444ef0001/merged
overlay 150G 66G 85G 44% /var/lib/docker/overlay2/32b33a240f386dba6eeb1c31a3388b3e8ffef9848af3faf45a1bade21317a900/merged
fs-0a4ad829097550f09.efs.cn-northwest-1.amazonaws.com.cn:/ 8.0E 105G 8.0E 1% /home/ec2-user/efs
tmpfs 788M 0 788M 0% /run/user/1000
[root@ip-10-171-1-80 ec2-user]#
aws 硬盘xfs 格式扩容
于 2022-05-12 17:56:35 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)