admin

centos7 硬盘扩展手记

fdisk /dev/sda

新建分区

pvcreate /dev/sda3

pvdisplay

vgdisplay

vgextend /dev/mapper/rhel /dev/sda3

vgdisplay

lvextend -L +51.99G /dev/mapper/rhel

lvextend -L +51.99G /dev/mapper/rhel-root

lvdisplay /dev/mapper/rhel-root

vgdisplay

xfs_growfs /dev/mapper/rhel-root


#1楼
发帖时间:2019-3-14   |   查看数:0   |   回复数:0
游客组