Displaying 18 results from an estimated 18 matches for "swap_siz".
Did you mean:
swap_size
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...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_size ]; then
@@ -213,7 +211,7 @@ do_configure()
fi
local space_left=$SPAC...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...0d0..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;" | bc -l)
- printf "\n"
- printf "...
2009 May 21
1
[PATCH node] display descriptions for all disks
...e_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 $d >&2
+ done
local choices="$devices Abort"
select...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...tition_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 + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l)
-
- if [ $ROOTDRIVE == $HOSTVGDRIVE ]; then
- drive_list="ROOT"
- ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2 + $HOSTVG_NEED_SIZE"| bc -l)
+ if [ "$OVIRT_ISCSI_ENABLED" == "y&qu...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...nfig-storage
index c6473a6..93b94b0 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -703,8 +703,6 @@ perform_partitioning()
log "Creating volume group"
vgcreate /dev/HostVG "${partpv}"
- mkdir -p /dev/disk/by-label
-
if [ "$SWAP_SIZE" -gt 0 ]; then
log "Creating swap partition"
lvcreate --name Swap --size ${SWAP_SIZE}M /dev/HostVG
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index b98e31a..482441a 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -283,7 +28...
2009 May 20
2
[PATCH node] Adds support for a core dump partition to the node.
...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" | bc -l)
if [ $need_size -gt $disk_size ]; then
local gap_size=$(ec...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...-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
drive_list="ROOT"
ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2 + $HO...
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...VESPACE
+ 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 + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l)
@@ -224,12 +236,13 @@ manual_input()
while true; do
read -rp "Enter disk device path: " manual_device
if [ -z "$device" ]; then
+ echo "Aborting."
return 1...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove.
This would break in the case of split Root and HostVG devices.
Signed-off-by: Mike Burns <mburns at redhat.com>
---
scripts/ovirt-config-boot | 11 +--------
scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++---------------
scripts/ovirt-functions | 33 +++++++++++++++++++++++++++
3 files
2010 Jul 21
0
[PATCH] RFC: Encrypted swap support
...;/dev/null 2>&1
+modprobe sha256 >/dev/null 2>&1
+
+EOF
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index e3bb57b..c984265 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -677,8 +677,12 @@ create_hostvg()
if [ "$SWAP_SIZE" -gt 0 ]; then
log "Creating swap partition"
lvcreate --name Swap --size ${SWAP_SIZE}M /dev/HostVG
- mkswap -L "SWAP" /dev/HostVG/Swap
- echo "/dev/HostVG/Swap swap swap defaults 0 0" >> /etc/fstab
+ if [ -n ${OVIRT_CR...
2009 Dec 08
1
[PATCH node] iscsi remote root basework This lays most of the groundwork for iscsi installation and configuration. At this time configuring iscsi is disabled due to multiple issues with dependent pieces.
...t;data" ]; then
part_regexp="^\-1|0$"
@@ -276,12 +286,19 @@ do_configure()
# save input variables
augtool <<EOF
set /files$OVIRT_DEFAULTS/OVIRT_INIT $ROOTDRIVE
+set /files$OVIRT_DEFAULTS/OVIRT_VOL_BOOT_SIZE $BOOT_SIZE
set /files$OVIRT_DEFAULTS/OVIRT_VOL_SWAP_SIZE $SWAP_SIZE
set /files$OVIRT_DEFAULTS/OVIRT_VOL_ROOT_SIZE $ROOT_SIZE
set /files$OVIRT_DEFAULTS/OVIRT_VOL_CONFIG_SIZE $CONFIG_SIZE
set /files$OVIRT_DEFAULTS/OVIRT_VOL_LOGGING_SIZE $LOGGING_SIZE
set /files$OVIRT_DEFAULTS/OVIRT_VOL_DATA_SIZE $DATA_SIZE
EOF
+
+ if [ -n $BOOTDRIVE ]; then
+...
2012 Apr 13
1
harddisk partition not created right with centos 5.7
...00
part /boot --fstype ext3 --size=400 --asprimary --fsoptions=noatime,defaults
part pv.01 --size=1 --grow
volgroup jmpvgnocf pv.01
logvol / --fstype ext3 --name=lvroot --vgname=jmpvgnocf --size=1 --grow
--fsoptions=noatime,defaults
logvol swap --fstype swap --name=lvswap --vgname=jmpvgnocf --size=$swap_size
EOPM
LV Name always shows /dev/volGroup00/LogVol00.
*my VM partition code looks like*
cat > /tmp/partmap.ks <<EOOPM
clearpart --all --initlabel
#autopart changes behvior of autopart. to avoid version dependency
#put specific partion configuration
#autopart
part /boot --fstype ext3 --s...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
..._SIZE="$BOOT_SIZE"
else
get_drive_size "$ROOTDRIVE" ROOTDRIVESPACE
get_drive_size "$HOSTVGDRIVE" HOSTVGDRIVESPACE
@@ -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
drive_list="ROOT"
ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2 + $HOS...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
....Popen(mem_size_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+MEM_SIZE_MB = mem_size_mb.stdout.read()
+
+MEM_SIZE_MB= int(MEM_SIZE_MB) / 1024
+
+overcommit=default_overcommit
+# we multiply the overcommit coefficient by 10 then divide the
+# product by 10 to avoid decimals in the result
+OVERCOMMIT_SWAP_SIZE = int(MEM_SIZE_MB) * overcommit * 10 / 10
+
+# add to the swap the amounts from http://kbase.redhat.com/faq/docs/DOC-15252
+MEM_SIZE_GB= MEM_SIZE_MB/1024
+if MEM_SIZE_GB < 4:
+ BASE_SWAP_SIZE=2048
+elif MEM_SIZE_GB < 16:
+ BASE_SWAP_SIZE=4096
+elif MEM_SIZE_GB < 64:
+ BASE_SWAP_S...
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 Jul 10
0
[PATCH node] This is a follow-on patch for bz#507455.
...()
The local disk will be repartitioned as follows:
================================================
- Physical Hard Disk: $(get_drive_size $DRIVE)
+ Physical Hard Disk: $(print_drive_size $DRIVE)
Boot partition size: $BOOT_SIZE MB
Swap partition size: $SWAP_SIZE MB
Installation partition size: $ROOT_SIZE * 2 MB
@@ -519,7 +588,7 @@ DATA_SIZE=${OVIRT_VOL_DATA_SIZE:-$default_data_size}
if [ -n "$OVIRT_INIT" ]; then
# if present, use the drive selected with 'ovirt_init' boot parameter
DRIVE=$OVIRT_INIT
- get_drive_size $DRIV...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...fi
+ done
+ APPVG_NEED_SIZE=$(echo "scale=0; $SWAP2_SIZE + $min_data2_size" | bc -l)
+ fi
ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2"| bc -l)
HOSTVG_NEED_SIZE=$(echo "scale=0;" \
"$SWAP_SIZE + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l)
@@ -141,6 +167,13 @@ check_partition_sizes()
ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2 + $HOSTVG_NEED_SIZE"| bc -l)
else
drive_list="ROOT HOSTVG"
+ eval $(printf $H...
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.