Playing with LVM: The declarative approach using python.

Rishi Agrawal
2 min readMar 22, 2021

This blog is all about the a python program that I created, which uses the declarative approach rather than giving the commands. Its very simple implementation and can be used by any non-technical person in need.

This is the part of the task 7.1(c) given by the Vimal Sir in class, the problem statement is as follows:

ARTH — Task 7.1(C) 👨🏻‍💻

Task Description 📄

Automating LVM Partition using Python-Script.

What is declarative approach?

Declarative approach means we just need to tell what to do and we don't really need to give the commands. With this, I made a script, that works this way.

So, I am not telling how to create the script, believe me it super easy, and you can see it yourself with the GitHub link below. Setup instructions are added in the README.md file.

LVM with Python — GitHub Link

Here are some screenshots of the running script.

First screen
Screen After pressing exit

What I am doing is attaching the video, which is the of my python script how to create LV from scratch below.

--

--

Rishi Agrawal

Aspiring MLOPS engineer with Multi-cloud and Flutter/MERN