[Rear-users] Testing REAR in an XEN Environtment with SUSE Enterprise Linux 11 SP1

Welte Gerhard gerhard.welte at badenIT.de
Fri Aug 26 10:25:08 CEST 2011


Hallo @all,

so I tested now 2 Ways for backup and rescue.

1 - PXE-NETFS -> Works
2 - PXE-TSM -> Problems with bootloader

In Detail:

1) Making backup with Option PXE +  NETFS works fine for rescue.

#more /etc/rear/local.conf
OUTPUT=PXE
PXE_TFTP_PATH=/installxen/volta/pxe
PXE_CONFIG_PATH=$PXE_TFTP_PATH
PXE_CREATE_LINKS=IP
BACKUP=NETFS
NETFS_URL=srvxen02:/installxen/volta/netfs

# rear -d mkbackup

# more ampere-netfs

name="ampere"
description="ampere"
memory=512
maxmem=512
vcpus=4
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
localtime=0
builder="linux"
kernel="/installxen/volta/netfs/volta/volta.kernel"
ramdisk="/installxen/volta/netfs/volta/volta.initrd.cgz"
disk=[  'file:/installxen/volta/netfs/volta/volta.initrd.cgz,xvdh:cdrom,r' , 'phy:/dev/mapper/ampere_rootvg,xvda,w' , ]
vif=[ 'mac=00:16:3e:60:d9:86,bridge=br17', ]
vfb=['type=vnc,vncunused=1']
root="/dev/mapper/ampere_rootvg-LogVol00 ro"

# xm create -c ampere-netfs

!! It works -> wonderful....

2) Testing with PXE + TSM will result in following message on rescue:

# rear mkbackup with the following local.conf

volta:/etc/rear # more local.conf
OUTPUT=PXE
PXE_TFTP_PATH=/installxen/volta/pxetsm
PXE_CONFIG_PATH=$PXE_TFTP_PATH
PXE_CREATE_LINKS=IP
BACKUP=TSM

# xm create -c ampere.psetsm

RESCUE volta:~ # more /tmp/rear-volta.log
2011-08-26 10:05:33 Relax & Recover Version 1.11.0 / 2011-05-24 10:39:25 +0200
2011-08-26 10:05:33 Command line options: /bin/rear recover
2011-08-26 10:05:33 Combining configuration files
2011-08-26 10:05:33 Including /etc/rear/os.conf
2011-08-26 10:05:33 Skipping /etc/rear/recover.conf (file not found or empty)
2011-08-26 10:05:33 Including conf/Linux-i386.conf
2011-08-26 10:05:33 Including conf/GNU/Linux.conf
2011-08-26 10:05:33 Including conf/SUSE_LINUX.conf
2011-08-26 10:05:33 Skipping /usr/share/rear/conf/SUSE_LINUX/i386.conf (file not found or empty)
2011-08-26 10:05:33 Skipping /usr/share/rear/conf/SUSE_LINUX/11.conf (file not found or empty)
2011-08-26 10:05:33 Skipping /usr/share/rear/conf/SUSE_LINUX/11/i386.conf (file not found or empty)
2011-08-26 10:05:33 Skipping /etc/rear/site.conf (file not found or empty)
2011-08-26 10:05:33 Including /etc/rear/local.conf
2011-08-26 10:05:33 Skipping /etc/rear/rescue.conf (file not found or empty)
2011-08-26 10:05:33 Using build area '/tmp/rear.N13Tf5Xx901Ok4V'
2011-08-26 10:05:33 Running recover workflow
2011-08-26 10:05:33 Running 'setup' stage
2011-08-26 10:05:33 Including setup/default/01_pre_recovery_script.sh
2011-08-26 10:05:33 Including setup/GNU/Linux/80_setup_hp_raid.sh
2011-08-26 10:05:33 Finished running 'setup' stage in 0 seconds
2011-08-26 10:05:33 Running 'verify' stage
2011-08-26 10:05:33 Including verify/GNU/Linux/05_sane_recovery_check.sh
2011-08-26 10:05:33 Including verify/GNU/Linux/10_describe_physical_devices.sh
2011-08-26 10:05:33 Including verify/Linux-i386/11_describe_device_properties.sh
sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/xvdh: unrecognized partition table type
No partitions found
2011-08-26 10:05:33 Including verify/GNU/Linux/12_compare_physical_devices.sh
2011-08-26 10:05:33 Including verify/GNU/Linux/21_migrate_recovery_configuration.sh
2011-08-26 10:05:33 Including verify/GNU/Linux/23_storage_and_network_modules.shfind: `/lib/modules/2.6.32.24-0.2-xen/extra': No such file or directory
find: `/lib/modules/2.6.32.24-0.2-xen/weak-updates': No such file or directory
2011-08-26 10:05:33 Including verify/GNU/Linux/26_recovery_storage_drivers.sh
2011-08-26 10:05:33 Including verify/TSM/default/39_request_point_in_time_restore_parameters.sh
2011-08-26 10:05:33 
2011-08-26 10:05:33 TSM restores by default the latest backup data. Alternatively you can specify
2011-08-26 10:05:33 a different date and time to enable Point-In-Time Restore. Press ENTER to
2011-08-26 10:05:33 use the most recent available backup
2011-08-26 10:05:45 Skipping Point-In-Time Restore, will restore most recent data.
2011-08-26 10:05:45 Including verify/TSM/default/40_verify_tsm.sh
2011-08-26 10:05:45 Skipping ping test
2011-08-26 10:05:47 Available filespaces: 
  #     Last Incr Date      Type    File Space Name
---     --------------      ----    ---------------
  1   00-00-0   00:00:00   EXT3    /           
2011-08-26 10:06:07 User pressed ENTER, setting default of 1
2011-08-26 10:06:07 We will now restore the following filesystems:
2011-08-26 10:06:07 /
2011-08-26 10:06:10 User confirmed filespace selection
2011-08-26 10:06:10 Finished running 'verify' stage in 37 seconds
2011-08-26 10:06:10 Running 'recreate' stage
2011-08-26 10:06:10 Including recreate/GNU/Linux/09_disable_lvm2_md.sh
    Creating directory "/var/lock/lvm"
    Finding all volume groups
2011-08-26 10:06:11 Including recreate/Linux-i386/10_initialize_physical_devices.sh
10+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 0.0747927 s, 140 MB/s
1+0 records in
1+0 records out
446 bytes (446 B) copied, 0.0010818 s, 412 kB/s
Checking that no-one is using this disk right now ...
OK

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/xvda: unrecognized partition table type
No partitions found
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
2011-08-26 10:06:17 Including recreate/GNU/Linux/21_create_md_devices.sh
2011-08-26 10:06:17 Including recreate/GNU/Linux/22_create_drbd_configuration.sh2011-08-26 10:06:17 Including recreate/GNU/Linux/22_create_lvm2_devices.sh
2011-08-26 10:06:17 Including recreate/GNU/Linux/31_create_filesystems.sh
mke2fs 1.41.9 (22-Aug-2009)
2011-08-26 10:06:23 Including recreate/GNU/Linux/70_mount_filesystems.sh
2011-08-26 10:06:23 Including recreate/default/98_show_disk_free.sh
2011-08-26 10:06:23 Recreated this filesystem layout:
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda2             10G  154M  9.4G   2% /mnt/local
2011-08-26 10:06:23 Finished running 'recreate' stage in 13 seconds
2011-08-26 10:06:23 Running 'restore' stage
2011-08-26 10:06:23 Including restore/TSM/default/40_restore_with_tsm.sh
2011-08-26 10:06:23 Restoring /
2011-08-26 10:06:23 Running 'dsmc restore /* /mnt/local// -verbose -subdir=yes -replace=all -tapeprompt=no '
2011-08-26 10:06:51 Including restore/default/90_create_missing_directories.sh
2011-08-26 10:06:51 Including restore/SUSE_LINUX/91_create_missing_directories.sh
2011-08-26 10:06:51 Finished running 'restore' stage in 28 seconds
2011-08-26 10:06:51 Running 'finalize' stage
2011-08-26 10:06:51 Including finalize/default/01_prepare_checks.sh
2011-08-26 10:06:51 Including finalize/default/10_populate_dev.sh
2011-08-26 10:06:51 Including finalize/GNU/Linux/15_migrate_disk_devices.sh
2011-08-26 10:06:51 Including finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh
2011-08-26 10:06:51 Including finalize/SUSE_LINUX/i386/20_run_mkbootloader.sh
2011-08-26 10:06:51 Restoring the bootloader (SuSE style)
grep: /mnt/local/boot/grub/device.map: No such file or directory
2011-08-26 10:06:52 Running chroot 'grub --batch </etc/grub.conf'
chroot: cannot run command `/bin/bash': No such file or directory
2011-08-26 10:06:52 WARNING !
        Could not run content of '/var/lib/rear/recovery/mkbootloader'
        
        The boot loader might not be installed properly, check /tmp/rear-volta.log for
        more details about this. You might have to re-install the bootloader
        manually to get this system to boot
2011-08-26 10:06:52 Including finalize/GNU/Linux/41_migrate_udev_rules.sh
2011-08-26 10:06:52 Including finalize/GNU/Linux/42_migrate_network_configuration_files.sh
2011-08-26 10:06:52 Including finalize/GNU/Linux/70_create_swapfiles.sh
2011-08-26 10:06:52 Including finalize/default/88_check_for_mount_by_id.sh
2011-08-26 10:06:52 Including finalize/default/89_finish_checks.sh
2011-08-26 10:06:52 
WARNING ! For this system 
SUSE_LINUX/11 on Linux-i386 (based on )
there is no code to install a boot loader on the recovered system or the code
that we have failed to install the boot loader correctly.

Please contribute this code to the Relax & Recover project. To do so
please take a look at the scripts in /usr/share/rear/finalize,
for an example you can use the script for Fedora (and RHEL/CentOS/SL) in
/usr/share/rear/finalize/Fedora/i386/20_install_grub.sh

--------------------  ATTENTION ATTENTION ATTENTION -------------------
|                                                                     |
|          IF YOU DO NOT INSTALL A BOOT LOADER MANUALLY,              |
|                                                                     |
|          THEN YOUR SYSTEM WILL N O T BE ABLE TO BOOT !              |
|                                                                     |
-----------------------------------------------------------------------

You can use 'chroot /mnt/local bash --login' to access the recovered system.
Please remember to mount /proc before trying to install a boot loader.

2011-08-26 10:06:52 Including finalize/default/90_remount_sync.sh
2011-08-26 10:06:52 Finished running 'finalize' stage in 1 seconds
2011-08-26 10:06:52 Running 'wrapup' stage
2011-08-26 10:06:52 Including wrapup/default/50_post_recovery_script.sh
2011-08-26 10:06:52 Including wrapup/default/98_good_bye.sh
2011-08-26 10:06:52 Including wrapup/default/99_copy_logfile.sh
2011-08-26 10:06:52 Finished running 'wrapup' stage in 0 seconds
2011-08-26 10:06:53 Finished running recover workflow
2011-08-26 10:06:53 Running exit tasks.
2011-08-26 10:06:53 Finished in 80 seconds.
2011-08-26 10:06:53 Removing build area /tmp/rear.N13Tf5Xx901Ok4V
2011-08-26 10:06:53 End of program reached

srvxen02:/installxen/volta # xm start ampere
Error: Boot loader didn't return any data!
Usage: xm start <DomainName>

Start a Xend managed domain
  -p, --paused                   Do not unpause domain after starting it    
  -c, --console_autoconnect      Connect to the console after the domain    
                                 is created
  --vncviewer                    Connect to display via VNC after the       
                                 domain is created
  --vncviewer-autopass           Pass VNC password to viewer via stdin and  
                                 -autopass

Thanks & Bye

Vegisto


More information about the rear-users mailing list