磁盘扩容时报错 unexpected output in sfdisk

在给主机扩容时报错

[[email protected] network-scripts]# /usr/bin/growpart /dev/vda 1
unexpected output in sfdisk –version [sfdisk,来自 util-linux 2.23.2]

解决办法:重新设置语言

[[email protected] network-scripts]# LANG=en_US.UTF-8

再次扩容就可以了

[[email protected] network-scripts]# /usr/bin/growpart /dev/vda 1
CHANGED: partition=1 start=2048 old: size=33552384 end=33554432 new: size=104855519,end=104857567

[[email protected] network-scripts]# xfs_growfs /dev/vda1
meta-data=/dev/vda1 isize=512 agcount=4, agsize=1048512 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=4194048, 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 4194048 to 13106939

此条目发表在kvm分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注