Automating LVM(Logical Volume Management) partition using python script.

What is Automation?

If a developer has to repeat a job more than once, then instead of coding the same thing or doing the same process multiple times, they make a small piece of software or a bot that does the job for them. That’s Automation.

What is Python Automation?

Python is an easy-to-learn programming language that allows organizations to script custom automation and reap the time-savings

What is LVM ?

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

With LVM, a hard drive or set of hard drives is allocated to one or more physical volumes. LVM physical volumes can be placed on other block devices which might span two or more disks. LVM provides features like the ability to add disk space to a logical volume and its filesystem. LVM helps to provide the Elasticity to the storage Device.

What is Elasticity ?

Elasticity is the concept which we can use to increase or decrease the volume of Hadoop Data Node. Hadoop data nodes shared storage can’t be static so LVM is used to make it dynamic.


LVM Menu
Disk Information
Physical volume created
Volume group created
Logical volume created
Logical volume resized
Disk Information
Exit Menu

Here is the link for Python code:-

In this way, Task is Completed Successfully !!

!! Thank You for Reading !!




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Build a CI/CD Pipeline In Azure DevOps ?

Walk Through Docker

Azure Architecture Best Practices

Manage Your Robotics Data with Foxglove Data Platform

Grab a List- C# Skill in Unity: 6

Top 10 AWS Crash Courses for Beginners — Enlear Academy

Key Clauses To Understand and Evaluate in SaaS Contracts | Aavenir

The comfort of blaming others

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
Mangesh Ghorpade

Mangesh Ghorpade

More from Medium

How to Analyse PowerBall Numbers with Python

Get current timestamp using Python

5 ways to make better bar charts with Matplotlib

How to Plot Charts and Graphs With Matplotlib Using Python