Automating LVM Partition using Python-Script.

In Linux, Logical Volume Manager (LVM) is a device mapper framework that provides logical volume management for the Linux kernel. Most modern Linux distributions are LVM-aware to the point of being able to have their root file systems on a logical volume.

I’ve already attached an EBS Volume/ Storage of 10Gb to my Instance/ System.

Run this script:

As you can see, the Physical Volume, Volume Group, and Logical Volume of 5Gb have been created successfully as desired by the user.

That’s all for today! I’ll be back with some new articles very soon, thanks! 🤗

Muhammad Tabish Khanday

LinkedIn: https://www.linkedin.com/in/mtabishk/

--

--