[Rear-users] Restore problem on REHL5.1 VBox vm.

danny.petterson at accenture.com danny.petterson at accenture.com
Mon Jan 9 12:11:04 CET 2012


Hi!

Have you tried putting this one in  local.conf:

USE_LAYOUT=y



Greetings from

Danny Petterson


"Shadows and Dust"

From: shabahang elmian [mailto:eshabahang at yahoo.com]
Sent: 9. januar 2012 11:52
To: rear-users at lists.sourceforge.net
Subject: [Rear-users] Restore problem on REHL5.1 VBox vm.

Hello
I am testing the ReaR 1.12.0 / 2011-11-22 , Taking backup from REHL5.1 on VBox VM and restoring to a another VBox VM .
on restore there is an error on layout restoration:

/dev/VolGroup00/LogVol01 and /dev/root are available but there are some errors for them.

the log is as follow:

2012-01-09 12:26:44 Relax and Recover 1.12.0 / 2011-11-22 10:21:35 +0100
2012-01-09 12:26:44 Command line options: /bin/rear recover
2012-01-09 12:26:44 Including /etc/rear/os.conf
2012-01-09 12:26:44 Including conf/Linux-i386.conf
2012-01-09 12:26:44 Including conf/GNU/Linux.conf
2012-01-09 12:26:44 Including /etc/rear/local.conf
2012-01-09 12:26:44 Including /etc/rear/rescue.conf
2012-01-09 12:26:44 Using build area '/tmp/rear.JiPWZrMSZsM1222'
mkdir: created directory `/tmp/rear.JiPWZrMSZsM1222/rootfs'
mkdir: created directory `/tmp/rear.JiPWZrMSZsM1222/tmp'
2012-01-09 12:26:44 Running recover workflow
2012-01-09 12:26:44 Running 'setup' stage
2012-01-09 12:26:44 Including setup/default/01_pre_recovery_script.sh
2012-01-09 12:26:44 Including setup/GNU/Linux/80_setup_hp_raid.sh
2012-01-09 12:26:44 Finished running 'setup' stage in 0 seconds
2012-01-09 12:26:44 Running 'verify' stage
2012-01-09 12:26:44 Including verify/default/02_cciss_scsi_engage.sh
2012-01-09 12:26:44 Including verify/default/02_translate_url.sh
2012-01-09 12:26:44 Using NETFS_URL is deprecated. Use BACKUP_URL instead.
2012-01-09 12:26:44 Including verify/NETFS/default/05_check_NETFS_requirements.sh
2012-01-09 12:26:44 Skipping ping test
2012-01-09 12:26:44 Including verify/GNU/Linux/05_sane_recovery_check.sh
2012-01-09 12:26:44 Including verify/NETFS/default/08_start_required_daemons.sh
2012-01-09 12:26:44 Including verify/NETFS/default/09_set_readonly_options.sh
2012-01-09 12:26:44 Including verify/GNU/Linux/10_describe_physical_devices.sh
2012-01-09 12:26:44 Including verify/NETFS/default/10_mount_NETFS_path.sh
mkdir: created directory `/tmp/rear.JiPWZrMSZsM1222/outputfs'
2012-01-09 12:26:44 Mounting with 'mount -v -t nfs -o ro shabahang-PC:/home/shabahang/nfs /tmp/rear.JiPWZrMSZsM1222/outputfs'
mount: trying 172.16.16.210 prog 100003 vers 3 prot tcp port 2049
mount: trying 172.16.16.210 prog 100005 vers 3 prot udp port 37818
2012-01-09 12:28:27 Including verify/Linux-i386/11_describe_device_properties.sh
2012-01-09 12:28:27 Including verify/GNU/Linux/12_compare_physical_devices.sh
2012-01-09 12:28:27 Including verify/GNU/Linux/21_migrate_recovery_configuration.sh
2012-01-09 12:28:27 Including verify/GNU/Linux/23_storage_and_network_modules.sh
find: /lib/modules/2.6.18-53.el5/extra: No such file or directory
find: /lib/modules/2.6.18-53.el5/weak-updates: No such file or directory
2012-01-09 12:28:27 Including verify/GNU/Linux/26_recovery_storage_drivers.sh
find: /tmp/rear.JiPWZrMSZsM1222/tmp/dev: No such file or directory
2012-01-09 12:28:27 Including verify/NETFS/default/55_check_backup_archive.sh
2012-01-09 12:28:27 Calculating backup archive size
2012-01-09 12:28:27 Backup archive size is 746M (compressed)
2012-01-09 12:28:27 Finished running 'verify' stage in 103 seconds
2012-01-09 12:28:27 Running 'layout/prepare' stage
2012-01-09 12:28:27 Including layout/prepare/default/01_prepare_files.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/10_include_partition_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/11_include_lvm_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/12_include_raid_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/13_include_filesystem_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/14_include_swap_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/15_include_drbd_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/16_include_luks_code.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/17_include_hpraid_code.sh
2012-01-09 12:28:27 Including layout/prepare/default/20_recreate_hpraid.sh
2012-01-09 12:28:27 Including layout/prepare/GNU/Linux/21_load_multipath.sh
2012-01-09 12:28:27 Including layout/prepare/default/25_compare_disks.sh
2012-01-09 12:28:27 Comparing disks.
2012-01-09 12:28:27 Looking for sda...
2012-01-09 12:28:27 Device sda exists.
2012-01-09 12:28:27 Size of device sda matches.
2012-01-09 12:28:27 Disk configuration is identical, proceeding with restore.
2012-01-09 12:28:27 Including layout/prepare/default/30_map_disks.sh
2012-01-09 12:28:27 Including layout/prepare/default/31_remove_exclusions.sh
2012-01-09 12:28:27 Including layout/prepare/default/32_apply_mappings.sh
2012-01-09 12:28:27 Including layout/prepare/default/40_autoresize_disks.sh
2012-01-09 12:28:27 Including layout/prepare/default/50_confirm_layout.sh
2012-01-09 12:28:27 Including layout/prepare/default/51_list_dependencies.sh
2012-01-09 12:28:27 Including layout/prepare/default/52_exclude_components.sh
2012-01-09 12:28:27 Including layout/prepare/default/54_generate_device_code.sh
2012-01-09 12:28:27 Marking /dev/sda as done.
2012-01-09 12:28:27 Marking /dev/sda1 as done.
2012-01-09 12:28:27 Marking /dev/sda2 as done.
2012-01-09 12:28:27 Marking pv:/dev/sda2 as done.
2012-01-09 12:28:27 Marking /dev/VolGroup00 as done.
2012-01-09 12:28:27 Marking /dev/mapper/VolGroup00-LogVol00 as done.
2012-01-09 12:28:27 Marking /dev/mapper/VolGroup00-LogVol01 as done.
2012-01-09 12:28:27 Marking fs:/ as done.
2012-01-09 12:28:27 Marking fs:/boot as done.
2012-01-09 12:28:27 Marking swap:/dev/mapper/VolGroup00-LogVol01 as done.
2012-01-09 12:28:27 Including layout/prepare/default/55_finalize_script.sh
2012-01-09 12:28:27 Including layout/prepare/default/60_show_unprocessed.sh
2012-01-09 12:28:27 Including layout/prepare/default/61_exclude_from_restore.sh
2012-01-09 12:28:27 Finished running 'layout/prepare' stage in 0 seconds
2012-01-09 12:28:27 Running 'layout/recreate' stage
2012-01-09 12:28:27 Including layout/recreate/default/10_ask_confirmation.sh
2012-01-09 12:28:27 Including layout/recreate/default/20_run_script.sh
2012-01-09 12:28:27 Start system layout restoration.
  /dev/root: open failed: No such device or address
  /dev/VolGroup00/LogVol01: open failed: No such device or address
+++ create_component /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ '[' -e /tmp/rear.JiPWZrMSZsM1222/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 '2012-01-09 12:28:27 Creating partitions for disk /dev/sda (msdos)'
2012-01-09 12:28:27 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
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue?
2012-01-09 12:28:28 An error occured during layout recreation.
2012-01-09 13:08:45 User selected: 6) Abort Rear
2012-01-09 13:08:45 Error detected during restore.
2012-01-09 13:08:45 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
2012-01-09 13:08:45 ERROR: There was an error restoring the system layout. See /tmp/rear-RHEL51.log for details.
2012-01-09 13:08:45 Running exit tasks.
shabahang-PC:/home/shabahang/nfs umounted
rmdir: removing directory, /tmp/rear.JiPWZrMSZsM1222/outputfs
2012-01-09 13:08:45 Finished in 2521 seconds
2012-01-09 13:08:45 Removing build area /tmp/rear.JiPWZrMSZsM1222
rmdir: removing directory, /tmp/rear.JiPWZrMSZsM1222
2012-01-09 13:08:45 End of program reached


Also there are some config files contents :

root at shabahang-PC:/home/shabahang/nfs# cat local.conf
# sample local configuration

# Create Rear rescue media as ISO image
OUTPUT=ISO

# optionally define (non-default) backup software, e.g. TSM, NBU, DP, BACULA
BACKUP=NETFS
NETFS_URL=nfs://shabahang-PC/home/shabahang/nfs

# the following is required on older VMware VMs
#MODULES_LOAD=( vmxnet )

# to see boot messages on the serial console (uncomment next line)
# KERNEL_CMDLINE="console=tty0 console=ttyS1"
# line below was automatically added by 21_include_dhclient.sh
#DHCLIENT_BIN=dhclient
# line below was automatically added by 21_include_dhclient.sh
#DHCLIENT6_BIN=dhcp6c
root at shabahang-PC:/home/shabahang/nfs#
root at shabahang-PC:/home/shabahang/nfs# cat os.conf
#
# WARNING ! This information was added automatically by the mkbackup workflow !!!
ARCH='Linux-i386'
OS='GNU/Linux'
OS_VERSION='5.1'
OS_VENDOR='RedHatEnterpriseServer'
OS_VENDOR_VERSION='RedHatEnterpriseServer/5.1'
OS_VENDOR_ARCH='RedHatEnterpriseServer/i386'
root at shabahang-PC:/home/shabahang/nfs# cat rescue.conf
NETFS_KEEP_OLD_BACKUP_COPY=""
NETFS_PREFIX="RHEL51"
NETFS_URL="nfs://shabahang-PC/home/shabahang/nfs"
root at shabahang-PC:/home/shabahang/nfs#


Please help me to find the problem.

Best regards,
Shabahang



________________________________
Subject to local law, communications with Accenture and its affiliates including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pikachu.3ti.be/pipermail/rear-users/attachments/20120109/ed304f4b/attachment.html 


More information about the rear-users mailing list