search for: rootbackup

Displaying 20 results from an estimated 22 matches for "rootbackup".

2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
This lays the groundwork for setting Root and RootBackup onto individual partitions for multiple disk installations in the future. Install, removal, upgrade testing has been performed and all seems to work at this point. --- scripts/ovirt-config-boot | 15 ++++++++------- scripts/ovirt-config-storage | 28 +++++++++++++++------------- scrip...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...ff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index ed2bb9f..01c1821 100755 --- a/scripts/ovirt-config-boot +++ 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/Root...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...on" @@ -70,10 +65,6 @@ ovirt_boot_setup() { return 1 fi - if [ ! -e "$disk" ]; then - # e.g. c0d0p1 - disk="$disk2" - fi # prepare Root partition update candidate= if [ -e /dev/disk/by-label/RootBackup ]; then diff --git a/scripts/ovirt-config-uninstall b/scripts/ovirt-config-uninstall index 3b7b48d..b6675e7 100755 --- a/scripts/ovirt-config-uninstall +++ b/scripts/ovirt-config-uninstall @@ -37,27 +37,37 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...ABEL=$grub_dev_label 2>/dev/null) disk partN rc=$? if [ $rc -ne 0 -o $partN -lt 0 ]; then log "unable to determine Root partition" @@ -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...
2009 Jan 24
2
rsync with --copy-devices patch and device-target with --write-batch doesnt work
Hi List! I want to use rsync to create differential backups of my lvm-snapshots. fullbackup-filename: /mnt/sdc1/snapshotvergleich/rootbackup1.img current snapshot: /dev/vg0/rootbackup note: compiled-in --copy-devices-patch root@xp8main3:/usr/local/src/rsync# ./rsync --version rsync version 3.1.0dev protocol version 31.PR5 Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabi...
2006 Apr 18
1
Re: Re: backing up my system with dump (Chris Mauritz)
...t;>> I don't want to use tar. >>> >>Let's say you have two disks. There's the "system" disk with the root >>partition mounted as / and the "backup" disk mounted as /backup. If you >>did this: >>/sbin/dump -0u -f /backup/rootbackup / >>you would wind up with a dump image of your root filesystem on your >>backup disk and it would be called "rootbackup". >>That works for me. Really good Chris, I'm dumping my filesystems NOW! :-), but a last question: How can I restore from this dump image? R...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...boot sector" + dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1 + blockdev --rereadpt $ROOTDRIVE + partprobe -s $ROOTDRIVE + log "Labeling Drive: $ROOTDRIVE" + parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + log "Creating Root and RootBackup Partitions" + let RootBackup_end=${ROOT_SIZE}*2 + parted $ROOTDRIVE -s "mkpart primary ext2 0M ${ROOT_SIZE}M" + parted $ROOTDRIVE -s "mkpart primary ext2 ${ROOT_SIZE}M ${RootBackup_end}M" + # sleep to ensure filesystems are created before continu...
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
...boot sector" + dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1 + blockdev --rereadpt $ROOTDRIVE + partprobe -s $ROOTDRIVE + log "Labeling Drive: $ROOTDRIVE" + parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + log "Creating Root and RootBackup Partitions" + let RootBackup_end=${ROOT_SIZE}*2 + parted $ROOTDRIVE -s "mkpart primary ext2 0M ${ROOT_SIZE}M" + parted $ROOTDRIVE -s "mkpart primary ext2 ${ROOT_SIZE}M ${RootBackup_end}M" + # sleep to ensure filesystems are created before continu...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...on" @@ -70,10 +65,6 @@ ovirt_boot_setup() { return 1 fi - if [ ! -e "$disk" ]; then - # e.g. c0d0p1 - disk="$disk2" - fi # prepare Root partition update candidate= if [ -e /dev/disk/by-label/RootBackup ]; then diff --git a/scripts/ovirt-config-uninstall b/scripts/ovirt-config-uninstall index 3b7b48d..b6675e7 100755 --- a/scripts/ovirt-config-uninstall +++ b/scripts/ovirt-config-uninstall @@ -37,27 +37,37 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...on" @@ -70,10 +65,6 @@ ovirt_boot_setup() { return 1 fi - if [ ! -e "$disk" ]; then - # e.g. c0d0p1 - disk="$disk2" - fi # prepare Root partition update candidate= if [ -e /dev/disk/by-label/RootBackup ]; then diff --git a/scripts/ovirt-config-uninstall b/scripts/ovirt-config-uninstall index 3b7b48d..b319abd 100755 --- a/scripts/ovirt-config-uninstall +++ b/scripts/ovirt-config-uninstall @@ -37,27 +37,38 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"...
2010 Oct 27
0
[PATCH node] add uninstall module
...os.system("service multipathd stop") + os.system("rm -f /var/lib/multipath/bindings") + unmount_logging() + 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=RootNe...
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.
...LED=y + if [ -f /boot/ovirt ]; then + . /boot/ovirt + iscsiadm -p $OVIRT_ISCSI_TARGET_IP:$OVIRT_ISCSI_TARGET_PORT -m discovery -t sendtargets + log "Restarting iscsi service" + service iscsi restart + fi + else + grub_dev_label="RootBackup" + fi mount_liveos # check that /boot mounted ok and find partition number for GRUB - eval $(readlink -f /dev/disk/by-label/RootBackup|awk {' + eval $(readlink -f /dev/disk/by-label/$grub_dev_label|awk {' print "disk=" substr($1,1,length($1)-1);...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
This completes the switch to ext3 backed root partitions. /boot is now contained on each Root/RootBackup partition. On install grub is updated to read and boot from the correct partition as well. --- scripts/ovirt-config-boot | 29 ++++++++++++------------ scripts/ovirt-config-storage | 47 +++++++++++---------------------------- scripts/ovirt-config-uninstall | 5 +--- scripts/ovirt-fu...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...3 + 3 files changed, 177 insertions(+), 121 deletions(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index 4c4e3d7..7978010 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -48,7 +48,7 @@ ovirt_boot_setup() { else grub_dev_label="RootBackup" fi - mount_liveos + # check that /boot mounted ok and find partition number for GRUB eval $(readlink -f /dev/disk/by-label/$grub_dev_label|awk {' print "disk=" substr($1,1,length($1)-1); @@ -62,54 +62,57 @@ ovirt_boot_setup() { return 1 fi...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...[ "$ROOTDRIVE" != "$HOSTVGDRIVE" ]; then log "Labeling Drive: $HOSTVGDRIVE" - parted $HOSTVGDRIVE -s "mklabel ${LABEL_TYPE}" + parted "$HOSTVGDRIVE" -s "mklabel ${LABEL_TYPE}" fi log "Creating Root and RootBackup Partitions" let RootBackup_end=${ROOT_SIZE}*2 parted $ROOTDRIVE -s "mkpart primary ext2 0M ${ROOT_SIZE}M" parted $ROOTDRIVE -s "mkpart primary ext2 ${ROOT_SIZE}M ${RootBackup_end}M" reread_partitions $ROOTDRIVE - partroot=${ROOTDRIVE}1 - partrootba...
2006 Apr 17
3
backing up my system with dump
I'm running CentOS 4.3 on Intel. I don't have any tape device on my system for backup, but I have an entire disk (/dev/sdb) for backup ... my question is: How can I backup ALL my filesystems to some place of my backup hdd (dev/sdb) using dump/restore? I don't want to use tar. Regards Israel
2010 Oct 26
0
[PATCH node] add install.py
...ARS["OVIRT_ISCSI_TARGET_PORT"]) + os.system("iscsiadm_cmd") + log("Restarting iscsi service") + os.system("service iscsi restart") + except: + pass + else: + grub_dev_label="RootBackup" + + # check that /boot mounted ok and find partition number for GRUB, $4 is to allow 0 as a partition number for grub + grub_part_info_cmd = "findfs LABEL=%s 2>/dev/null" % grub_dev_label + grub_part_info = subprocess.Popen(grub_part_info_cmd, shell=True, stdout=PIPE, st...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...;Labeling Drive: $ROOTDRIVE" + parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + if [ $ROOTDRIVE != $HOSTVGDRIVE ]; then + log "Labeling Drive: $HOSTVGDRIVE" + parted $HOSTVGDRIVE -s "mklabel ${LABEL_TYPE}" + fi log "Creating Root and RootBackup Partitions" let RootBackup_end=${ROOT_SIZE}*2 - parted $DRIVE -s "mkpartfs primary ext2 0M ${ROOT_SIZE}M" - parted $DRIVE -s "mkpartfs primary ext2 ${ROOT_SIZE}M ${RootBackup_end}M" + parted $ROOTDRIVE -s "mkpartfs primary ext2 0M ${ROOT_SIZE}M" +...
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
...{ found_boot=true grub_dev_label=Boot elif findfs LABEL=Root 2>&1 >/dev/null ; then - found_boot=true + found_boot=false grub_dev_label=Root fi if $found_boot; then @@ -62,8 +62,8 @@ ovirt_boot_setup() { grub_dev_label="RootBackup" fi - # check that /boot mounted ok and find partition number for GRUB - get_part_info $(readlink -f $(findfs LABEL=$grub_dev_label 2>/dev/null)) disk partN + # check that /boot mounted ok and find partition number for GRUB, $4 is to allow 0 as a partition number for grub +...
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
...{ found_boot=true grub_dev_label=Boot elif findfs LABEL=Root 2>&1 >/dev/null ; then - found_boot=true + found_boot=false grub_dev_label=Root fi if $found_boot; then @@ -56,8 +56,8 @@ ovirt_boot_setup() { grub_dev_label="RootBackup" fi - # check that /boot mounted ok and find partition number for GRUB - get_part_info $(readlink -f $(findfs LABEL=$grub_dev_label 2>/dev/null)) disk partN + # check that /boot mounted ok and find partition number for GRUB, $4 is to allow 0 as a partition number for grub +...