search for: part_delim

Displaying 6 results from an estimated 6 matches for "part_delim".

Did you mean: part_del
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
...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_delim, dev) + pvs = subprocess.Popen(pvs_cmd, shell=True, stdout=PIPE, stderr=STDOUT) +...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...[ -n "$devices" ]; then @@ -531,15 +575,29 @@ check_existing_hostvg() # - remove LVM volumes and groups wipe_lvm_on_disk() { - local 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&q...
2010 Mar 26
1
[PATCH node] Use vg uuid when detecting whether vg spans multiple disks
...), 3 deletions(-) diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 8d59a6b..9d8c482 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -563,9 +563,9 @@ wipe_lvm_on_disk() if [[ "$dev" =~ "/dev/sd" ]]; then part_delim="" 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...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...() rc=0 fi - test -z $devices_var || eval $devices_var=$devices + test -z "$devices_var" || eval "$devices_var"="$devices" return $rc @@ -563,9 +563,9 @@ wipe_lvm_on_disk() if [[ "$dev" =~ "/dev/sd" ]]; then part_delim="" fi - for vg in $(pvs -o vg_name --noheadings $dev $dev${dev_delim}[0-9]* 2>/dev/null|sort -u); do + 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 | \...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...E - $LOGGING_SIZE )) test $remaining_mb -lt 0 && is_negative=1 @@ -557,7 +575,7 @@ check_existing_hostvg() # - remove LVM volumes and groups wipe_lvm_on_disk() { - local dev=${1-$HOSTVGDRIVE} + local dev=${1-"$HOSTVGDRIVE"} unmount_logging local part_delim="p" if [[ "$dev" =~ "/dev/sd" ]]; then @@ -604,8 +622,8 @@ perform_partitioning() unmount_config /etc/default/ovirt log "Removing old LVM partitions" - wipe_lvm_on_disk $HOSTVGDRIVE - wipe_lvm_on_disk $ROOTDRIVE + wipe_lvm_on_disk &q...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...e is Fedora then use GPT, otherwise use MBR +if os.path.isfile("/etc/fedora-release"): + LABEL_TYPE="gpt" +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_ou...