Increase or Decrease the Size of Static Partition in LVM and providing Elasticity to DataNodeStorage.
Devendra Kanade
Immediate Joiner | Data Engineer | AWS Certified | Microsoft Azure Certified | Oracle Certified
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.
> Then start VM. and run fdisk -l.
> 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.
> 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).
> Creation of Partition in Volume Group.
> Format - #mkfs.ext4 /dev/vg_name/lvm_name
> Mount - #mount /dev/vg_name/lvm_name /folder_name
> Now, if we run “df -h”, we can see that /dev/myvg/mylv drive is attached to /l1 folder and storage of 25Gib.
> 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 “
> Now, if we run “fdisk-l”, we can see that /dev/myvg-mylv drive is attached to storage of 29Gib.
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 ..!!!
DevOps & CloudOps Engineer ? Committed to System Reliability & Cloud Agility ? Team-Centric & Results-Driven
3 年Keep doing
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