centos扩展磁盘根分区

parted -s -a optimal /dev/sdb mklabel gpt -- mkpart primary xfs 1 -1
mkfs.xfs /dev/sdb1
pvcreate /dev/sdb1
vgextend centos /dev/sdb1
lvextend /dev/centos/root /dev/sdb1
xfs_growfs /dev/centos/root

  

posted @ 2022-01-22 10:42  Cetus-Y  阅读(79)  评论(0)    收藏  举报