[Rear-users] Recover using Centos 6

Frank Slotta f_slotta at gmx.de
Mon Sep 19 11:57:27 CEST 2011


Hi,

using the latest development snapshot I was able to boot the rescue iso, thanks for the quick response.

I tried to recover on a slightly bigger partition and ran into the following error:
-----------------------------------------
2011-09-19 11:30:34 Relax and Recover 0.0.710 / 2011-06-27 09:07:15 +0200
2011-09-19 11:30:34 Command line options: /bin/rear -v recover
2011-09-19 11:30:34 Including /etc/rear/os.conf
2011-09-19 11:30:34 Including conf/Linux-i386.conf
2011-09-19 11:30:34 Including conf/GNU/Linux.conf
2011-09-19 11:30:34 Including /etc/rear/local.conf
2011-09-19 11:30:34 Using build area '/tmp/rear.ofV0lVzwvY6sZXZ'
mkdir: created directory `/tmp/rear.ofV0lVzwvY6sZXZ/rootfs'
mkdir: created directory `/tmp/rear.ofV0lVzwvY6sZXZ/tmp'
2011-09-19 11:30:34 Running recover workflow
2011-09-19 11:30:34 Running 'setup' stage
2011-09-19 11:30:34 Including setup/default/01_pre_recovery_script.sh
2011-09-19 11:30:34 Including setup/GNU/Linux/80_setup_hp_raid.sh
2011-09-19 11:30:34 Finished running 'setup' stage in 0 seconds
2011-09-19 11:30:34 Running 'verify' stage
2011-09-19 11:30:34 Including verify/default/02_cciss_scsi_engage.sh
2011-09-19 11:30:34 Including verify/default/02_translate_url.sh
2011-09-19 11:30:34 Including verify/EXTERNAL/default/05_check_external.sh
2011-09-19 11:30:34 Skipping external command check (PING is disabled)
2011-09-19 11:30:34 Including verify/GNU/Linux/05_sane_recovery_check.sh
2011-09-19 11:30:34 Including verify/GNU/Linux/10_describe_physical_devices.sh
2011-09-19 11:30:34 Including verify/Linux-i386/11_describe_device_properties.sh
2011-09-19 11:30:34 Including verify/GNU/Linux/12_compare_physical_devices.sh
2011-09-19 11:30:34 Including verify/GNU/Linux/21_migrate_recovery_configuration.sh
2011-09-19 11:30:34 Including verify/GNU/Linux/23_storage_and_network_modules.sh
find: `/lib/modules/2.6.32-71.29.1.el6.x86_64/extra': No such file or directory
find: `/lib/modules/2.6.32-71.29.1.el6.x86_64/weak-updates': No such file or directory
2011-09-19 11:30:35 Including verify/GNU/Linux/26_recovery_storage_drivers.sh
find: `/tmp/rear.ofV0lVzwvY6sZXZ/tmp/dev': No such file or directory
8d7
< sd
2011-09-19 11:30:35 NOTICE: Will do driver migration
2011-09-19 11:30:35 Finished running 'verify' stage in 1 seconds
2011-09-19 11:30:35 Running 'layout/prepare' stage
2011-09-19 11:30:35 Including layout/prepare/default/01_prepare_files.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/10_include_partition_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/11_include_lvm_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/12_include_raid_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/13_include_filesystem_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/14_include_swap_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/15_include_drbd_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/16_include_luks_code.sh
2011-09-19 11:30:35 Including layout/prepare/GNU/Linux/17_include_hpraid_code.sh
2011-09-19 11:30:35 Including layout/prepare/default/20_recreate_hpraid.sh
2011-09-19 11:30:35 Including layout/prepare/default/25_compare_disks.sh
2011-09-19 11:30:35 Comparing disks.
2011-09-19 11:30:35 Looking for sda...
2011-09-19 11:30:35 Device sda exists.
2011-09-19 11:30:35 Device sda has size 9663676416, 8589934592 expected
2011-09-19 11:30:35 Switching to manual disk layout configuration.
2011-09-19 11:30:35 Including layout/prepare/default/30_map_disks.sh
2011-09-19 11:30:36 Disk sda does not exist in the target system. Please choose the appropriate replacement.
2011-09-19 11:30:39 Including layout/prepare/default/31_remove_exclusions.sh
2011-09-19 11:30:39 Including layout/prepare/default/32_apply_mappings.sh
2011-09-19 11:30:39 This is the disk mapping table:
2011-09-19 11:30:39 Including layout/prepare/default/40_autoresize_disks.sh
2011-09-19 11:30:39 Total resize of 1073741824B
2011-09-19 11:30:39 Searching for resizeable partitions on disk /dev/sda (9663676416)B
2011-09-19 11:30:39 Will resize partition /dev/sda2.
2011-09-19 11:30:39 Resized partition /dev/sda2 from 8064598016B to 9138339840B.
2011-09-19 11:30:39 Including layout/prepare/default/50_confirm_layout.sh
2011-09-19 11:30:39 Please confirm that '/var/lib/rear/layout/disklayout.conf' is as you expect.
2011-09-19 11:30:49 User selected: 5) Continue recovery
2011-09-19 11:30:49 Including layout/prepare/default/51_list_dependencies.sh
2011-09-19 11:30:49 Including layout/prepare/default/52_exclude_components.sh
2011-09-19 11:30:49 Including layout/prepare/default/54_generate_device_code.sh
2011-09-19 11:30:49 Marking /dev/sda as done.
2011-09-19 11:30:49 Marking /dev/sda1 as done.
2011-09-19 11:30:50 Marking /dev/sda2 as done.
2011-09-19 11:30:50 Marking pv:/dev/sda2 as done.
2011-09-19 11:30:50 Marking /dev/vg_slotest as done.
2011-09-19 11:30:50 Marking /dev/mapper/vg_slotest-lv_root as done.
2011-09-19 11:30:50 Marking /dev/mapper/vg_slotest-lv_swap as done.
2011-09-19 11:30:50 Marking fs:/ as done.
2011-09-19 11:30:50 Marking fs:/boot as done.
2011-09-19 11:30:50 Marking swap:/dev/mapper/vg_slotest-lv_swap as done.
2011-09-19 11:30:50 Including layout/prepare/default/55_finalize_script.sh
2011-09-19 11:30:50 Including layout/prepare/default/60_show_unprocessed.sh
2011-09-19 11:30:50 Including layout/prepare/default/61_exclude_from_restore.sh
2011-09-19 11:30:50 Finished running 'layout/prepare' stage in 15 seconds
2011-09-19 11:30:50 Running 'layout/recreate' stage
2011-09-19 11:30:50 Including layout/recreate/default/10_ask_confirmation.sh
2011-09-19 11:30:50 Please confirm that '/var/lib/rear/layout/diskrestore.sh' is as you expect.
2011-09-19 11:31:03 User selected: 5) Continue recovery
2011-09-19 11:31:03 Including layout/recreate/default/20_run_script.sh
2011-09-19 11:31:03 Start system layout restoration.
+++ create_component /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ '[' -e /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/disk--dev-sda ']'
+++ return 0
+++ LogPrint 'Creating partitions for disk /dev/sda (msdos)'
+++ Log 'Creating partitions for disk /dev/sda (msdos)'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 11:31:03 Creating partitions for disk /dev/sda (msdos)'
2011-09-19 11:31:03 Creating partitions for disk /dev/sda (msdos)
+++ Print 'Creating partitions for disk /dev/sda (msdos)'
+++ test 1
+++ echo -e 'Creating partitions for disk /dev/sda (msdos)'
+++ parted -s /dev/sda mklabel msdos
+++ parted -s /dev/sda mkpart primary 32768B 524320767B
Warning: The resulting partition is not properly aligned for best performance.
+++ parted -s /dev/sda set 1 boot on
+++ parted -s /dev/sda mkpart primary 524324864B 9662664703B
Warning: The resulting partition is not properly aligned for best performance.
+++ parted -s /dev/sda set 2 lvm on
+++ sleep 10
+++ my_udevtrigger
+++ has_binary udevadm
+++ for bin in '$@'
+++ type udevadm
+++ return 0
+++ udevadm trigger
+++ my_udevsettle
+++ has_binary udevadm
+++ for bin in '$@'
+++ type udevadm
+++ return 0
+++ udevadm settle
+++ component_created /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ touch /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/disk--dev-sda
+++ create_component /dev/sda1 part
+++ local device=/dev/sda1
+++ local type=part
+++ local touchfile=part--dev-sda1
+++ '[' -e /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/part--dev-sda1 ']'
+++ return 0
+++ component_created /dev/sda1 part
+++ local device=/dev/sda1
+++ local type=part
+++ local touchfile=part--dev-sda1
+++ touch /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/part--dev-sda1
+++ create_component /dev/sda2 part
+++ local device=/dev/sda2
+++ local type=part
+++ local touchfile=part--dev-sda2
+++ '[' -e /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/part--dev-sda2 ']'
+++ return 0
+++ component_created /dev/sda2 part
+++ local device=/dev/sda2
+++ local type=part
+++ local touchfile=part--dev-sda2
+++ touch /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/part--dev-sda2
+++ create_component pv:/dev/sda2 lvmdev
+++ local device=pv:/dev/sda2
+++ local type=lvmdev
+++ local touchfile=lvmdev-pv:-dev-sda2
+++ '[' -e /tmp/rear.ofV0lVzwvY6sZXZ/tmp/touch/lvmdev-pv:-dev-sda2 ']'
+++ return 0
+++ LogPrint 'Creating LVM PV /dev/sda2'
+++ Log 'Creating LVM PV /dev/sda2'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 11:31:14 Creating LVM PV /dev/sda2'
2011-09-19 11:31:14 Creating LVM PV /dev/sda2
+++ Print 'Creating LVM PV /dev/sda2'
+++ test 1
+++ echo -e 'Creating LVM PV /dev/sda2'
+++ lvm pvcreate -ff --yes -v --uuid vB5CGn-pYp2-NLOL-fDeV-MEQT-vaZK-tsLlpL /dev/sda2
  --restorefile is required with --uuid
  Run `pvcreate --help' for more information.
