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
Boot CentOs
Stop hadoop services on node.
fdisk -l
vgextend vg_hadoop2 /dev/sdb1
lvdisplay
lvextend -L+8.48G /dev/vg_hadoop2/lv_rootresize2fs -F /dev/vg_hadoop2/lv_rootdf -h
That's it
Comments
Post a Comment