search for: mem_size_mb

Displaying 7 results from an estimated 7 matches for "mem_size_mb".

2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...ize=50 +default_root_size=256 +default_config_size=5 +default_logging_size=2048 +BOOTDRIVE = "" +RootBackup_end = "" +# -1 indicates data partition should use remaining disk +default_data_size=-1 + +mem_size_cmd = "awk '/MemTotal:/ { print $2 }' /proc/meminfo" +mem_size_mb = subprocess.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...
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.
...GGING_SIZE set /files$OVIRT_DEFAULTS/OVIRT_VOL_DATA_SIZE $DATA_SIZE EOF + + if [ -n $BOOTDRIVE ]; then + augtool <<EOF +set /files$OVIRT_DEFAULTS/OVIRT_BOOT_INIT $BOOTDRIVE +EOF + fi } do_review() @@ -356,20 +373,33 @@ perform_partitioning() partprobe -s $ROOTDRIVE MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l) + local boot_size_si=$(echo "scale=0; $BOOT_SIZE * (1024 * 1024) / (1000 * 1000)" | bc -l) log "Labeling Drive: $ROOTDRIVE" parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + if [ -n "$BOOTDRIVE...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...d Disk: $(get_drive_size $DRIVE) - Boot partition size: $BOOT_SIZE MB Swap partition size: $SWAP_SIZE MB Installation partition size: $ROOT_SIZE * 2 MB Configuration partition size: $CONFIG_SIZE MB @@ -335,28 +331,22 @@ perform_partitioning() partprobe -s $DRIVE MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l) - local boot_size_si=$(echo "scale=0; $BOOT_SIZE * (1024 * 1024) / (1000 * 1000)" | bc -l) log "Labeling Drive" parted $DRIVE -s "mklabel ${LABEL_TYPE}" - log "Creating boot partition"...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...backup copy, just in case? log "Wiping old boot sector" - dd if=/dev/zero of=$DRIVE bs=1024K count=1 - blockdev --rereadpt $DRIVE - partprobe -s $DRIVE + dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1 + blockdev --rereadpt $ROOTDRIVE + partprobe -s $ROOTDRIVE MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l) - log "Labeling Drive" - parted $DRIVE -s "mklabel ${LABEL_TYPE}" + log "Labeling Drive: $ROOTDRIVE" + parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + if [ $ROOTDRIVE != $HOSTVGDRIVE ]; t...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...66,24 +392,36 @@ perform_partitioning() # begin critical section set -e - # FIXME: save a backup copy, just in case? - log "Wiping old boot sector" - dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1 - blockdev --rereadpt $ROOTDRIVE - partprobe -s $ROOTDRIVE - MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l) local boot_size_si=$(echo "scale=0; $BOOT_SIZE * (1024 * 1024) / (1000 * 1000)" | bc -l) - log "Labeling Drive: $ROOTDRIVE" - parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" - if [ -n "$BOOTDRIVE...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...done } +cross_check_host_app() +{ +for hdrv in $HOSTVGDRIVE; do + for adrv in $APPVGDRIVE; do + if [ "${hdrv}" = "${adrv}" ]; then + # Skip disk partitioning, AppVGs overlaps with HostVGs + return 1 + fi + done +done +return 0 +} + MEM_SIZE_MB=$(awk '/MemTotal:/ { print $2 }' /proc/meminfo) case $MEM_SIZE_MB in ''|*[^0-9]*) die failed to get system memory size;; @@ -931,16 +1079,48 @@ ROOT_SIZE=${OVIRT_VOL_ROOT_SIZE:-$default_root_size} CONFIG_SIZE=${OVIRT_VOL_CONFIG_SIZE:-$default_config_size} LOGGING_SIZE=${OVIR...
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