search for: rootupdate

Displaying 14 results from an estimated 14 matches for "rootupdate".

2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...+++ b/scripts/ovirt-config-boot @@ -56,11 +56,11 @@ ovirt_boot_setup() { mkdir -p /liveos # prepare Root partition update 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()...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...; @@ -67,11 +74,11 @@ ovirt_boot_setup() { # prepare Root partition update candidate= - if [ -e /dev/disk/by-label/RootBackup ]; then + 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 "...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
..." rm -f /var/lib/multipath/bindings unmount_logging unmount_config /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...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...+++ b/scripts/ovirt-config-boot @@ -56,11 +56,11 @@ ovirt_boot_setup() { mkdir -p /liveos # prepare Root partition update 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()...
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
--- scripts/ovirt-config-boot | 13 +++++++- scripts/ovirt-config-storage | 73 +++++++++++++++++++++++++---------------- 2 files changed, 56 insertions(+), 30 deletions(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index d545878..8cc127b 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -29,6 +29,12 @@ ovirt_boot_setup() { local disk2
2010 Oct 27
0
[PATCH node] add uninstall module
...unmount_config("/etc/default/ovirt") + #get partition info + root2="" + rc = os.system("findfs LABEL=RootBackup 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=R...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...fi - if [ ! -e "$disk" ]; then - # e.g. c0d0p1 - disk="$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 -...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
..." rm -f /var/lib/multipath/bindings unmount_logging unmount_config /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...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
.../[N]o)?" rm -f /var/lib/multipath/bindings unmount_logging unmount_config /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/nul...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...rm -rf /liveos/LiveOS mkdir -p /liveos/LiveOS @@ -175,7 +175,7 @@ EOF if [ "$OVIRT_ISCSI_ENABLED" != "y" ]; then umount /liveos # mark new Root ready to go, reboot() in ovirt-function switches it to active - e2label $candidate_dev RootUpdate + e2label "$candidate_dev" RootUpdate fi rm -rf $tmpdir diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 8d59a6b..9fee10e 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -36,12 +36,12 @@ swap_min_size=5 # re...
2010 Oct 26
0
[PATCH node] add install.py
...ion not available") + sys.exit(1) + + # prepare Root partition update + candidate="" + if os.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 == &qu...
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.
...d /usr/share/grub/*; cp -p stage? e2fs_stage1_5 $grub_dir ) + grub --device-map=$grub_dir/device.map <<EOF root (hd0,$partN) -setup --prefix=/boot/grub (hd0) +setup --prefix=$grub_prefix (hd0) EOF rc=$? if [ $rc -ne 0 ]; then @@ -175,6 +214,10 @@ EOF e2label $candidate_dev RootUpdate rm -rf $tmpdir + if [ "$OVIRT_ISCSI_ENABLED" == "y" ]; then + # copy default for when Root/HostVG is inaccessible(iscsi upgrade + cp $OVIRT_DEFAULTS /boot + fi log "done." } diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-c...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...--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_size=5 defa...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...if os.path.exists(file): + shutil.copy(file, OVIRT_BACKUP_DIR + file) + +# reboot wrapper +# cleanup before reboot +def reboot(): + if not OVIRT_VARS.has_key("$OVIRT_ISCSI_ENABLED"): + # setup new Root if update is prepared + ret = os.system("findfs LABEL=RootUpdate >/dev/null 2>&1") + if ret == 0: + root_update_dev_lookup = subprocess.Popen("findfs LABEL=RootUpdate >/dev/null 2>&1", shell=True, stdout=PIPE, stderr=STDOUT) + root_update_dev = root_update_dev_lookup.stdout.read() + root_...