SI/lvm.pm
changeset 6 df6ca24871d4
parent 3 1b975c58c5bf
child 7 03ca6d811a17
--- a/SI/lvm.pm	Fri Jan 15 20:40:14 2010 +0100
+++ b/SI/lvm.pm	Fri Jan 15 23:17:23 2010 +0100
@@ -4,7 +4,7 @@
 use warnings;
 use SI::tools;
 
-sub vg_info($\%) {
+sub vgcfgbackup($\%) {
     my ($file, $part) = @_;
     foreach (map { (split /:/)[0] }
         map { /^\s*(.*)/; } `vgs --noheadings --separator :`)
@@ -14,19 +14,5 @@
     }
 }
 
-sub lv_info($\%) {
-    my ($file, $part) = @_;
-
-    foreach my $p (keys %$part) {
-        `pvs -o +uuid --nameprefix --noheadings $p` =~ /\bLVM2_PV_UUID='(.*?)'/
-          or next;
-
-        $part->{$p}{type} = "pv";
-        $part->{$p}{uuid} = $1;
-
-    }
-
-}
-
 1;
 # vim:sts=4 sw=4 aw ai si: