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
Link

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 https://github.com/simranquirky/AutomateLVM-ArthTask7.git (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 run.sh (to make the bash script executable)

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

Latest comments (0)