search for: reread_partit

Displaying 9 results from an estimated 9 matches for "reread_partit".

2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...-9]+|${dev}" 2>/dev/null; then log "The volume group \"$vg\" spans multiple disks." log "This operation cannot complete. Please manually" log "cleanup 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"...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...orm_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_partitions $ROOTDRIVE - partprobe -s $ROOTDRIVE - log "Labeling Drive: $ROOTDRIVE" - parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + if [ "$OVIRT_ROOT_INSTALL" == "y" ]; then + log "Starting partitioning of $ROOTDRIVE" + log "...
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
...orm_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_partitions $ROOTDRIVE - partprobe -s $ROOTDRIVE - log "Labeling Drive: $ROOTDRIVE" - parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + if [ "$OVIRT_ROOT_INSTALL" == "y" ]; then + log "Starting partitioning of $ROOTDRIVE" + log "...
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
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...${query2} " 2>/dev/null; then log "The volume group \"$vg\" spans multiple disks." log "This operation cannot complete. Please manually" log "cleanup the storage using standard disk tools." @@ -569,48 +627,52 @@ reread_partitions() create_hostvg() { - log "Creating LVM partition" - - if [ "$ROOTDRIVE" = "$HOSTVGDRIVE" ]; then - parted "$HOSTVGDRIVE" -s "mkpart primary ext2 ${RootBackup_end}M -1" - hostvgpart="3" - elif [ "$BOOTDR...
2010 Mar 18
1
[PATCH node] cleanup a couple small issues
...-ll $dev | egrep dm-[0-9]+ | sed -r 's/^.& (dm-[0-9]+) .*$/\1/') local mpath_device= - get_dm_device $dm_dev $mpath_device + get_dm_device $dm_dev mpath_device if [ -z "$mpath_device" ]; then mpath_device=$dev @@ -580,7 +580,7 @@ wipe_lvm_on_disk() reread_partitions() { local drive=$1 - if [[ $drive =~ "^/dev/mapper" ]]; then + if [[ $drive =~ "/dev/mapper" ]]; then kpartx -a -p p $drive else blockdev --rereadpt $drive -- 1.6.6.1
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...he volume group \"%s\" spans multiple disks.") % vg + log("This operation cannot complete. Please manually") + log("cleanup the storage using standard disk tools.") + sys.exit(1) + wipe_volume_group(vg) + return + + +def reread_partitions(drive): + if "dev/mapper" in drive: + # kpartx -a -p p "$drive" + # XXX fails with spaces in device names (TBI) + # ioctl(3, DM_TABLE_LOAD, 0x966980) = -1 EINVAL (Invalid argument) + # create/reload failed on 0QEMU QEMU HARDDISK drive-scsi...
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
...00755 --- 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() else return...
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
...00755 --- 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() else return...