【原创】大叔经验分享(92)阿里云主机磁盘扩容

控制台操作磁盘扩容后

1 安装

# yum install cloud-utils-growpart
# yum install xfsprogs

2 查看所有磁盘

# fdisk -l

3 查看分区大小

# df -h

4 磁盘扩容

# growpart /dev/vda 1

格式:growpart <DeviceName> <PartionNumber>

5 分区扩容

# resize2fs /dev/vda1

格式:resize2fs <PartitionName>

6 确认

# df -h

参考:https://help.aliyun.com/document_detail/111738.html?spm=a2c4g.11186623.2.30.4ad77f67UvYpVl#concept-ocb-htw-dhb

猜你喜欢

转载自www.cnblogs.com/barneywill/p/12041700.html