Displaying 9 results from an estimated 9 matches for "candidate_dev".
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...disk/by-label/RootNew ]; then
+ elif findfs LABEL=RootNew 2>&1 >/dev/null; then
candidate=RootNew
fi
if [ -z "$candidate" ]; then
@@ -80,7 +87,7 @@ ovirt_boot_setup() {
umount /liveos
rc=0
else
- candidate_dev=$(readlink -f /dev/disk/by-label/$candidate)
+ candidate_dev=$(findfs LABEL=$candidate 2>/dev/null)
e2label $candidate_dev RootNew
rc=$?
fi
@@ -90,7 +97,7 @@ ovirt_boot_setup() {
return $rc
fi
- mount $candidate_dev /liveo...
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...-e /dev/HostVG/RootNew ]; then
+ elif [ -e /dev/disk/by-label/RootNew ]; then
candidate=RootNew
fi
if [ -z "$candidate" ]; then
@@ -69,7 +69,8 @@ ovirt_boot_setup() {
umount /liveos
rc=0
else
- lvrename HostVG $candidate RootNew
+ candidate_dev=$(readlink -f /dev/disk/by-label/$candidate)
+ e2label $candidate_dev RootNew
rc=$?
fi
if [ $rc -ne 0 ]; then
@@ -77,7 +78,7 @@ ovirt_boot_setup() {
log "$(lvdisplay -c)"
return $rc
fi
- mount /dev/HostVG/RootNew /liveos
+ mount $candidat...
2010 Oct 26
0
[PATCH node] add install.py
...ndfs LABEL=RootNew 2>&1 >/dev/null"):
+ candidate = "RootNew"
+ if candidate == "":
+ rc=1
+ elif candidate == "RootNew":
+ os.system("umount /liveos")
+ rc=0
+ else:
+ candidate_dev_cmd = "findfs LABEL=%s 2>/dev/null" % candidate
+ candidate_dev = subprocess.Popen(grub_part_info_cmd, shell=True, stdout=PIPE, stderr=STDOUT, stdin=PIPE)
+ candidate_dev = candidate_dev.stdout.read()
+ e2label_cmd = "e2label %s RootNew" % can...
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
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...then
- candidate=RootUpdate
- elif [ -e /dev/disk/by-label/RootNew ]; then
- candidate=RootNew
- fi
- if [ -z "$candidate" ]; then
- rc=1
- elif [ "$candidate" = "RootNew" ]; then
- umount /liveos
- rc=0
- else
- candidate_dev=$(readlink -f /dev/disk/by-label/$candidate)
- e2label $candidate_dev RootNew
- rc=$?
- fi
- if [ $rc -ne 0 ]; then
- log "root partition not available."
- log "$(ls -al /dev/disk/by-label)"
- return $rc
- fi
+ if [ ! -e "$disk&q...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...3 files changed, 111 insertions(+), 111 deletions(-)
diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot
index d545878..347fc18 100755
--- a/scripts/ovirt-config-boot
+++ b/scripts/ovirt-config-boot
@@ -88,7 +88,7 @@ ovirt_boot_setup() {
rc=0
else
candidate_dev=$(findfs LABEL=$candidate 2>/dev/null)
- e2label $candidate_dev RootNew
+ e2label "$candidate_dev" RootNew
rc=$?
fi
if [ $rc -ne 0 ]; then
@@ -97,7 +97,7 @@ ovirt_boot_setup() {
return $rc
fi
- mount $cand...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...-e /dev/HostVG/RootNew ]; then
+ elif [ -e /dev/disk/by-label/RootNew ]; then
candidate=RootNew
fi
if [ -z "$candidate" ]; then
@@ -69,7 +69,8 @@ ovirt_boot_setup() {
umount /liveos
rc=0
else
- lvrename HostVG $candidate RootNew
+ candidate_dev=$(readlink -f /dev/disk/by-label/$candidate)
+ e2label $candidate_dev RootNew
rc=$?
fi
if [ $rc -ne 0 ]; then
@@ -77,7 +78,7 @@ ovirt_boot_setup() {
log "$(lvdisplay -c)"
return $rc
fi
- mount /dev/HostVG/RootNew /liveos
+ mount $candidat...
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.
...partN=substr($1,length($1),1); partN--;
@@ -75,9 +94,10 @@ ovirt_boot_setup() {
fi
if [ $rc -ne 0 ]; then
log "root partition not available."
- log "$(lvdisplay -c)"
+ log "$(ls -al /dev/disk/by-label)"
return $rc
fi
+
mount $candidate_dev /liveos
# install oVirt Node image for local boot
if [ -e "$live/syslinux" ]; then
@@ -87,12 +107,25 @@ ovirt_boot_setup() {
else
syslinux=
fi
- rm -rf /liveos/boot/grub
+
rm -rf /liveos/LiveOS
- mkdir -p /liveos/boot/grub
mkdir -p /liveos/LiveOS...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...(hd0)
+setup --prefix=/boot/grub (hd0)
EOF
rc=$?
if [ $rc -ne 0 ]; then
@@ -175,7 +175,6 @@ EOF
ovirt_store_config /etc/iscsi/initiatorname.iscsi
umount /liveos
- umount /boot
# mark new Root ready to go, reboot() in ovirt-function switches it to active
e2label $candidate_dev RootUpdate
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index af13935..77e00d0 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -22,14 +22,12 @@ fi
default_overcommit=0.5
-default_boot_size=50
default_root_size=256
default_config_s...