Displaying 10 results from an estimated 10 matches for "rootnew".
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...te
candidate=
- if [ -e /dev/HostVG/RootBackup ]; then
+ if [ -e /dev/disk/by-label/RootBackup ]; then
candidate=RootBackup
- elif [ -e /dev/HostVG/RootUpdate ]; then
+ elif [ -e /dev/disk/by-label/RootUpdate ]; then
candidate=RootUpdate
- elif [ -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=$(readli...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...etc/default/ovirt
+ #get partition info
+ root2=""
+ if findfs LABEL=RootBackup 2>&1 >/dev/null; then
+ root2=RootBackup
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
+ root2=RootUpdate
+ elif findfs LABEL=RootNew 2>&1 >/dev/null; then
+ root2=RootNew
+ fi
+ if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then
+ log "Can't find Root device"
+ exit 2
+ fi
+ if ! get_part_info $(findfs LABEL=${root2}...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...te
candidate=
- if [ -e /dev/HostVG/RootBackup ]; then
+ if [ -e /dev/disk/by-label/RootBackup ]; then
candidate=RootBackup
- elif [ -e /dev/HostVG/RootUpdate ]; then
+ elif [ -e /dev/disk/by-label/RootUpdate ]; then
candidate=RootUpdate
- elif [ -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=$(readli...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...if findfs LABEL=RootBackup 2>&1 >/dev/null; then
candidate=RootBackup
- elif [ -e /dev/disk/by-label/RootUpdate ]; then
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
candidate=RootUpdate
- elif [ -e /dev/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=$(readl...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
..."$disk2"
- fi
- mkdir -p /liveos
- # prepare Root partition update
- candidate=
- if [ -e /dev/disk/by-label/RootBackup ]; then
- candidate=RootBackup
- elif [ -e /dev/disk/by-label/RootUpdate ]; 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...
2010 Oct 27
0
[PATCH node] add uninstall module
...Backup 2>&1 >/dev/null")
+ if rc == 0:
+ root2 = "RootBackup"
+ rc = os.system("findfs LABEL=RootUpdate 2>&1 >/dev/null")
+ if rc == 0:
+ root2 = "RootUpdate"
+ rc = os.system("findfs LABEL=RootNew 2>&1 >/dev/null")
+ if rc == 0:
+ root2 = "RootNew"
+
+ root_label_lookup_cmd = "findfs LABEL=Root"
+ root_label_lookup = subprocess.Popen(root_label_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ root_device = root_la...
2010 Oct 26
0
[PATCH node] add install.py
...s.system("findfs LABEL=RootBackup 2>&1 >/dev/null"):
+ candidate = "RootBackup"
+ elif os.system("findfs LABEL=RootUpdate 2>&1 >/dev/null"):
+ candidate = "RootUpdate"
+ elif os.system("findfs 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...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...etc/default/ovirt
+ #get partition info
+ root2=""
+ if findfs LABEL=RootBackup 2>&1 >/dev/null; then
+ root2=RootBackup
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
+ root2=RootUpdate
+ elif findfs LABEL=RootNew 2>&1 >/dev/null; then
+ root2=RootNew
+ fi
+ if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then
+ log "Can't find Root device"
+ exit 2
+ fi
+ if ! get_part_info $(findfs LABEL=${root2}...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...onfig /etc/default/ovirt
+ #get partition info
+ local root2
+ if findfs LABEL=RootBackup 2>&1 >/dev/null; then
+ root2=RootBackup
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
+ root2=RootUpdate
+ elif findfs LABEL=RootNew 2>&1 >/dev/null; then
+ root2=RootNew
+ fi
+ local root_dev root_part pv_dev pv_part root2_dev root2_part
+ if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then
+ log "Can't find Root device"
+...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...t 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 $candidate_dev /liveos/
+ mount "$candidate_dev" /liveos/
rm -rf...