search for: check_partition_sizes

Displaying 20 results from an estimated 20 matches for "check_partition_sizes".

2009 May 21
1
[PATCH node] display descriptions for all disks
...ice: $DRIVE ($SPACE MB) $(basename "$udi")" - stop_log + size=$(echo "scale=0; $size / (1024 * 1024)" | bc -l) + echo "$drive ($size MB) $(basename "$udi")" + if [ -n "$space_var" ]; then + eval $space_var=$size + fi } check_partition_sizes() @@ -69,7 +73,7 @@ check_partition_sizes() fi printf "\n" - get_selected_drive_size + get_drive_size $DRIVE SPACE disk_size=$SPACE need_size=$(echo "scale=0;" \ "$BOOT_SIZE + $SWAP_SIZE + $ROOT_SIZE * 2" \ @@ -160,6 +1...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
..._drive_size() echo "$drive ($size MB)" test -z "$udi" || echo "Disk Identifier: $(basename "$udi")" if [ -n "$space_var" ]; then - eval $space_var=$size + eval $space_var="$size" fi } @@ -155,7 +155,7 @@ check_partition_sizes() { local disk_size need_size - local min_data_size=$DATA_SIZE + local min_data_size="$DATA_SIZE" if [ "$DATA_SIZE" = -1 ]; then min_data_size=5 fi @@ -164,7 +164,7 @@ check_partition_sizes() if [ "$OVIRT_ISCSI_ENABLED" == "y&q...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...quot; +fi rc=$? if [ $rc -eq 0 -a "$doreboot" = "yes" ]; then disable_firstboot diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 8d59a6b..c91b0ea 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -172,7 +172,7 @@ check_partition_sizes() HOSTVG_NEED_SIZE=$(echo "scale=0;" \ "$SWAP_SIZE + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l) - if [ $ROOTDRIVE == $HOSTVGDRIVE ]; then + if [ "$ROOTDRIVE" == "$HOSTVGDRIVE" ]; then...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...+ b/scripts/ovirt-config-storage @@ -30,6 +30,8 @@ default_config_size=5 default_logging_size=2048 # -1 indicates data partition should use remaining disk default_data_size=-1 +default_swap2_size=0 +default_data2_size=0 boot_min_size=50 root_min_size=256 config_min_size=5 @@ -123,6 +125,10 @@ check_partition_sizes() if [ "$DATA_SIZE" = -1 ]; then min_data_size=5 fi + local min_data2_size="$DATA2_SIZE" + if [ "$DATA_SIZE2" = -1 ]; then + min_data_size=5 + fi printf "\n" if [ "$OVIRT_ISCSI_ENABLED" = "y"...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...or part in boot swap root config logging data ; do @@ -474,19 +472,15 @@ do_confirm() "$wb$sp$w" \ "$w8" \ "$w8" - printf "\n\tContinue? (Y/n) " - read -e - case $REPLY in - Y|y) - if check_partition_sizes; then - perform_partitioning - exit 0 - fi - break - ;; - N|n) return ;; - *) ;; - esac + + if ask_yes_or_no; then + if check_partition_sizes; then + per...
2009 Jul 10
0
[PATCH node] This is a follow-on patch for bz#507455.
...:drive=$drive" + debug "::SIZE=$SIZE" + echo "$drive ($SIZE MB)" echo "Disk Identifier: $(basename "$udi")" if [ -n "$space_var" ]; then eval $space_var=$size fi + + debug "print_drive_size: end" } check_partition_sizes() @@ -130,73 +160,112 @@ check_partition_sizes() return $rc } -# Find a usable/selected storage device. -# If there are none, give a diagnostic and return nonzero. -# If there is just one, e.g., /dev/sda, treat it as selected (see below). -# and return 0. If there are two or more, make the...
2009 Jul 01
1
Replacement patch for bz#507455
This patch includes a fix to no longer list devices with 0 bytes of storage, such as removeable media devices with no media present.
2009 Oct 01
1
Repost of Patch 6/6 for ovirt-node
All other patches from the sequence remain unchanged. Repost of patch 6 based on comments from Joey to follow. Mike
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...age | 150 ++++++++++++++++++++++++++---------------- 1 files changed, 94 insertions(+), 56 deletions(-) diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 77e00d0..57aaebd 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -85,30 +85,43 @@ check_partition_sizes() fi printf "\n" - get_drive_size $DRIVE SPACE - disk_size=$SPACE - need_size=$(echo "scale=0;" \ - "$SWAP_SIZE + $ROOT_SIZE * 2" \ - "+ $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -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
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...; != "y" ]; then + reboot + else + /sbin/reboot + fi fi stop_log exit $rc diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index f9a5b41..2ffcaa4 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -85,17 +85,23 @@ check_partition_sizes() fi printf "\n" - get_drive_size $ROOTDRIVE ROOTDRIVESPACE - get_drive_size $HOSTVGDRIVE HOSTVGDRIVESPACE - ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2"| bc -l) - HOSTVG_NEED_SIZE=$(echo "scale=0;" \ - "$SWAP_SIZE +...
2010 Feb 04
3
[PATCH] Make configure_from_network function check if network is up, before touching it
This patch adds a safety verification to configure_from_network function, where network configuration will not be performed if it is already up and running, preventing lost of communication for connections already established. Signed-off-by: Ricardo Marin Matinata <matinata at br.ibm.com> --- scripts/ovirt-early | 9 ++++++--- scripts/ovirt-functions | 7 +++++++ 2 files changed,
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
.../dev\/mapper\//g') + local dm_dev=/dev/$(multipath -ll $dev | egrep dm-[0-9]+ | sed -r 's/^.& (dm-[0-9]+) .*$/\1/') + + local mpath_device= + get_dm_device $dm_dev $mpath_device if [ -z "$mpath_device" ]; then mpath_device=$dev @@ -152,12 +164,12 @@ check_partition_sizes() printf "\n" if [ "$OVIRT_ISCSI_ENABLED" == "y" ]; then - get_drive_size $BOOTDRIVE BOOTDRIVESPACE + get_drive_size "$BOOTDRIVE" BOOTDRIVESPACE drive_list="BOOT" BOOT_NEED_SIZE=$BOOT_SIZE else -...
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.
...) echo "$drive ($size MB)" - test -z "$udi" || echo "Disk Identifier: $(basename "$udi")" + echo "Disk Identifier: $drive" if [ -n "$space_var" ]; then eval $space_var="$size" fi @@ -210,8 +180,10 @@ check_partition_sizes() printf "\n" printf "There appears to already be an installation on another device:\n" for device in $devices; do - udi=$(hal-find-by-property --key block.device --string $device) - printf "\t$device ($(b...
2009 May 20
2
[PATCH node] Adds support for a core dump partition to the node.
..._logging_size=2048 +default_coredump_size=10240 # -1 indicates data partition should use remaining disk default_data_size=-1 @@ -33,6 +34,7 @@ boot_min_size=50 root_min_size=256 config_min_size=5 logging_min_size=5 +coredump_min_size=1024 data_min_size=5 swap_min_size=5 @@ -73,7 +75,7 @@ check_partition_sizes() disk_size=$SPACE need_size=$(echo "scale=0;" \ "$BOOT_SIZE + $SWAP_SIZE + $ROOT_SIZE * 2" \ - "+ $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l) + "+ $CONFIG_SIZE + $LOGGING_SIZE + $...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...i default_overcommit=0.5 -default_boot_size=50 default_root_size=256 default_config_size=5 default_logging_size=2048 # -1 indicates data partition should use remaining disk default_data_size=-1 -boot_min_size=50 root_min_size=256 config_min_size=5 logging_min_size=5 @@ -90,7 +88,7 @@ check_partition_sizes() get_drive_size $DRIVE SPACE disk_size=$SPACE need_size=$(echo "scale=0;" \ - "$BOOT_SIZE + $SWAP_SIZE + $ROOT_SIZE * 2" \ + "$SWAP_SIZE + $ROOT_SIZE * 2" \ "+ $CONFIG_SIZE + $LOGGING_SI...
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.
2009 Sep 26
10
Adding handling for Multipath storage devices
The following patches introduce support for multipath and cciss devices to the ovirt-node and node-image. Comments are appreciated. These patches assume that the 3 patches (2 node, 1 node-image) from Joey are all incorporated. Mike
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...in devs_to_remove: + dev_list.append(d) + + for dev in dev_list: + if dev_list.count(dev) > 1: + count = dev_list.count(dev) + while (count > 1): + dev_list.remove(dev) + count = count - 1 + + return dev_list + +def check_partition_sizes(): + # disk_size need_size + drive_list = [] + drive_space_dict = {} + min_data_size = OVIRT_VARS["DATA_SIZE"] + if DATA_SIZE == -1 : + min_data_size=5 + + if OVIRT_VARS["OVIRT_ISCSI_ENABLED"] == "y": + BOOTDRIVESPACE = get_drive_size(BO...