Integrating LVM with Hadoop and providing Elasticity to DataNode Storage

--

So here in the practical, we have attached an external hard disk sdb of 8 GB.

Here is the list of all the commands used:-

pvcreate /dev/sdc

pvdisplay /dev/sdb
pvdisplay /dev/sdc

#To attach the new physical volume to the existing Volume group, i.e. RHEL

vgextend <vgname> /dev/sdb /dev/sdb

#Now Extend the pre-existing LVM volume with the required size.

lvextend — size <value> /dev/rhel/root

#Foramtting the extended part to use.

fsadm resize /dev/rhel/root

--

--