Displaying 6 results from an estimated 6 matches for "need_siz".
Did you mean:
need_size
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...cripts/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)
-
- if [ $need_size -gt $disk_size ]; then
- local gap_size=$(echo "scale=0; $need_size-$disk_size...
2009 May 20
2
[PATCH node] Adds support for a core dump partition to the node.
...-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 + $COREDUMP_SIZE + $min_data_size" |...
2009 May 21
1
[PATCH node] display descriptions for all disks
...;$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 +164,10 @@ get_dev_name()
esac
# There are two or more; make the user choose.
+ # display description for each disk
+ for d in $devices; do
+ get_drive_size...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...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_SIZE + $min_data_size" | bc -l)
if [ $need_size -gt $disk_siz...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...quot;
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" ]; then
get_drive_siz...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
....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(BOOTDRIVE)
+ drive_list....