search for: pv_lookup_cmd

Displaying 1 result from an estimated 1 matches for "pv_lookup_cmd".

2010 Oct 27
0
[PATCH node] add uninstall module
..., stdout=PIPE, stderr=STDOUT) + root2_device = root2_label_lookup.stdout.read() + if root2_device is None: + log("Can't find RootBackup/RootNew/RootUpdate device") + sys.exit(3) + root2_dev, root2_part = get_part_info(root2_device) + + pv_lookup_cmd = "pvs --noheadings -o pv_name,vg_name | grep HostVG | awk '{print $1}'" + pv_lookup = subprocess.Popen(pv_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + pv_device = pv_lookup.stdout.read() + if pv_device is None: + log("Can't find H...