Displaying 1 result from an estimated 1 matches for "vg_name_output".
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
...wipe_volume_group(vg)
+ vg_name_cmd = "vgs -o vg_name,vg_uuid --noheadings 2>/dev/null | grep -w \"" + vg + "\" | awk '{print $1}'"
+ vg_name = subprocess.Popen(vg_name_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ vg_name_output = vg_name.stdout.read()
+ system("vgchange -an " + vg_name_output)
+ wipe_volume_group(vg_name_output)
return
@@ -372,7 +378,9 @@ class Storage:
log("Removing old LVM partitions")
wipe_volume_group("HostVG")
+...