Skip to content
Summarise the LVM volume groups, physical and logical volumes in a linux system.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README
lvmsummary

README

lvmsummary
==========

Print a summary of the LVM volume groups, physical volumes and logical volumes.

See the following link for the inspiration: <http://serverfault.com/questions/28592/getting-a-textual-overview-of-a-systems-lvm-configuration>

Copyright 2009 Peter Scully <peter@peterscully.name>

Licence: Creative Commons Attribution-Share Alike <http://creativecommons.org/licenses/by-sa/3.0/>


Further Work:
=============

I'm sure there are plenty of edge and corner cases not handled.

Needs to test that lvm is installed.

Doesn't handle striped LVs (created with --stripe).

Some error handling would be nice.  e.g. LVs that are mounted but do not appear in /etc/fstab.

Command line arguements.  e.g. -v vgname to only show that VG.

Refactor it; some things should be made into subroutines.

Make it more efficient.
You can’t perform that action at this time.