search for: devs_to_remov

Displaying 4 results from an estimated 4 matches for "devs_to_remov".

Did you mean: devs_to_remove
2010 Mar 23
1
[PATCH node] Filter out /dev/dm-* devices from device list
...irt-config-storage index 34e84e5..e4b6c98 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -307,14 +307,15 @@ get_dev_name() devices="$devices /dev/mapper/$dev" local sd_devs="" get_multipath_devices $dev sd_devs - devs_to_remove="${devs_to_remove} ${sd_devs}" + local dm_dev=$(multipath -ll $dev | grep $dev | sed -r 's/^.*(dm-[0-9]+ ).*$/\1/') + devs_to_remove="${devs_to_remove} ${sd_devs} $dm_dev" done # Remove /dev/sd* devices that are part of a multipath device l...
2010 Feb 24
5
New Storage related patches
This set of patches introduces support for multipath devices for storage. Comments and suggestions are appreciated. Mike
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...7 @@ get_dev_name() for dev in $(dmsetup ls --target=multipath | awk '{print $1}'); do devices="$devices /dev/mapper/$dev" local sd_devs="" - get_multipath_devices $dev sd_devs + get_multipath_devices "$dev" sd_devs devs_to_remove="${devs_to_remove} ${sd_devs}" done @@ -352,7 +352,7 @@ do_configure() printf "\n\nPlease select the disk to use for the Boot partition.\n\n" BOOTDRIVE=$(get_dev_name) || return 0 get_drive_size "$BOOTDRIVE" BOOTDRIVESPACE - ech...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...XME: workaround for detecting cciss devices + if os.path.exists("/dev/cciss"): + for d in os.listdir("/dev/cciss"): + if not re.match("p[0-9]+\$", d): + devices="%s %s" % (d, devices) + + # include multipath devices + devs_to_remove="" + multipath_list_cmd = "dmsetup ls --target=multipath | cut -f1" + multipath_list = subprocess.Popen(multipath_list_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + multipath_list_output = multipath_list.stdout.read() + + for d in multipath_list_output: + de...