aws ec2 ebs平滑扩容

amazon linux扩容
ebs增加容量
lsblk
0
sudo growpart /dev/nvme01n1 1 ##设备名
xfs_grwfs -d /data
sgdisk -g /dev/xvdd
https://repost.aws/zh-Hans/knowledge-center/create-lv-on-ebs-partition
 
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-存储里先扩容容量
再运行命令

posted on 2025-03-14 14:39  net2817  阅读(47)  评论(0)    收藏  举报

导航