Expand LVM Volumes in RHEL7

Expand LVM volume in RHEL7/CentOS7 -----

Prerequisites -----

> RHEL 7 having at-least one LVM partition
> YUM installer configured on RHEL 7 server.

Expand existing LVM volume ----- 

> First install SSM tool ( System Storage Manager ) on OS.
Command :-  #yum install system-storage-manager    


Press Enter to continue.


Press y to install the package.

> Once the tool is installed, Check the existing drives and LVM volumes.
Command :-  #ssm list


On the above screenshot 2 drives are present "/dev/sda" and "/dev/sdb". and one LVM Pool "rhel" is present.

> Now add the new physical disk "/dev/sdb" to existing storage ( LVM ) pool "rhel"


> After a new device is added to a pool, The pool will automatically be enlarged by the size of the device. Check the size of the storage pool named "rhel" as follows.


 > Now we are going to expand the volume.
Command :- #ssm resize -s+4096M /dev/rhel/root
We have added 8 GB drive and now we are going to expand volume with 4 GB space.



> Now verify the volume size again.
Command :- #ssm list volumes
The new 4 GB space is added now.


> Now need to extend the FS ( File System ) size on extended volume.
Command :-  #xfs_growfs /dev/rhel/root
This command will display total data blocks size.


> Runt he the following command to extend FS block size.
Command :- #xfs_growfs /dev/rhel/root-D 8251392



EOF

Comments

Post a Comment

Popular posts from this blog

KVM Live Migration without Shared Storage

Create CentOS 6 Local package and Group package Repository

Create Linux ( LUCI ) Cluster