Created
April 3, 2019 09:46
-
-
Save wrossmck/018b86f0b61a7387428ae045e2d3bad3 to your computer and use it in GitHub Desktop.
expand centos7 disk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
echo 1 > /sys/block/sda/device/rescan | |
fdisk /dev/sda | |
p | |
n | |
p | |
3 | |
t | |
3 | |
8e | |
w | |
partprobe | |
pvcreate /dev/sda3 | |
pvdisplay | |
vgextend centos /dev/sda3 | |
lvextend -L +320G /dev/mapper/centos-root | |
xfs_growfs /dev/mapper/centos-root | |
df -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment