search for: check_existing_hostvg

Displaying 8 results from an estimated 8 matches for "check_existing_hostvg".

2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...ect the disk to use for the Root.\n\n" ROOTDRIVE=$(get_dev_name) || return 0 @@ -361,13 +361,13 @@ do_configure() printf "\n\nPlease select the disk to use for the HostVG.\n\n" HOSTVGDRIVE=$(get_dev_name) || return 0 local skipped=false - if check_existing_hostvg $HOSTVGDRIVE devs; then + if check_existing_hostvg "$HOSTVGDRIVE" devs; then for dev in $devs do printf "Removing HostVG on $dev will erase the drive and cannot be undone\n" if ask_yes_or_no "Do you want to...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
..._DEFAULTS/OVIRT_SHARED_ROOT $OVIRT_SHARED_ROOT + set /files$OVIRT_DEFAULTS/OVIRT_ROOT_INSTALL $OVIRT_ROOT_INSTALL +EOF printf "\n\nPlease select the disk to use for the HostVG.\n\n" HOSTVGDRIVE=$(get_dev_name) || return 0 local skipped=false - if check_existing_hostvg $HOSTVGDRIVE devs; then + if check_existing_hostvg "$HOSTVGDRIVE" devs; then for dev in $devs do printf "Removing HostVG on $dev will erase the drive and cannot be undone\n" @@ -402,6 +418,8 @@ do_configure() if [ "$OVI...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...is on $1 +#Check for an existing VG on any device on the system. +# Return 0 if there is a VG found, unless the only one found is on $1 # Return 1 if no HostVG found or only found on $1 # XXX # from check_partition_sizes(): # if [ "$OVIRT_ISCSI_ENABLED" != "y" ]; then check_existing_hostvg() { - local install_dev="$1" + local install_dev= + local dev= + for dev in $1; do + if [ -n "${install_dev}" ]; then + install_dev="${install_dev}+|${dev}" + else + install_dev="${dev}" + fi + done...
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 May 13
1
Non-functional replacement...
This patch just includes the repo name in the subject.
2010 May 13
0
[PATCH] Replace the HAL calls with udev/systool calls.
...UUID=(.*)", data); print data[1]; }' + ) + + eval $envvar="$uuid" +} + #Check for an existing HostVG on any device on the system. # Return 0 if then is a HostVG found, unless only one found is on $1 # Return 1 if no HostVG found or only found on $1 @@ -537,10 +508,12 @@ check_existing_hostvg() printf "\n" printf "There appears to already be an installation on another device:\n" for device in $devices; do + local uuid + get_multipath_devices ${device%p[0-9]} sd_dev sd_dev=$(echo "$sd_dev" | awk...
2010 May 14
3
Replacement patch...
This one incorporates feedback from mburns and apevec to ensure that all multipath devices are excluded in the list of available drives. Only drives with an identified bus are included in the list now.
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...ull)" % drive +# size = subprocess.Popen(size_cmd, shell=True, stdout=PIPE, stderr=STDOUT) +# size_output = size.stdout.read() +# size_output = size_output / 1024 +# log("%s (%s MB)") % (drive, size_output) +# if not space_var is None: +# return space_var + +def check_existing_hostvg(install_dev): + if install_dev is None: + devices="$(pvs --separator=\" \" -o pv_name,vg_name --noheadings | grep \"HostVG\" | cut -f1)" + else: + devices="$(pvs --separator=\" \" -o pv_name,vg_name --noheadings | grep -v \"%s\&q...