Automating LVM partition using Python Script

Hello guys, I am back with more article on “Automating LVM using Python Script”.

LVM means Logical Volume Management. LVM is a tool for logical volume management which includes allocating disks, striping, mirroring and resizing logical volumes.

If you want to learn more about how to create LVM you can refer this article

https://prasanth-sriramadas.medium.com/integrating-the-lvm-with-hadoop-and-provide-the-elasticity-to-datanode-storage-1abbd23ab119

In the production world we need to create the pods(typically OS) that runs in case if the pod goes down we need to restart again. So, in this situation it is not possible every time we need to create pod and integrate the LVM with it.

So, we need an automation code that can integrate the LVM with OS.

Just by 1 click we can integrate so it makes our work easily .

Prerequisites :

  • We need a Linux OS. It only runs on Linux
  • Need an idea on python.

Here , we have created a python script for integrating the LVM with linux.

That’s it we have created the code. We just need to run the code. Every thing will be automated.

Thank you guys, for reading my article.

I hope it will helps you.

--

--

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
Sriramadasu Prasanth Kumar

MLOps| Hybrid Cloud | DevOps | Hadoop | Kubernets | Data Science| AWS | GCP |