[Rear-users] Recover using Centos 6

Frank Slotta f_slotta at gmx.de
Mon Sep 19 14:19:35 CEST 2011


Hi Jeroen,

[test at slotest ~]$ rpm -qa | grep lvm
lvm2-2.02.72-8.el6_0.4.x86_64
lvm2-libs-2.02.72-8.el6_0.4.x86_64

Thie is the logfile using --norestorefile:

-------------------------------------------
2011-09-19 13:23:48 Relax and Recover 0.0.710 / 2011-06-27 09:07:15 +0200
2011-09-19 13:23:48 Command line options: /bin/rear recover
2011-09-19 13:23:48 Including /etc/rear/os.conf
2011-09-19 13:23:48 Including conf/Linux-i386.conf
2011-09-19 13:23:48 Including conf/GNU/Linux.conf
2011-09-19 13:23:48 Including /etc/rear/local.conf
2011-09-19 13:23:48 Using build area '/tmp/rear.Z0CcS8X81Lr1xVl'
mkdir: created directory `/tmp/rear.Z0CcS8X81Lr1xVl/rootfs'
mkdir: created directory `/tmp/rear.Z0CcS8X81Lr1xVl/tmp'
2011-09-19 13:23:48 Running recover workflow
2011-09-19 13:23:48 Running 'setup' stage
2011-09-19 13:23:48 Including setup/default/01_pre_recovery_script.sh
2011-09-19 13:23:48 Including setup/GNU/Linux/80_setup_hp_raid.sh
2011-09-19 13:23:48 Finished running 'setup' stage in 0 seconds
2011-09-19 13:23:48 Running 'verify' stage
2011-09-19 13:23:48 Including verify/default/02_cciss_scsi_engage.sh
2011-09-19 13:23:48 Including verify/default/02_translate_url.sh
2011-09-19 13:23:48 Including verify/EXTERNAL/default/05_check_external.sh
2011-09-19 13:23:48 Skipping external command check (PING is disabled)
2011-09-19 13:23:48 Including verify/GNU/Linux/05_sane_recovery_check.sh
2011-09-19 13:23:48 Including verify/GNU/Linux/10_describe_physical_devices.sh
2011-09-19 13:23:48 Including verify/Linux-i386/11_describe_device_properties.sh
2011-09-19 13:23:48 Including verify/GNU/Linux/12_compare_physical_devices.sh
2011-09-19 13:23:48 Including verify/GNU/Linux/21_migrate_recovery_configuration.sh
2011-09-19 13:23:48 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 13:23:48 Including verify/GNU/Linux/26_recovery_storage_drivers.sh
find: `/tmp/rear.Z0CcS8X81Lr1xVl/tmp/dev': No such file or directory
8d7
< sd
2011-09-19 13:23:48 NOTICE: Will do driver migration
2011-09-19 13:23:48 Finished running 'verify' stage in 0 seconds
2011-09-19 13:23:48 Running 'layout/prepare' stage
2011-09-19 13:23:48 Including layout/prepare/default/01_prepare_files.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/10_include_partition_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/11_include_lvm_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/12_include_raid_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/13_include_filesystem_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/14_include_swap_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/15_include_drbd_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/16_include_luks_code.sh
2011-09-19 13:23:48 Including layout/prepare/GNU/Linux/17_include_hpraid_code.sh
2011-09-19 13:23:48 Including layout/prepare/default/20_recreate_hpraid.sh
2011-09-19 13:23:48 Including layout/prepare/default/25_compare_disks.sh
2011-09-19 13:23:48 Comparing disks.
2011-09-19 13:23:48 Looking for sda...
2011-09-19 13:23:48 Device sda exists.
2011-09-19 13:23:48 Device sda has size 9663676416, 8589934592 expected
2011-09-19 13:23:48 Switching to manual disk layout configuration.
2011-09-19 13:23:48 Including layout/prepare/default/30_map_disks.sh
2011-09-19 13:23:49 Disk sda does not exist in the target system. Please choose the appropriate replacement.
2011-09-19 13:23:53 Including layout/prepare/default/31_remove_exclusions.sh
2011-09-19 13:23:53 Including layout/prepare/default/32_apply_mappings.sh
2011-09-19 13:23:53 This is the disk mapping table:
2011-09-19 13:23:53 Including layout/prepare/default/40_autoresize_disks.sh
2011-09-19 13:23:53 Total resize of 1073741824B
2011-09-19 13:23:53 Searching for resizeable partitions on disk /dev/sda (9663676416)B
2011-09-19 13:23:53 Will resize partition /dev/sda2.
2011-09-19 13:23:53 Resized partition /dev/sda2 from 8064598016B to 9138339840B.
2011-09-19 13:23:53 Including layout/prepare/default/50_confirm_layout.sh
2011-09-19 13:23:53 Please confirm that '/var/lib/rear/layout/disklayout.conf' is as you expect.
2011-09-19 13:24:02 User selected: 5) Continue recovery
2011-09-19 13:24:02 Including layout/prepare/default/51_list_dependencies.sh
2011-09-19 13:24:02 Including layout/prepare/default/52_exclude_components.sh
2011-09-19 13:24:02 Including layout/prepare/default/54_generate_device_code.sh
2011-09-19 13:24:02 Marking /dev/sda as done.
2011-09-19 13:24:02 Marking /dev/sda1 as done.
2011-09-19 13:24:02 Marking /dev/sda2 as done.
2011-09-19 13:24:02 Marking pv:/dev/sda2 as done.
2011-09-19 13:24:02 Marking /dev/vg_slotest as done.
2011-09-19 13:24:02 Marking /dev/mapper/vg_slotest-lv_root as done.
2011-09-19 13:24:03 Marking /dev/mapper/vg_slotest-lv_swap as done.
2011-09-19 13:24:03 Marking fs:/ as done.
2011-09-19 13:24:03 Marking fs:/boot as done.
2011-09-19 13:24:03 Marking swap:/dev/mapper/vg_slotest-lv_swap as done.
2011-09-19 13:24:03 Including layout/prepare/default/55_finalize_script.sh
2011-09-19 13:24:03 Including layout/prepare/default/60_show_unprocessed.sh
2011-09-19 13:24:03 Including layout/prepare/default/61_exclude_from_restore.sh
2011-09-19 13:24:03 Finished running 'layout/prepare' stage in 15 seconds
2011-09-19 13:24:03 Running 'layout/recreate' stage
2011-09-19 13:24:03 Including layout/recreate/default/10_ask_confirmation.sh
2011-09-19 13:24:03 Please confirm that '/var/lib/rear/layout/diskrestore.sh' is as you expect.
2011-09-19 13:24:08 User selected: 5) Continue recovery
2011-09-19 13:24:08 Including layout/recreate/default/20_run_script.sh
2011-09-19 13:24:08 Start system layout restoration.
+++ create_component /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/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 13:24:08 Creating partitions for disk /dev/sda (msdos)'
2011-09-19 13:24:08 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.Z0CcS8X81Lr1xVl/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.Z0CcS8X81Lr1xVl/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.Z0CcS8X81Lr1xVl/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.Z0CcS8X81Lr1xVl/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.Z0CcS8X81Lr1xVl/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.Z0CcS8X81Lr1xVl/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 13:24:20 Creating LVM PV /dev/sda2'
2011-09-19 13:24:20 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 13:24:20 An error occured during layout recreation.
2011-09-19 13:25:26 User selected: 5) Continue restore script
2011-09-19 13:25:26 Start system layout restoration.
+++ create_component /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/disk--dev-sda ']'
+++ return 1
+++ LogPrint 'Skipping /dev/sda (disk) as it has already been created.'
+++ Log 'Skipping /dev/sda (disk) as it has already been created.'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:25:26 Skipping /dev/sda (disk) as it has already been created.'
2011-09-19 13:25:26 Skipping /dev/sda (disk) as it has already been created.
+++ Print 'Skipping /dev/sda (disk) as it has already been created.'
+++ test 1
+++ echo -e 'Skipping /dev/sda (disk) as it has already been created.'
+++ create_component /dev/sda1 part
+++ local device=/dev/sda1
+++ local type=part
+++ local touchfile=part--dev-sda1
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/part--dev-sda1 ']'
+++ return 1
+++ LogPrint 'Skipping /dev/sda1 (part) as it has already been created.'
+++ Log 'Skipping /dev/sda1 (part) as it has already been created.'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:25:26 Skipping /dev/sda1 (part) as it has already been created.'
2011-09-19 13:25:26 Skipping /dev/sda1 (part) as it has already been created.
+++ Print 'Skipping /dev/sda1 (part) as it has already been created.'
+++ test 1
+++ echo -e 'Skipping /dev/sda1 (part) as it has already been created.'
+++ create_component /dev/sda2 part
+++ local device=/dev/sda2
+++ local type=part
+++ local touchfile=part--dev-sda2
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/part--dev-sda2 ']'
+++ return 1
+++ LogPrint 'Skipping /dev/sda2 (part) as it has already been created.'
+++ Log 'Skipping /dev/sda2 (part) as it has already been created.'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:25:26 Skipping /dev/sda2 (part) as it has already been created.'
2011-09-19 13:25:26 Skipping /dev/sda2 (part) as it has already been created.
+++ Print 'Skipping /dev/sda2 (part) as it has already been created.'
+++ test 1
+++ echo -e 'Skipping /dev/sda2 (part) as it has already been created.'
+++ create_component pv:/dev/sda2 lvmdev
+++ local device=pv:/dev/sda2
+++ local type=lvmdev
+++ local touchfile=lvmdev-pv:-dev-sda2
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/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 13:25:26 Creating LVM PV /dev/sda2'
2011-09-19 13:25:26 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 --norestorefile
/var/lib/rear/layout/diskrestore.sh: line 50: LVm: command not found
2011-09-19 13:25:26 An error occured during layout recreation.
2011-09-19 13:26:14 User selected: 5) Continue restore script
2011-09-19 13:26:14 Start system layout restoration.
+++ create_component /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/disk--dev-sda ']'
+++ return 1
+++ LogPrint 'Skipping /dev/sda (disk) as it has already been created.'
+++ Log 'Skipping /dev/sda (disk) as it has already been created.'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:26:14 Skipping /dev/sda (disk) as it has already been created.'
2011-09-19 13:26:14 Skipping /dev/sda (disk) as it has already been created.
+++ Print 'Skipping /dev/sda (disk) as it has already been created.'
+++ test 1
+++ echo -e 'Skipping /dev/sda (disk) as it has already been created.'
+++ create_component /dev/sda1 part
+++ local device=/dev/sda1
+++ local type=part
+++ local touchfile=part--dev-sda1
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/part--dev-sda1 ']'
+++ return 1
+++ LogPrint 'Skipping /dev/sda1 (part) as it has already been created.'
+++ Log 'Skipping /dev/sda1 (part) as it has already been created.'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:26:14 Skipping /dev/sda1 (part) as it has already been created.'
2011-09-19 13:26:14 Skipping /dev/sda1 (part) as it has already been created.
+++ Print 'Skipping /dev/sda1 (part) as it has already been created.'
+++ test 1
+++ echo -e 'Skipping /dev/sda1 (part) as it has already been created.'
+++ create_component /dev/sda2 part
+++ local device=/dev/sda2
+++ local type=part
+++ local touchfile=part--dev-sda2
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/part--dev-sda2 ']'
+++ return 1
+++ LogPrint 'Skipping /dev/sda2 (part) as it has already been created.'
+++ Log 'Skipping /dev/sda2 (part) as it has already been created.'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:26:14 Skipping /dev/sda2 (part) as it has already been created.'
2011-09-19 13:26:14 Skipping /dev/sda2 (part) as it has already been created.
+++ Print 'Skipping /dev/sda2 (part) as it has already been created.'
+++ test 1
+++ echo -e 'Skipping /dev/sda2 (part) as it has already been created.'
+++ create_component pv:/dev/sda2 lvmdev
+++ local device=pv:/dev/sda2
+++ local type=lvmdev
+++ local touchfile=lvmdev-pv:-dev-sda2
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/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 13:26:14 Creating LVM PV /dev/sda2'
2011-09-19 13:26: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 --norestorefile
  WARNING: Forcing physical volume creation on /dev/sda2 of volume group "vg_slotest"
    Set up physical volume for "/dev/sda2" with 17848320 available sectors
  Physical volume "/dev/sda2" successfully created
+++ component_created pv:/dev/sda2 lvmdev
+++ local device=pv:/dev/sda2
+++ local type=lvmdev
+++ local touchfile=lvmdev-pv:-dev-sda2
+++ touch /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/lvmdev-pv:-dev-sda2
+++ create_component /dev/vg_slotest lvmgrp
+++ local device=/dev/vg_slotest
+++ local type=lvmgrp
+++ local touchfile=lvmgrp--dev-vg_slotest
+++ '[' -e /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/lvmgrp--dev-vg_slotest ']'
+++ return 0
+++ LogPrint 'Creating LVM VG vg_slotest'
+++ Log 'Creating LVM VG vg_slotest'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2011-09-19 13:26:14 Creating LVM VG vg_slotest'
2011-09-19 13:26:14 Creating LVM VG vg_slotest
+++ Print 'Creating LVM VG vg_slotest'
+++ test 1
+++ echo -e 'Creating LVM VG vg_slotest'
+++ '[' -e /dev/vg_slotest ']'
+++ rm -rf /dev/vg_slotest
+++ lvm vgcreate --physicalextentsize 4096k vg_slotest /dev/sda2
  Volume group "vg_slotest" successfully created
+++ lvm vgchange --available y vg_slotest
  0 logical volume(s) in volume group "vg_slotest" now active
+++ component_created /dev/vg_slotest lvmgrp
+++ local device=/dev/vg_slotest
+++ local type=lvmgrp
+++ local touchfile=lvmgrp--dev-vg_slotest
+++ touch /tmp/rear.Z0CcS8X81Lr1xVl/tmp/touch/lvmgrp--dev-vg_slotest
+++ create_component /dev/mapper/vg_slotest-lv_root lvmvol
+++ local device=/dev/mapper/vg_slotest-lv_roo




More information about the rear-users mailing list