Increase or Decrease the Size of Static Partition in LVM and providing Elasticity to DataNodeStorage.

Increase or Decrease the Size of Static Partition in LVM and providing Elasticity to DataNodeStorage.

ARTH - Task 7 : Task 7.1

Note: This task some content is remaining because of some technical gliches so I will be adding it soon.

Task Description :

?? 7.1: Elasticity Task

  • Integrating LVM with Hadoop and providing Elasticity to DataNodeStorage
  • Increase or Decrease the Size of Static Partition in Linux.
  • Automating LVM Partition using Python-Script.

> First of all, we attach two new hard disks of any size to the VM.

No alt text provided for this image

> Then start VM. and run fdisk -l.

No alt text provided for this image

> Here we can see that two new hard disks of 10Gib and 20Gib have been attached.

> Now we have to create a physical volume of the hard disk which we have attached.

No alt text provided for this image

> Now, we have to create a volume group (vg) of both attached hard disks, so that we can make use of it, with a combined capacity of storage.

> This type of volume is called the Logical Volume Group(LVM).

No alt text provided for this image

> Creation of Partition in Volume Group.

No alt text provided for this image

> Format - #mkfs.ext4 /dev/vg_name/lvm_name

> Mount - #mount /dev/vg_name/lvm_name /folder_name

No alt text provided for this image

> Now, if we run “df -h”, we can see that /dev/myvg/mylv drive is attached to /l1 folder and storage of 25Gib.

No alt text provided for this image

> We can also extend our drive storage by adding some storage in LVM from remaining space of vg(volume group) or by adding more hard disk into the VM.

> command to extend the storage of LVM from vg - “ #lvextend --size +xG /dev/vgname/lvmname “

No alt text provided for this image

> Now, if we run “fdisk-l”, we can see that /dev/myvg-mylv drive is attached to storage of 29Gib.

No alt text provided for this image


THANKS FOR READING TILL THE END


→ Follow me on Linkedin for more Article’s on Research based and integration of new tools and technologies.

In Upcoming days , I will be sharing many article’s on Integrating multiple tools and technologies like Cloud Computing, DevOps, Big Data Hadoop, Machine Learning etc..


Further Query or Suggestion’s Feel Free to Connect with me On Linkedin.

I Hope you have learn something new from this article


If you like it then Like & Share ...

Thank you EveryOne For reading ..!!!
MD MOQADDAS

DevOps & CloudOps Engineer ? Committed to System Reliability & Cloud Agility ? Team-Centric & Results-Driven

3 年

Keep doing

回复
Juzer Patanwala

DevOps Engineer | Certified Kubernetes Administrator (CKA) | 3x Red Hat Certified | 3x GCP Certified | GCP Professional Cloud Architect | Kubernetes | Ansible | Terraform | Docker | Jenkins | GCP

3 年

Well done! Devendra Kanade

回复

要查看或添加评论,请登录

Devendra Kanade的更多文章

社区洞察

其他会员也浏览了