Skip to content

Instantly share code, notes, and snippets.

@duong1989
Last active October 19, 2021 10:27
Show Gist options
  • Save duong1989/ce41344999f5c2c38d50e3482847d37e to your computer and use it in GitHub Desktop.
Save duong1989/ce41344999f5c2c38d50e3482847d37e to your computer and use it in GitHub Desktop.
Grow disk
parted ->>
>>resizepart 3
902 pvdisplay
903 echo 1 > /sys/block/sda/device/rescan
904 lsblk
905 history
906 lvextend -l +100%FREE /dev/centos_s03/root
907 lsblk
908 pvresize /dev/sda3
909 lvextend -l +100%FREE /dev/centos_s03/root
910 xfs_growfs /dev/mapper/centos_s03-root
911 lsblk
912 df -h
913 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment