Displaying 12 results from an estimated 12 matches for "boot_size_si".
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...ndex 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 root2_end=${root1_end}+${ROOT_SIZE}
+ parted $DRIVE -s "mkpartfs primary ext2 ${boot_size_si}M ${root1_end}M"
+ parted $DRIVE -s "mkpartfs primary ext2...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...ndex 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 root2_end=${root1_end}+${ROOT_SIZE}
+ parted $DRIVE -s "mkpartfs primary ext2 ${boot_size_si}M ${root1_end}M"
+ parted $DRIVE -s "mkpartfs primary ext2...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...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"
- parted $DRIVE -s "mkpartfs primary ext2 0M ${boot_size_si}M"
l...
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.
...f [ -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" ]; then
+ dd if=/dev/zero of=$BOOTDRIVE bs=1024K count=1
+ bl...
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
...orage
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="${BOOTDRIVE}1"
if [ ! -e "$partboot" ]; then
partboot="${BOOTDRIVE}p1"
fi
@@ -817,11 +817,26 @@ do_confirm()
e...
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
..."Removing old LVM partitions")
wipe_volume_group("HostVG")
+ log("Wiping LVM on HOSTVGDRIVE")
self.wipe_lvm_on_disk(self.HOSTVGDRIVE)
+ log("Wiping LVM on ROOTDRIVE")
self.wipe_lvm_on_disk(self.ROOTDRIVE)
self.boot_size_si = self.BOOT_SIZE * (1024 * 1024) / (1000 * 1000)
if OVIRT_VARS.has_key("OVIRT_ISCSI_ENABLED") and OVIRT_VARS["OVIRT_ISCSI_ENABLED"] == "y":
--
1.7.4.4
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...- # 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" ]; then
+
+ if [ "$OVIRT_ISCSI_ENABLED" == "y" ]; th...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...partprobe -s $BOOTDRIVE
+ reread_partitions "$BOOTDRIVE"
+ partprobe -s "$BOOTDRIVE"
log "Creating boot partition"
- parted $BOOTDRIVE -s "mklabel ${LABEL_TYPE}"
- parted $BOOTDRIVE -s "mkpartfs primary ext2 0M ${boot_size_si}M"
- reread_partitions $BOOTDRIVE
- partboot=$BOOTDRIVE1
- if [ ! -e $partboot ]; then
- partboot=${BOOTDRIVE}p1
+ parted "$BOOTDRIVE" -s "mklabel ${LABEL_TYPE}"
+ parted "$BOOTDRIVE" -s "mkpartfs primary ext2 0M...
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
...orage
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="${BOOTDRIVE}1"
if [ ! -e "$partboot" ]; then
partboot="${BOOTDRIVE}p1"
fi
@@ -794,11 +794,26 @@ do_confirm()
e...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...HOSTVGDRIVE" ]; then
- parted "$HOSTVGDRIVE" -s "mkpart primary ext2 ${RootBackup_end}M -1"
- hostvgpart="3"
- elif [ "$BOOTDRIVE" = "$HOSTVGDRIVE" ]; then
- parted "$HOSTVGDRIVE" -s "mkpart primary ext2 ${boot_size_si} -1"
- hostvgpart="2"
- # FIXME : set for gtpsync/parted compat for now
- ROOTDRIVE=$BOOTDRIVE
- else
- parted "$HOSTVGDRIVE" -s "mkpart primary ext2 0M -1"
- hostvgpart="1"
- fi
- log "Toggling LVM on&quo...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...uot;parted %s -s \"mkpart primary ext2 %sM -1\"" % (HOSTVGDRIVE, RootBackup_end)
+ os.system(parted_cmd)
+ hostvgpart="3"
+ elif BOOTDRIVE == HOSTVGDRIVE:
+ parted_cmd = "parted %s -s \"mkpart primary ext2 %s -1\"" % (HOSTVGDRIVE, boot_size_si)
+ os.system(parted_cmd)
+ hostvgpart="2"
+ ROOTDRIVE = BOOTDRIVE
+ else:
+ os.system("parted \"%s\" -s \"mkpart primary ext2 0M -1") % HOSTVGDRIVE
+ hostvgpart = "1"
+ log("Toggling LVM on")
+ parted...
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