yumupgrades for production use, this is the repository for you.
Active subscription is required.
Sometimes you are running out of space on your system and need to increase disk size. Both AWS and Azure provide a visual interface to do this task. However, you also need to adjust your Linux filesystem to account for those changes. Here is how you do it for CentOS 7 system
Step 1. Expand the modified partition using
First, install the
yum install cloud-utils-growpart
Next, use it to grow the logical partition to extend to all the available space:
growpart /dev/sda 1
Step 2. Resize filesystem
Both AWS and Azure use XFS for the filesystem. You might have already tried:
And received this dreaded message because resize2fs does not account for XFS:
resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/sda1 Couldn't find valid filesystem superblock.
You should do something different instead. First, mount the root partition once again at
mount /dev/sda1 /mnt
Now you can complete the resizing with:
xfs_growfs -d /mnt