Wednesday, August 12, 2020

Extend XFS Linux partition


  • Running CentOS 8 on VMWare.


  • Increase disk volume size in VMWare
  • Reboot or scan for disk changes
    • ls /sys/class/scsi_device/
    • echo 1 > /sys/class/scsi_device/0\:0\:1\:0/device/rescan
  • SSH to server
  • Run the following commands (note: server data disk located at /dev/sdb)

yum install cloud-utils-growpart
growpart /dev/sdb 1
xfs_growfs -d /dev/sdb1

No comments:

Post a Comment