Displaying 2 results from an estimated 2 matches for "vg_output".
Did you mean:
log_output
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
...changed, 11 insertions(+), 3 deletions(-)
diff --git a/scripts/storage.py b/scripts/storage.py
index 5f7f0e3..047bcd1 100644
--- a/scripts/storage.py
+++ b/scripts/storage.py
@@ -90,13 +90,19 @@ class Storage:
vg = subprocess.Popen(vg_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
vg_output = vg.stdout.read()
for vg in vg_output:
- pvs = system("pvscan -o pv_name,vg_uuid --noheadings | grep \"%s\" | egrep -v -q \"%s%s[0-9]+|%s \"") % (vg, dev, part_delim, dev)
- if pvs > 0:
+ pvs_cmd = "pvs -o pv_name,vg_u...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...delim="p"
+ if "/dev/sd" in dev:
+ part_delim=""
+ vg_cmd = "pvs -o vg_uuid --noheadings %s \"%s%s[0-9]\"* 2>/dev/null|sort -u" % (dev, dev, part_delim)
+ vg = subprocess.Popen(vg_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ vg_output = vg.stdout.read()
+ for vg in vg_output:
+ pvs = os.system("pvscan -o pv_name,vg_uuid --noheadings | grep \"%s\" | egrep -v -q \"%s%s[0-9]+|%s \" 2>/dev/null") % (vg, dev, part_delim, dev)
+ if pvs > 0:
+ log("The volume group \&...