Integrating Hadoop with LVM and providing elasticity

Manojnagabairu
2 min readMar 14, 2021

โœ In this article I want to show how to use advantage of LVM for Hadoop

LVM(Logical Volume Manager)

๐Ÿ’  LVM is a very useful concept which helps to increase or decrease the storages on the fly . And today I want to implement and also use it for helping in big data (Hadoop) .

๐Ÿ’  While we are dealing with big data I mean Hadoop their may be a case where we want to increase the storage of a hard disk on the fly in that case it will be useful.

Left one is master and slave node is in right

๐Ÿ’  Here first after checking the formation of cluster see the DFS remaining part carefully.

Two hard disks

๐Ÿ’  Here I have attached two hard disks /dev/sdc and /dev/sdd with 4 and 6 GB respectively.

๐Ÿ’  And I have created two physical volumes (PVโ€™s) with that two hard disks , u can take PV as like a format type.

๐Ÿ’  After that we have to create a volume group with these two PVโ€™s and after creating a volume group.

๐Ÿ’  Create a logical volume in the volume group and mount it to the folder that u assigned for the data node in Hadoop.

๐Ÿ’  Now try to increase the storage without unmounting the storage and after increasing the storage we have to again format the added storage. After that we can also see the change in DFS used and DFS unused.

Thank you for reading the blog๐Ÿค—

--

--