Displaying 1 result from an estimated 1 matches for "vg_name_cmd".
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
...e group \"%s\" spans multiple disks.") % vg
log("This operation cannot complete. Please manually")
log("cleanup the storage using standard disk tools.")
sys.exit(1)
- 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()
+ syst...