Displaying 14 results from an estimated 14 matches for "partpv".
Did you mean:
part
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...i
- # sync GPT to the legacy MBR partitions
- if [ "${OVIRT_INSTALL_ROOT}" = "y" ]; then
- if [ "gpt" = "$LABEL_TYPE" ]; then
- log "Running gptsync to create legacy mbr"
- gptsync "$ROOTDRIVE"
+ partpv="${drv}${hostvgpart}"
+ if [ ! -e "$partpv" ]; then
+ # e.g. /dev/cciss/c0d0p2
+ partpv="${drv}p${hostvgpart}"
fi
- fi
+ log "Creating physical volume"
+ if [ ! -e "$partpv" ]; then
+...
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...g "Toggling LVM on"
- parted $DRIVE -s "set 2 lvm on"
+ parted $DRIVE -s "set 4 lvm on"
parted $DRIVE -s "print"
udevadm settle 2> /dev/null || udevsettle
@@ -356,11 +367,11 @@ perform_partitioning()
fi
partboot=${DRIVE}1
- partpv=${DRIVE}2
+ partpv=${DRIVE}4
if [ ! -e "$partpv" ]; then
# e.g. /dev/cciss/c0d0p2
partboot=${DRIVE}p1
- partpv=${DRIVE}p2
+ partpv=${DRIVE}p4
fi
log "Creating physical volume"
if [ ! -e "$partpv" ]; then
@@ -388,15...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...t;
- gptsync $ROOTDRIVE
+ if [ "$OVIRT_ROOT_INSTALL" == "y" ]; then
+ if [ "gpt" == "$LABEL_TYPE" ]; then
+ log "Running gptsync to create legacy mbr"
+ gptsync "$ROOTDRIVE"
+ fi
fi
- partpv=${HOSTVGDRIVE}${hostvgpart}
+ partpv="${HOSTVGDRIVE}"${hostvgpart}
if [ ! -e "$partpv" ]; then
# e.g. /dev/cciss/c0d0p2
- partpv=${HOSTVGDRIVE}p${hostvgpart}
+ partpv="${HOSTVGDRIVE}"p${hostvgpart}
fi
log "Creating physical...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...vm on"
+ parted $DRIVE -s "set 4 lvm on"
parted $DRIVE -s "print"
udevadm settle 2> /dev/null || udevsettle
if [[ "$DRIVE" =~ "^/dev/mapper" ]]; then
@@ -550,11 +561,11 @@ perform_partitioning()
fi
partboot=${DRIVE}1
- partpv=${DRIVE}2
+ partpv=${DRIVE}4
if [ ! -e "$partpv" ]; then
# e.g. /dev/cciss/c0d0p2
partboot=${DRIVE}p1
- partpv=${DRIVE}p2
+ partpv=${DRIVE}p4
fi
log "Creating physical volume"
if [ ! -e "$partpv" ]; then
@@ -582,15...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...quot;
- parted $DRIVE -s "set 4 lvm on"
+ parted $DRIVE -s "set 3 lvm on"
parted $DRIVE -s "print"
udevadm settle 2> /dev/null || udevsettle
@@ -366,12 +356,10 @@ perform_partitioning()
gptsync $DRIVE
fi
- partboot=${DRIVE}1
- partpv=${DRIVE}4
+ partpv=${DRIVE}3
if [ ! -e "$partpv" ]; then
# e.g. /dev/cciss/c0d0p2
- partboot=${DRIVE}p1
- partpv=${DRIVE}p4
+ partpv=${DRIVE}p3
fi
log "Creating physical volume"
if [ ! -e "$partpv" ]; then
@@ -383,15...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...;print"
udevadm settle 2> /dev/null || udevsettle
# sync GPT to the legacy MBR partitions
if [ "gpt" == "$LABEL_TYPE" ]; then
log "Running gptsync to create legacy mbr"
- gptsync $DRIVE
+ gptsync $ROOTDRIVE
fi
- partpv=${DRIVE}3
+ partpv=${HOSTVGDRIVE}${hostvgpart}
if [ ! -e "$partpv" ]; then
# e.g. /dev/cciss/c0d0p2
- partpv=${DRIVE}p3
+ partpv=${HOSTVGDRIVE}p${hostvgpart}
fi
log "Creating physical volume"
if [ ! -e "$partpv" ]; then
@@...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...echo $partition | awk ' {
- print "drive=" substr($0,1,length($1)-1);
- print "drive2=" substr($0,1,length($1)-2);
- }')
- if [ ! -e "$drive" ]; then
- drive="$drive2"
- partpv="$drive}p2"
- else
- partpv="${drive}2"
- fi
- parted -s $drive "rm 1"
- pvremove ${partpv}
- parted -s $drive "rm 2"
- parted -s $drive "rm 3"
- wipe_partitions $...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...+ reread_partitions "$HOSTVGDRIVE"
# sync GPT to the legacy MBR partitions
if [ "gpt" == "$LABEL_TYPE" ]; then
log "Running gptsync to create legacy mbr"
- gptsync $ROOTDRIVE
+ gptsync "$ROOTDRIVE"
fi
- partpv=${HOSTVGDRIVE}${hostvgpart}
+ partpv="${HOSTVGDRIVE}${hostvgpart}"
if [ ! -e "$partpv" ]; then
# e.g. /dev/cciss/c0d0p2
- partpv=${HOSTVGDRIVE}p${hostvgpart}
+ partpv="${HOSTVGDRIVE}p${hostvgpart}"
fi
log "Creating physical...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...echo $partition | awk ' {
- print "drive=" substr($0,1,length($1)-1);
- print "drive2=" substr($0,1,length($1)-2);
- }')
- if [ ! -e "$drive" ]; then
- drive="$drive2"
- partpv="$drive}p2"
- else
- partpv="${drive}2"
- fi
- parted -s $drive "rm 1"
- pvremove ${partpv}
- parted -s $drive "rm 2"
- parted -s $drive "rm 3"
- wipe_partitions $...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...echo $partition | awk ' {
- print "drive=" substr($0,1,length($1)-1);
- print "drive2=" substr($0,1,length($1)-2);
- }')
- if [ ! -e "$drive" ]; then
- drive="$drive2"
- partpv="$drive}p2"
- else
- partpv="${drive}2"
- fi
- parted -s $drive "rm 1"
- pvremove ${partpv}
- parted -s $drive "rm 2"
- parted -s $drive "rm 3"
- wipe_partitions $...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...as_key["OVIRT_INSTALL_ROOT"] and OVIRT_VARS["OVIRT_INSTALL_ROOT"] == "y" :
+ if self.LABEL_TYPE == "gpt":
+ log("Running gptsync to create legacy mbr")
+ os.system("gptsync \"%s\"") % ROOTDRIVE
+
+ partpv = HOSTVGDRIVE + hostvgpart
+ if not os.path.exists(partpv):
+ # e.g. /dev/cciss/c0d0p2
+ partpv = HOSTVGDRIVE + "p" + hostvgpart
+ log("Creating physical volume")
+ if not os.path.exists(partpv):
+ log("%s is not available!") % partpv
+...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...it $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 a/scripts/ovirt-functions b/scripts/ovirt-functions
index b98e31a..482441a 100644
---...
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 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
...gacy mbr"
- gptsync $ROOTDRIVE
+ if [ "$OVIRT_ROOT_INSTALL" == "y" ]; then
+ if [ "gpt" == "$LABEL_TYPE" ]; then
+ log "Running gptsync to create legacy mbr"
+ gptsync $ROOTDRIVE
+ fi
fi
partpv=${HOSTVGDRIVE}${hostvgpart}
--
1.6.6.1