2011-09-19 11:31:15 An error occured during layout recreation.
2011-09-19 11:32:17 User selected: 6) Abort Rear
2011-09-19 11:32:17 Error detected during restore.
2011-09-19 11:32:17 Restoring backup of /var/lib/rear/layout/disklayout.conf
Trace: 63 source /usr/share/rear/layout/recreate/default/20_run_script.sh
Trace: 40 Source /usr/share/rear/lib/framework-functions.sh
Trace: 79 SourceStage /usr/share/rear/lib/framework-functions.sh
Trace: 31 WORKFLOW_recover /usr/share/rear/lib/recover-workflow.sh
Trace: 242 main /bin/rear
2011-09-19 11:32:17 ERROR: There was an error restoring the system layout. See /tmp/rear-slotest.log for details.
2011-09-19 11:32:17 Running exit tasks.
2011-09-19 11:32:17 Finished in 103 seconds
2011-09-19 11:32:17 Removing build area /tmp/rear.ofV0lVzwvY6sZXZ
rmdir: removing directory, `/tmp/rear.ofV0lVzwvY6sZXZ'
2011-09-19 11:32:17 End of program reached
----------------------------------------------------------------

The reboot command does not work, I read something about it in the documentation. The following statements worked here:

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

Thanks for your support,

Frank

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de




More information about the rear-users mailing list