Resize Root

Increase the Root size and unmount the Home directory

So, here I have mention about to unmount and extend root directory.

So, if we have unmount the /home directory there will be a one issues will be generated.

Linux into Emergency / Recovery mode

All the Linux file systems are stored in the root partition. Sometimes we feel the provided storage is enough for the system but eventually, we need more storage at the root. So, In this post, I will share the steps to resize or extend the root partition. This method is also applied to RHEL.

Change into Normal Mode click here follows according to the methods

How to increase centos Root Size

CentOS 8 Extend Root Partition

Increase Root Size in Centos

Expand the disk on the host

Before we get started with the tutorial, you will need to meet the following requirements.

unmount the home directory. To view the location of the home partition, use the df command as

df -h

[root@vre ~]# umount /dev/mapper/cl-home

If you can check in screen cl-home have 22G so I am going to use cl home 20 GB for extending in Root directory.

Extending volume is successfully done

[root@vre ~]# lvreduce -L 20G /dev/mapper/cl-home

So now adding this rest of GB in root

First, I am going to test if extending to root directory what will be the output

[root@vre ~]# lvextend -t -r -l+100%FREE /dev/mapper/cl-root

Testing volume is done successfully

So next step implements in root directory

[root@vre ~]# lvextend -r -l+100%FREE /dev/mapper/cl-root

[root@vre ~]# lvextend -r -l+100%FREE /dev/mapper/cl-root

After changes check the current amount of data in Root

[root@vre ~]# lvs

Leave a Reply

Your email address will not be published. Required fields are marked *