Displaying 20 results from an estimated 20 matches for "perform_partitioning".
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...otNew RootUpdate
+ e2label $candidate_dev RootUpdate
rm -rf $tmpdir
log "done."
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index eed126c..af13935 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -340,12 +340,23 @@ perform_partitioning()
parted $DRIVE -s "mklabel ${LABEL_TYPE}"
log "Creating boot partition"
parted $DRIVE -s "mkpartfs primary ext2 0M ${boot_size_si}M"
+ log "Creating Root and RootBackup Partitions"
+ let root1_end=${boot_size_si}+${ROOT_SIZE}
+ let ro...
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 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...otNew RootUpdate
+ e2label $candidate_dev RootUpdate
rm -rf $tmpdir
log "done."
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index c448aee..06a5363 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -531,12 +531,23 @@ perform_partitioning()
parted $DRIVE -s "mklabel ${LABEL_TYPE}"
log "Creating boot partition"
parted $DRIVE -s "mkpartfs primary ext2 0M ${boot_size_si}M"
+ log "Creating Root and RootBackup Partitions"
+ let root1_end=${boot_size_si}+${ROOT_SIZE}
+ let ro...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...e local disk will be repartitioned as follows:
+================================================
+ Boot Drive: $(get_drive_size $BOOTDRIVE)
+ Boot partition size: $BOOT_SIZE
+
+EOF
+
+ fi
}
# cleanup lvms on selected disk
@@ -348,14 +372,16 @@ wipe_lvm_on_disk()
perform_partitioning()
{
- log "Partitioning drive: $ROOTDRIVE"
- if [ -z "$HOSTVGDRIVE" ]; then
+ if [[ -z "$HOSTVGDRIVE" && "$OVIRT_ISCSI_ENABLED" != "y" ]]; then
printf "\nNo storage device selected.\n"
return
fi
+...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...@@ check_existing_hostvg()
# - remove LVM volumes and groups
wipe_lvm_on_disk()
{
- local dev=${1-$HOSTVGDRIVE}
+ local dev=${1-"$HOSTVGDRIVE"}
unmount_logging
local part_delim="p"
if [[ "$dev" =~ "/dev/sd" ]]; then
@@ -604,8 +622,8 @@ perform_partitioning()
unmount_config /etc/default/ovirt
log "Removing old LVM partitions"
- wipe_lvm_on_disk $HOSTVGDRIVE
- wipe_lvm_on_disk $ROOTDRIVE
+ wipe_lvm_on_disk "$HOSTVGDRIVE"
+ wipe_lvm_on_disk "$ROOTDRIVE"
# begin critical section
set -e
@@...
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
...ap root config logging data"
local space_left=$BOOTDRIVESPACE
+ elif [ "$OVIRT_ROOT_INSTALL" == "n" ]; then
+ partlist="swap config logging data"
else
partlist="swap root config logging data"
fi
@@ -635,37 +653,32 @@ perform_partitioning()
return
fi
- log "Starting partitioning of $ROOTDRIVE"
- log "Partitioning drive: $ROOTDRIVE"
- # FIXME: save a backup copy, just in case?
- log "Wiping old boot sector"
- dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1
- reread_partition...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...==============================
Physical Hard 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}"...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...CONFIG_SIZE MB
@@ -299,21 +324,21 @@ EOF
wipe_lvm_on_disk()
{
unmount_logging
- for vg in $(pvs -o vg_name --noheadings $DRIVE* 2>/dev/null|sort -u); do
+ for vg in $(pvs -o vg_name --noheadings $HOSTVGDRIVE* 2>/dev/null|sort -u); do
wipe_volume_group $vg
done
}
perform_partitioning()
{
- log "Partitioning drive: $DRIVE"
- if [ -z "$DRIVE" ]; then
+ log "Partitioning drive: $ROOTDRIVE"
+ if [ -z "$HOSTVGDRIVE" ]; then
printf "\nNo storage device selected.\n"
return
fi
start_log
- lo...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...o
@@ -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
+ perform_partitioning
+ exit 0
+...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...ppVG/Data2
+ echo "/dev/AppVG/Data2 /data2 ext3 defaults,noatime 0 0" >> /etc/fstab
+ fi
+
+ if [ "$use_data" = 0 ]; then
+ log "Mounting data2 partition"
+ mount_data2
+ fi
+ log "Completed AppVG!"
- stop_log
}
perform_partitioning()
@@ -688,6 +816,7 @@ perform_partitioning()
log "Removing old LVM partitions"
wipe_lvm_on_disk "$HOSTVGDRIVE"
+ [ -n ${APPVGDRIVE} ] && wipe_lvm_on_disk "$APPVGDRIVE"
wipe_lvm_on_disk "$ROOTDRIVE"
# begin critical section
@...
2009 May 20
2
[PATCH node] Adds support for a core dump partition to the node.
...partitioned as follows:
Installation partition size: $ROOT_SIZE * 2 MB
Configuration partition size: $CONFIG_SIZE MB
Logging partition size: $LOGGING_SIZE MB
+ Core dump partition size: $COREDUMP_SIZE MB
Data partition size: $data_size_display
EOF
@@ -381,6 +385,14 @@ perform_partitioning()
tune2fs -c 0 -i 0 /dev/HostVG/Logging
echo "/dev/HostVG/Logging /var/log ext3 defaults 0 0" >> /etc/fstab
fi
+ if [ "$COREDUMP_SIZE" -gt 0 ]; then
+ log "Creating core dump partition"
+ lvcreate --name CoreDump --size ${COREDUMP_SIZE}M...
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.
..._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
+ 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...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
..." ]; then
- reboot
- else
- /sbin/reboot
- fi
+ reboot
fi
stop_log
exit $rc
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-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...
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
...guring the management interface.\n\n"
+ exit 99
+ fi
fi
# $1 - the variable name to set
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 9b37035..df36752 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -642,7 +642,7 @@ perform_partitioning()
parted "$BOOTDRIVE" -s "mklabel ${LABEL_TYPE}"
parted "$BOOTDRIVE" -s "mkpartfs primary ext2 0M ${boot_size_si}M"
reread_partitions "$BOOTDRIVE"
- partboot="$BOOTDRIVE1"
+ partboot="${BOOTDRI...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...the storage using standard linux tools."
@@ -583,7 +583,7 @@ reread_partitions()
if [[ $drive =~ "/dev/mapper" ]]; then
kpartx -a -p p $drive
else
- blockdev --rereadpt $drive
+ blockdev --rereadpt "$drive"
fi
}
@@ -617,19 +617,19 @@ perform_partitioning()
log "Partitioning drive: $BOOTDRIVE"
log "Wiping old boot sector"
dd if=/dev/zero of=$BOOTDRIVE bs=1024K count=1
- reread_partitions $BOOTDRIVE
- partprobe -s $BOOTDRIVE
+ reread_partitions "$BOOTDRIVE"
+ partpro...
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
...guring the management interface.\n\n"
+ exit 99
+ fi
fi
# $1 - the variable name to set
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index ce9707c..c94c79d 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -624,7 +624,7 @@ perform_partitioning()
parted "$BOOTDRIVE" -s "mklabel ${LABEL_TYPE}"
parted "$BOOTDRIVE" -s "mkpartfs primary ext2 0M ${boot_size_si}M"
reread_partitions "$BOOTDRIVE"
- partboot="$BOOTDRIVE1"
+ partboot="${BOOTDRI...
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
...ovirt-crypt-swap2 ${OVIRT_CRYPT_SWAP2}" >> /etc/ovirt-crypttab
+ else
+ mkswap -L "SWAP2" /dev/AppVG/Swap2
+ echo "/dev/AppVG/Swap2 swap swap defaults 0 0" >> /etc/fstab
+ fi
fi
local use_data=1
@@ -885,6 +893,9 @@ perform_partitioning()
done
create_hostvg
[ -n ${APPVGDRIVE} ] && create_appvg
+ if [ -n ${OVIRT_CRYPT_SWAP2} -o -n ${OVIRT_CRYPT_SWAP} ]; then
+ ovirt_store_config /etc/ovirt-crypttab
+ fi
stop_log
}
diff --git a/scripts/ovirt-early b/scripts/ovirt-early
index 23198b1..5c879...
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.
...quot; >> /etc/fstab")
+
+ log("Mounting config partition")
+ if mount_config:
+ ovirt_store_config /etc/fstab
+
+ mount_logging
+ if use_data == 0:
+ log("Mounting data partition")
+ mount_data
+ log("Completed!")
+
+
+def perform_partitioning():
+ if HOSTVGDRIVE is None and OVIRT_VARS["OVIRT_ISCSI_ENABLED"] != "y":
+ log("\nNo storage device selected.\n")
+ return False
+
+ if BOOTDRIVE is None and OVIRT_VARS["OVIRT_ISCSI_ENABLED"] == "y":
+ log("\nNo stor...