Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Summarise the LVM volume groups, physical and logical volumes in a linux system.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
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 <firstname.lastname@example.org> 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.