Integrating Hadoop with LVM and providing elasticity
โ 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.
๐ Here first after checking the formation of cluster see the DFS remaining part carefully.
๐ 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.