search for: dev_delim

Displaying 3 results from an estimated 3 matches for "dev_delim".

2010 Mar 26
1
[PATCH node] Use vg uuid when detecting whether vg spans multiple disks
...age 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 vg_uuid --noheadings $dev $dev${dev_delim}[0-9]* 2>/dev/null|sort -u); do +...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...est -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 | \ - grep $vg | egrep -v -q "${dev}${part_delim}[0-9]+|${dev}" 2>/...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...${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}" ]; then + query1="${query1} $...