Integrating LVM with Hadoop and Providing Elasticity To DataNode Storage

Task description

Task 7.1 :- Integrating LVM with Hadoop and providing Elasticity to DataNode Storage

Step 1

Add two harddisk in the Datanode

Step 2

Create PV (Physical volume) for both the hard disk

Step 3

Create volume group for both the PV

Step 4

Create logical volume from volume group

Step 5

Format the partion

Step 6

Mount the partion on the datanode folder /dn

Step 7

Start datanode service

How we can give Elasticity to Datanode Storage

For increasing/ expand the storage

cmd:- lvextend — size /dev/vg name/lvname

For decreasing the storage

cmd :-lvreduce -L <size> /dev/<vg name>/<lv name>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store