Posts
read more
Resize root partition on an AlmaLinux OS
Resizing Root Partition on AlmaLinux 10 (LVM + XFS)
Since XFS filesystems cannot be shrunk, increasing the root partition requires backing up the /home partition, deleting it, expanding /root, and then recreating /home.
Prerequisites
- A backup location with enough space (e.g.,
/mnt/w). - Root or sudo access.
Step 1: Backup Home Data
Backup all data from /home to a temporary location.
sudo mkdir -p /mnt/w/home_backup
sudo rsync -aHAX --progress /home/ /mnt/w/home_backup/
Step 2: Unmount and Remove the Home Volume
Ensure no processes are using /home, then unmount it and remove the Logical Volume (LV).