How to extend filesystem capacity in hadoop data node?
First, attach your new hard drive to your PC (or add virtual hard drive if you are running on VirtualBox)
Mount gParted ISO on your CentOS node.
Boot with gParted.
Create partition table for new hard drive:
Device > Create Partition Table> GPT is recommended
Create new partition: "lvm2 pv" is recommended
Stop hadoop services on node.
vgextend vg_hadoop2 /dev/sdb1
lvextend -L+8.48G /dev/vg_hadoop2/lv_rootresize2fs -F /dev/vg_hadoop2/lv_rootdf -h