search for: vg_uuid

Displaying 7 results from an estimated 7 matches for "vg_uuid".

Did you mean: md_uuid
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
...3..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_uuid --noheadings | grep \"%s\" | egrep -v -q \"%s%s[0-9]+|%s \"" % (vg, dev, part_...
2010 Mar 26
1
[PATCH node] Use vg uuid when detecting whether vg spans multiple disks
..."" fi - for vg in $(pvs -o vg_name --noheadings $dev $dev${dev_delim}[0-9]* 2>/dev/null|sort -u); do - if pvs -o pv_name,vg_name --noheadings | \ - grep $vg | egrep -v -q "${dev}${part_delim}[0-9]+|${dev}" 2>/dev/null; then + for vg in $(pvs -o vg_uuid --noheadings $dev $dev${dev_delim}[0-9]* 2>/dev/null|sort -u); do + if pvs -o pv_name,vg_uuid --noheadings | \ + grep $vg | egrep -v -q "${dev}${part_delim}[0-9]+|${dev} " 2>/dev/null; then log "The volume group \"$vg\" spans multiple di...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...dev=${1-"$HOSTVGDRIVE"} + local devs=${1-"$HOSTVGDRIVE"} + local query1= + local query2= unmount_logging - local part_delim="p" - if [[ "$dev" =~ "/dev/sd" ]]; then - part_delim="" - fi - for vg in $(pvs -o vg_uuid --noheadings "$dev" "$dev${dev_delim}[0-9]"* 2>/dev/null|sort -u); do + for d in $devs; do + local part_delim="p" + if [[ "$d" =~ "/dev/sd" ]]; then + part_delim="" + fi + if [ -n "${query1...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...t" +else: + LABEL_TYPE="msdos" + + + +################################################################## + +def wipe_lvm_on_disk(dev): + unmount_logging + part_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 --noheading...
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
...ice) char * do_pvuuid (const char *device) { + IF_NOT_AVAILABLE_ERROR (lvm2, NULL); + return get_lvm_field ("pvs", "pv_uuid", device); } char * do_vguuid (const char *vgname) { + IF_NOT_AVAILABLE_ERROR (lvm2, NULL); + return get_lvm_field ("vgs", "vg_uuid", vgname); } char * do_lvuuid (const char *device) { + IF_NOT_AVAILABLE_ERROR (lvm2, NULL); + return get_lvm_field ("lvs", "lv_uuid", device); } @@ -652,12 +698,16 @@ get_lvm_fields (const char *cmd, const char *field, const char *device) char ** do_vgpvuuids...
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...ot;/dev/%s", vgs->val[i].vg_name) == -1) { - perror ("asprintf"); - exit (EXIT_FAILURE); - } + if (asprintf (&name, "/dev/%s", vgs->val[i].vg_name) == -1) + error (EXIT_FAILURE, errno, "asprintf"); memcpy (uuid, vgs->val[i].vg_uuid, 32); uuid[32] = '\0'; @@ -719,10 +712,8 @@ no_parents (void) char **ret; ret = malloc (sizeof (char *)); - if (!ret) { - perror ("malloc"); - exit (EXIT_FAILURE); - } + if (!ret) + error (EXIT_FAILURE, errno, "malloc"); ret[0] = NULL; @@...