Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # Before this is run you need to change the disk size on the cloud (or via cli)
  2.  
  3. # Get the partition and device information
  4. df -h
  5.  
  6. # Get the block size of the device and any partitions
  7. sudo lsblk
  8.  
  9. # Grow the device id and partion id (in this case sda1)
  10. sudo growpart /dev/sda 1
  11.  
  12. # Resize the mounted partition in this case /dev/sda1 mounts to /
  13. sudo xfs_growfs /
  14.  
  15. # Check it has all worked
  16. df -h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement