DEV Community

Cover image for Automating LVM using Python
Simran Kumari
Simran Kumari

Posted on • Updated on

Automating LVM using Python

Logical volume management

Logical volume management (LVM) is a form of storage virtualization that offers system administrators a more flexible approach to managing disk storage space than traditional partitioning. The goal of LVM is to facilitate managing the sometimes conflicting storage needs of multiple end users.

What is LVM used for?

It is a system of managing logical volumes, or filesystems, that is much more advanced and flexible than the traditional method of partitioning a disk into one or more segments and formatting that partition with a filesystem.

Github link for the code to automate Lvm using Python

You can run this piece of code anywhere (be it local OS or Cloud system) by doing the following steps

Open the command prompt and run

  1. yum install git -y (the git software needs to be installed in order to download the code from github)

  2. git clone (This will download the repository to your system)

  3. you can comfirm the successful download of the repository by running 'ls' command , which will show the folder AutomateLVM-ArthTask7

  4. cd AutomateLVM-ArthTask7/ (to change to the folder to start working)

  5. chmod +x (to make the bash script executable)

  6. ./ (to run the script so that it can configure the environment needed and automatically run the code for you)

Top comments (0)