Skip to content

Instantly share code, notes, and snippets.

@FleXoft
Created July 6, 2021 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FleXoft/ae21effae18d3e98d2e9e3415cb5de79 to your computer and use it in GitHub Desktop.
Save FleXoft/ae21effae18d3e98d2e9e3415cb5de79 to your computer and use it in GitHub Desktop.
Linux increase root xfs partition size
# Base source: https://www.miarec.com/doc/administration-guide/doc1012
fdisk /dev/sda
poweroff
increase disk size at VMware side
fdisk /dev/sda
n
p
3
t
8e
w
partprobe -s
fdisk -l
pvcreate /dev/sda3
lsblk
vgdisplay
vgextend rhel /dev/sda3
pvscan
lvextend /dev/rhel/root /dev/sda3
xfs_growfs /dev/mapper/rhel-root
df -h
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment