aws ec2 ebs平滑扩容
amazon linux扩容
ebs增加容量
lsblk

sudo growpart /dev/nvme01n1 1 ##设备名
xfs_grwfs -d /data
sgdisk -g /dev/xvdd
MBR只支持2TB,超过2TB的扩容
先采用 sgdisk -g /dev/nvme1n1 把MBR转换成GPT
如果提示:
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Aborting write of new partition table.
上述错误需要先在aws-ec2-存储里先扩容容量
再运行命令
浙公网安备 33010602011771号