#2412 Issue closed: Rear backup failed

Labels: support / question, fixed / solved / done

db2nkyi opened issue at 2020-05-29 01:06:

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • ReaR version ("/usr/sbin/rear -V"):
    Relax-and-Recover 1.16 / Git
  • OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"):
    OS_VENDOR=SUSE_LINUX
    OS_VERSION=11
  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
OUTPUT=ISO
BACKUP=NETFS
BACKUP_OPTIONS="nfsvers=3,nolock"
BACKUP_URL=nfs://10.10.xx.xx/OSbackup
NETFS_KEEP_OLD_BACKUP_COPY=yes
BACKUP_PROG_INCLUDE=( '/home/*' '/var/tmp/*' '/var/spool/*' '/var/opt/*' '/var/log/*' '/var/lib/*' '/usr/local/*' '/tmp/*' '/srv/*' '/boot/grub/*' '/opt/*' '/boot/* /boot/efi/*' )
EXCLUDE_RECREATE=( "${EXCLUDE_RECREATE[@]}" "fs:/usr/sap/trans" "fs:/apps/user" "fs:/apps/sapbo/frs" "fs:/sapcd" "fs:/appdata_upload" "fs:/apps_sapbo_frs_dev" "fs:/backup")
SSH_ROOT_PASSWORD="hanarear"
KERNEL_CMDLINE="biosdevname=1"
export INFOMGR_BYPASS_NONSA=1
#EFIBOOT=" "
USE_CFG2HTML="no"

when i execute rearbackup , there is

2020-05-28 16:53:12 ERROR: Cannot find a proper UEFI_BOOTLOADER (/boot/efi/EFI/SuSE/). 
Please define it in /etc/rear/local.conf (e.g. UEFI_BOOTLOADER=/boot/efi/EFI/fedora/grubx64.efi)

in log file.
but Rear backup works well on other servers with the same settings and enviroment.
i want to skip the UEFI_BOOTLOADER , so i blanked EFIBOOT in conf file. but it not work.
i cant not update rear version. because my boss doesn't want that.
can you help me ?

db2nkyi commented at 2020-05-29 01:06:

2020-05-28 16:53:09 Relax-and-Recover 1.16 / Git
2020-05-28 16:53:09 Command line options: /usr/sbin/rear mkbackup
2020-05-28 16:53:09 Including /etc/rear/os.conf
2020-05-28 16:53:09 Including conf/Linux-i386.conf
2020-05-28 16:53:09 Including conf/GNU/Linux.conf
2020-05-28 16:53:09 Including conf/SUSE_LINUX.conf
2020-05-28 16:53:09 Including /etc/rear/local.conf
2020-05-28 16:53:09 Using build area '/tmp/rear.WOgnlMYdsNccz7z'
2020-05-28 16:53:09 Running mkbackup workflow
2020-05-28 16:53:09 Running 'prep' stage
2020-05-28 16:53:09 Including prep/default/00_remove_workflow_conf.sh
2020-05-28 16:53:09 Including prep/default/02_translate_url.sh
2020-05-28 16:53:09 Including prep/default/03_translate_tape.sh
2020-05-28 16:53:09 Including prep/default/04_check_output_scheme.sh
2020-05-28 16:53:09 Including prep/NETFS/default/05_check_NETFS_requirements.sh
2020-05-28 16:53:09 Skipping ping test
2020-05-28 16:53:09 Including prep/default/05_check_keep_old_output_copy_var.sh
2020-05-28 16:53:09 Including prep/NETFS/default/06_mount_NETFS_path.sh
2020-05-28 16:53:09 Mounting with 'mount  -t nfs -o nfsvers=3,nolock 10.10.33.41:/OSbackup /tmp/rear.WOgnlMYdsNccz7z/outputfs'
2020-05-28 16:53:09 Including prep/NETFS/default/07_set_backup_archive.sh
/usr/share/rear/prep/NETFS/default/07_set_backup_archive.sh: line 13: [: ==: unary operator expected
2020-05-28 16:53:09 Including prep/NETFS/default/09_check_encrypted_backup.sh
2020-05-28 16:53:09 Including prep/default/10_init_workflow_conf.sh
2020-05-28 16:53:09 Including prep/NETFS/default/15_save_rsync_version.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/20_include_agetty.sh
2020-05-28 16:53:09 Including prep/NETFS/GNU/Linux/20_selinux_in_use.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/21_include_dhclient.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/22_include_lvm_tools.sh
2020-05-28 16:53:09 Device mapper found enabled. Including LVM tools.
2020-05-28 16:53:09 Including prep/GNU/Linux/23_include_md_tools.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/24_include_multipath_tools.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/28_include_systemd.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/28_include_vmware_tools.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/29_include_drbd.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/30_check_backup_and_output_url.sh
2020-05-28 16:53:09 Including prep/ISO/default/30_check_iso_dir.sh
2020-05-28 16:53:09 Including prep/GNU/Linux/30_include_grub_tools.sh
2020-05-28 16:53:09 Including prep/default/31_include_uefi_tools.sh
2020-05-28 16:53:09 Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
2020-05-28 16:53:09 Including prep/ISO/default/32_check_cdrom_size.sh
2020-05-28 16:53:09 ISO Directory '/var/lib/rear/output' [/dev/mapper/rootvg-root] has 8125 MB free space
2020-05-28 16:53:09 Including prep/ISO/GNU/Linux/32_verify_mkisofs.sh
2020-05-28 16:53:09 Using '/usr/bin/mkisofs' to create ISO images
2020-05-28 16:53:09 Including prep/ISO/Linux-i386/33_find_isolinux.sh
2020-05-28 16:53:09 Including prep/ISO/GNU/Linux/34_add_isofs_module.sh
2020-05-28 16:53:09 Including prep/NETFS/default/40_automatic_exclude_recreate.sh
2020-05-28 16:53:09 Including prep/default/50_guess_bootloader.sh
2020-05-28 16:53:09 Including prep/NETFS/default/98_umount_NETFS_dir.sh
2020-05-28 16:53:09 Unmounting '/tmp/rear.WOgnlMYdsNccz7z/outputfs'
2020-05-28 16:53:09 Finished running 'prep' stage in 0 seconds
2020-05-28 16:53:09 Running 'layout/save' stage
2020-05-28 16:53:09 Including layout/save/GNU/Linux/10_create_layout_file.sh
2020-05-28 16:53:09 Creating disk layout
2020-05-28 16:53:09 Preparing layout directory.
2020-05-28 16:53:09 Removing old layout file.
2020-05-28 16:53:09 Including layout/save/GNU/Linux/15_save_diskbyid_mappings.sh
2020-05-28 16:53:09 Saved diskbyid_mappings
2020-05-28 16:53:09 Including layout/save/GNU/Linux/20_partition_layout.sh
2020-05-28 16:53:09 Saving disk partitions.
2020-05-28 16:53:09 Including layout/save/GNU/Linux/21_raid_layout.sh
2020-05-28 16:53:09 Including layout/save/GNU/Linux/22_lvm_layout.sh
2020-05-28 16:53:09 Saving LVM layout.
2020-05-28 16:53:09 Including layout/save/GNU/Linux/23_filesystem_layout.sh
2020-05-28 16:53:09 Saving Filesystem layout.
2020-05-28 16:53:10 Including layout/save/GNU/Linux/24_swaps_layout.sh
2020-05-28 16:53:10 Saving Swap information.
2020-05-28 16:53:10 Including layout/save/GNU/Linux/25_drbd_layout.sh
2020-05-28 16:53:10 Including layout/save/GNU/Linux/26_crypt_layout.sh
2020-05-28 16:53:10 Saving Encrypted volumes.
2020-05-28 16:53:10 Including layout/save/GNU/Linux/27_hpraid_layout.sh
2020-05-28 16:53:10 Saving HP SmartArray configuration.
2020-05-28 16:53:11 Including layout/save/GNU/Linux/28_multipath_layout.sh
2020-05-28 16:53:11 Including layout/save/default/30_list_dependencies.sh
2020-05-28 16:53:11 Including layout/save/default/31_include_exclude.sh
2020-05-28 16:53:11 Excluding component fs:/usr/sap/trans
2020-05-28 16:53:11 Excluding component fs:/apps/user
2020-05-28 16:53:11 Excluding component fs:/apps/sapbo/frs
2020-05-28 16:53:11 Excluding component fs:/sapcd
2020-05-28 16:53:11 Excluding component fs:/appdata_upload
2020-05-28 16:53:11 Excluding component fs:/apps_sapbo_frs_dev
2020-05-28 16:53:11 Excluding component fs:/backup
2020-05-28 16:53:11 Including layout/save/default/32_autoexclude.sh
2020-05-28 16:53:11 Including layout/save/default/33_remove_exclusions.sh
2020-05-28 16:53:11 Including layout/save/default/34_generate_mountpoint_device.sh
2020-05-28 16:53:11 Including layout/save/GNU/Linux/35_copy_drbdtab.sh
2020-05-28 16:53:11 Including layout/save/default/40_check_backup_special_files.sh
2020-05-28 16:53:11 Including layout/save/default/45_check_bootloader_files.sh
2020-05-28 16:53:11 Including layout/save/default/45_check_network_files.sh
2020-05-28 16:53:11 Including layout/save/GNU/Linux/50_extract_vgcfg.sh
2020-05-28 16:53:11 Including layout/save/GNU/Linux/51_current_disk_usage.sh
2020-05-28 16:53:11 Including layout/save/default/60_snapshot_files.sh
2020-05-28 16:53:11 Finished running 'layout/save' stage in 2 seconds
2020-05-28 16:53:11 Running 'rescue' stage
2020-05-28 16:53:11 Including rescue/default/01_merge_skeletons.sh
2020-05-28 16:53:11 Creating root filesystem layout
2020-05-28 16:53:11 Adding 'default'
2020-05-28 16:53:11 Including rescue/default/10_hostname.sh
2020-05-28 16:53:11 Including rescue/default/20_etc_issue.sh
2020-05-28 16:53:11 Including rescue/GNU/Linux/23_storage_and_network_modules.sh
find: `/lib/modules/3.0.101-63-default/kernel/drivers/xen': No such file or directory
find: `/lib/modules/3.0.101-63-default/extra': No such file or directory
find: `/lib/modules/3.0.101-63-default/weak-updates': No such file or directory
2020-05-28 16:53:11 Including rescue/GNU/Linux/24_kernel_modules.sh
2020-05-28 16:53:11 Including rescue/GNU/Linux/25_udev.sh
2020-05-28 16:53:11 Including rescue/GNU/Linux/26_collect_initrd_modules.sh
2020-05-28 16:53:11 Including rescue/GNU/Linux/26_storage_drivers.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/27_fc_transport_info.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/30_dns.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/31_network_devices.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/35_routing.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/39_check_usb_modules.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/40_use_serial_console.sh
2020-05-28 16:53:12 Modified kernel commandline to: 'biosdevname=1 console=ttyS0,9600 console=ttyS1,9600 console=tty0'
2020-05-28 16:53:12 Including rescue/GNU/Linux/41_use_xen_console.sh
2020-05-28 16:53:12 Including rescue/default/43_prepare_timesync.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/50_clone_keyboard_mappings.sh
2020-05-28 16:53:12 Including rescue/default/50_ssh.sh
2020-05-28 16:53:12 Including rescue/NETFS/default/60_store_NETFS_variables.sh
2020-05-28 16:53:12 Including rescue/GNU/Linux/60_unset_TMPDIR_in_rescue_conf.sh
2020-05-28 16:53:12 Including rescue/default/85_save_sysfs_uefi_vars.sh
2020-05-28 16:53:12 ERROR: Cannot find a proper UEFI_BOOTLOADER (/boot/efi/EFI/SuSE/). 
Please define it in /etc/rear/local.conf (e.g. UEFI_BOOTLOADER=/boot/efi/EFI/fedora/grubx64.efi)

=== Stack trace ===
Trace 0: /usr/sbin/rear:249 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:19 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4: /usr/share/rear/rescue/default/85_save_sysfs_uefi_vars.sh:49 source
Message: Cannot find a proper UEFI_BOOTLOADER (/boot/efi/EFI/SuSE/). 
Please define it in /etc/rear/local.conf (e.g. UEFI_BOOTLOADER=/boot/efi/EFI/fedora/grubx64.efi)
===================
2020-05-28 16:53:12 Running exit tasks.
2020-05-28 16:53:12 Finished in 3 seconds
2020-05-28 16:53:12 Removing build area /tmp/rear.WOgnlMYdsNccz7z
2020-05-28 16:53:12 End of program reached

jsmeix commented at 2020-05-29 06:28:

@db2nkyi
you did not fill out
https://raw.githubusercontent.com/rear/rear/master/.github/ISSUE_TEMPLATE.md
completely so I blindly guess that actually you do not use UEFI but BIOS
and the

2020-05-28 16:53:09 Including prep/default/31_include_uefi_tools.sh
2020-05-28 16:53:09 Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)

is a false positive.

If yes you can skip
usr/share/rear/prep/default/31_include_uefi_tools.sh
by adding a

return

at its beginning and because the error exit happens in
usr/share/rear/rescue/default/85_save_sysfs_uefi_vars.sh
that contains at its beginning

(( $USING_UEFI_BOOTLOADER )) || return

you could also skip that script by setting

USING_UEFI_BOOTLOADER=0

in your etc/rear/local.conf

In general ReaR 1.16 is rather old and we at ReaR upstream
do not support old released ReaR versions.

SUSE provides the RPM package "rear23a" for SLES that contains
ReaR version 2.4 plus some later ReaR upstream commits, see
"rear / rear116 / rear1172a / rear118a / rear23a" at
https://en.opensuse.org/SDB:Disaster_Recovery

If you actually use UEFI on SLES11 you need at least
the SUSE RPM package "rear118a" plus the "ebiso" package
to make a UEFI bootable ReaR recovery system ISO image.
You must boot your ReaR recovery system via UEFI
to be able to reinstall a UEFI bootloader on your recreated system.

If you need to use a newer ReaR version because you actually use
UEFI on SLES11 you should use SUSE RPM package "rear23a"
that SUSE provides as additional package via maintenance update
for SLE11-SP4.

Newer ReaR versions have much enhanced and overhauled
UEFI support with several new user config variables so that you
can specify and control how UEFI things behave in ReaR.
See the various user config variables that have EFI or UEFI
in their names or in their description comments
in our current ReaR GitHub master code default.conf file
https://raw.githubusercontent.com/rear/rear/master/usr/share/rear/conf/default.conf

In general see also
"SUSE support for Relax-and-Recover" at
https://en.opensuse.org/SDB:Disaster_Recovery
and in particular see also the other sections that are mentioned therein
or preferably read through that whole long article what belongs to ReaR.

db2nkyi commented at 2020-06-01 06:48:

Let me ask you one more question.
if I create ISO image backup using Rear backup, do I use only UEFI bootloader ?

I corrected the script as you advised, but there was an error as below.

2020-06-01 14:26:38 Relax-and-Recover 1.16 / Git
2020-06-01 14:26:38 Command line options: /usr/sbin/rear mkbackup
2020-06-01 14:26:38 Including /etc/rear/os.conf
2020-06-01 14:26:38 Including conf/Linux-i386.conf
2020-06-01 14:26:38 Including conf/GNU/Linux.conf
2020-06-01 14:26:38 Including conf/SUSE_LINUX.conf
2020-06-01 14:26:38 Including /etc/rear/local.conf
2020-06-01 14:26:38 Using build area '/tmp/rear.oSjt6AnCPeWvkBU'
2020-06-01 14:26:38 Running mkbackup workflow
2020-06-01 14:26:38 Running 'prep' stage
2020-06-01 14:26:38 Including prep/default/00_remove_workflow_conf.sh
2020-06-01 14:26:38 Including prep/default/02_translate_url.sh
2020-06-01 14:26:38 Including prep/default/03_translate_tape.sh
2020-06-01 14:26:38 Including prep/default/04_check_output_scheme.sh
2020-06-01 14:26:38 Including prep/NETFS/default/05_check_NETFS_requirements.sh
2020-06-01 14:26:38 Skipping ping test
2020-06-01 14:26:38 Including prep/default/05_check_keep_old_output_copy_var.sh
2020-06-01 14:26:38 Including prep/NETFS/default/06_mount_NETFS_path.sh
2020-06-01 14:26:38 Mounting with 'mount  -t nfs -o nfsvers=3,nolock 10.10.33.41:/OSbackup /tmp/rear.oSjt6AnCPeWvkBU/outputfs'
2020-06-01 14:26:38 Including prep/NETFS/default/07_set_backup_archive.sh
/usr/share/rear/prep/NETFS/default/07_set_backup_archive.sh: line 13: [: ==: unary operator expected
2020-06-01 14:26:38 Including prep/NETFS/default/09_check_encrypted_backup.sh
2020-06-01 14:26:38 Including prep/default/10_init_workflow_conf.sh
2020-06-01 14:26:38 Including prep/NETFS/default/15_save_rsync_version.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/20_include_agetty.sh
2020-06-01 14:26:38 Including prep/NETFS/GNU/Linux/20_selinux_in_use.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/21_include_dhclient.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/22_include_lvm_tools.sh
2020-06-01 14:26:38 Device mapper found enabled. Including LVM tools.
2020-06-01 14:26:38 Including prep/GNU/Linux/23_include_md_tools.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/24_include_multipath_tools.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/28_include_systemd.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/28_include_vmware_tools.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/29_include_drbd.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/30_check_backup_and_output_url.sh
2020-06-01 14:26:38 Including prep/ISO/default/30_check_iso_dir.sh
2020-06-01 14:26:38 Including prep/GNU/Linux/30_include_grub_tools.sh
2020-06-01 14:26:38 Including prep/default/31_include_uefi_tools.sh
2020-06-01 14:26:38 Including prep/ISO/default/32_check_cdrom_size.sh
2020-06-01 14:26:38 ISO Directory '/var/lib/rear/output' [/dev/mapper/rootvg-root] has 8118 MB free space
2020-06-01 14:26:38 Including prep/ISO/GNU/Linux/32_verify_mkisofs.sh
2020-06-01 14:26:38 Using '/usr/bin/mkisofs' to create ISO images
2020-06-01 14:26:38 Including prep/ISO/Linux-i386/33_find_isolinux.sh
2020-06-01 14:26:38 Including prep/ISO/GNU/Linux/34_add_isofs_module.sh
2020-06-01 14:26:38 Including prep/NETFS/default/40_automatic_exclude_recreate.sh
2020-06-01 14:26:38 Including prep/default/50_guess_bootloader.sh
2020-06-01 14:26:38 Including prep/NETFS/default/98_umount_NETFS_dir.sh
2020-06-01 14:26:38 Unmounting '/tmp/rear.oSjt6AnCPeWvkBU/outputfs'
2020-06-01 14:26:38 Finished running 'prep' stage in 0 seconds
2020-06-01 14:26:38 Running 'layout/save' stage
2020-06-01 14:26:38 Including layout/save/GNU/Linux/10_create_layout_file.sh
2020-06-01 14:26:38 Creating disk layout
2020-06-01 14:26:38 Preparing layout directory.
2020-06-01 14:26:38 Removing old layout file.
2020-06-01 14:26:38 Including layout/save/GNU/Linux/15_save_diskbyid_mappings.sh
2020-06-01 14:26:38 Saved diskbyid_mappings
2020-06-01 14:26:38 Including layout/save/GNU/Linux/20_partition_layout.sh
2020-06-01 14:26:38 Saving disk partitions.
2020-06-01 14:26:39 Including layout/save/GNU/Linux/21_raid_layout.sh
2020-06-01 14:26:39 Including layout/save/GNU/Linux/22_lvm_layout.sh
2020-06-01 14:26:39 Saving LVM layout.
2020-06-01 14:26:39 Including layout/save/GNU/Linux/23_filesystem_layout.sh
2020-06-01 14:26:39 Saving Filesystem layout.
2020-06-01 14:26:39 Including layout/save/GNU/Linux/24_swaps_layout.sh
2020-06-01 14:26:39 Saving Swap information.
2020-06-01 14:26:39 Including layout/save/GNU/Linux/25_drbd_layout.sh
2020-06-01 14:26:39 Including layout/save/GNU/Linux/26_crypt_layout.sh
2020-06-01 14:26:39 Saving Encrypted volumes.
2020-06-01 14:26:39 Including layout/save/GNU/Linux/27_hpraid_layout.sh
2020-06-01 14:26:39 Saving HP SmartArray configuration.
2020-06-01 14:26:40 Including layout/save/GNU/Linux/28_multipath_layout.sh
2020-06-01 14:26:40 Including layout/save/default/30_list_dependencies.sh
2020-06-01 14:26:41 Including layout/save/default/31_include_exclude.sh
2020-06-01 14:26:41 Excluding component fs:/usr/sap/trans
2020-06-01 14:26:41 Excluding component fs:/apps/user
2020-06-01 14:26:41 Excluding component fs:/apps/sapbo/frs
2020-06-01 14:26:41 Excluding component fs:/sapcd
2020-06-01 14:26:41 Excluding component fs:/appdata_upload
2020-06-01 14:26:41 Excluding component fs:/apps_sapbo_frs_dev
2020-06-01 14:26:41 Excluding component fs:/backup
2020-06-01 14:26:41 Including layout/save/default/32_autoexclude.sh
2020-06-01 14:26:41 Including layout/save/default/33_remove_exclusions.sh
2020-06-01 14:26:41 Including layout/save/default/34_generate_mountpoint_device.sh
2020-06-01 14:26:41 Including layout/save/GNU/Linux/35_copy_drbdtab.sh
2020-06-01 14:26:41 Including layout/save/default/40_check_backup_special_files.sh
2020-06-01 14:26:41 Including layout/save/default/45_check_bootloader_files.sh
2020-06-01 14:26:41 Including layout/save/default/45_check_network_files.sh
2020-06-01 14:26:41 Including layout/save/GNU/Linux/50_extract_vgcfg.sh
2020-06-01 14:26:41 Including layout/save/GNU/Linux/51_current_disk_usage.sh
2020-06-01 14:26:41 Including layout/save/default/60_snapshot_files.sh
2020-06-01 14:26:41 Finished running 'layout/save' stage in 3 seconds
2020-06-01 14:26:41 Running 'rescue' stage
2020-06-01 14:26:41 Including rescue/default/01_merge_skeletons.sh
2020-06-01 14:26:41 Creating root filesystem layout
2020-06-01 14:26:41 Adding 'default'
2020-06-01 14:26:41 Including rescue/default/10_hostname.sh
2020-06-01 14:26:41 Including rescue/default/20_etc_issue.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/23_storage_and_network_modules.sh
find: `/lib/modules/3.0.101-63-default/kernel/drivers/xen': No such file or directory
find: `/lib/modules/3.0.101-63-default/extra': No such file or directory
find: `/lib/modules/3.0.101-63-default/weak-updates': No such file or directory
2020-06-01 14:26:41 Including rescue/GNU/Linux/24_kernel_modules.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/25_udev.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/26_collect_initrd_modules.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/26_storage_drivers.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/27_fc_transport_info.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/30_dns.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/31_network_devices.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/35_routing.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/39_check_usb_modules.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/40_use_serial_console.sh
2020-06-01 14:26:41 Modified kernel commandline to: 'biosdevname=1 console=ttyS0,9600 console=ttyS1,9600 console=tty0'
2020-06-01 14:26:41 Including rescue/GNU/Linux/41_use_xen_console.sh
2020-06-01 14:26:41 Including rescue/default/43_prepare_timesync.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/50_clone_keyboard_mappings.sh
2020-06-01 14:26:41 Including rescue/default/50_ssh.sh
2020-06-01 14:26:41 Including rescue/NETFS/default/60_store_NETFS_variables.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/60_unset_TMPDIR_in_rescue_conf.sh
2020-06-01 14:26:41 Including rescue/default/85_save_sysfs_uefi_vars.sh
2020-06-01 14:26:41 Including rescue/default/90_clone_users_and_groups.sh
2020-06-01 14:26:41 Cloning users: daemon rpc usbmuxd usbmux vcsa nobody
2020-06-01 14:26:41 Cloning groups: group disk cdrom floppy tape audio video lp tty dialout kmem uucp ssh_keys tty usbmuxd usbmux fuse kvm 103 2 65533
2020-06-01 14:26:41 Including rescue/default/91_copy_logfile.sh
2020-06-01 14:26:41 Copying logfile /var/log/rear/rear-d1famap1.log into initramfs as '/tmp/rear-partial-2020-06-01T14:26:41+0900.log'
2020-06-01 14:26:41 Including rescue/GNU/Linux/95_cfg2html.sh
2020-06-01 14:26:41 Including rescue/GNU/Linux/96_collect_MC_serviceguard_infos.sh
2020-06-01 14:26:41 Finished running 'rescue' stage in 0 seconds
2020-06-01 14:26:41 Running 'build' stage
2020-06-01 14:26:41 Including build/GNU/Linux/00_create_symlinks.sh
2020-06-01 14:26:41 Creating LVM binary symlinks
2020-06-01 14:26:41 Including build/GNU/Linux/09_create_lib_directories_and_symlinks.sh
2020-06-01 14:26:41 Mirroring lib/ structure.
2020-06-01 14:26:41 Including build/GNU/Linux/10_copy_as_is.sh
2020-06-01 14:26:41 Copying files and directories
2020-06-01 14:26:41 Files being copied: /usr/share/rear /var/lib/rear /dev /etc/inputrc /etc/protocols /etc/services /etc/rpc /etc/termcap /etc/terminfo /usr/share/terminfo /etc/netconfig /etc/mke2fs.conf /etc/SuSE-release /etc/lsb-release /etc/os-release /lib/firmware /etc/localtime /etc/magic /usr/share/misc/magic /etc/dracut.conf /etc/dracut.conf.d /usr/lib/dracut /etc/sysconfig/network/config /etc/sysconfig/network/scripts/functions /etc/localtime /usr/lib/dhcpcd/* /etc/lvm /etc/default/grub /boot/grub /usr/lib/grub /usr/lib/grub2  /lib/modules/3.0.101-63-default/modules.alias /lib/modules/3.0.101-63-default/modules.alias.bin /lib/modules/3.0.101-63-default/modules.builtin /lib/modules/3.0.101-63-default/modules.builtin.bin /lib/modules/3.0.101-63-default/modules.ccwmap /lib/modules/3.0.101-63-default/modules.dep /lib/modules/3.0.101-63-default/modules.dep.bin /lib/modules/3.0.101-63-default/modules.ieee1394map /lib/modules/3.0.101-63-default/modules.inputmap /lib/modules/3.0.101-63-default/modules.isapnpmap /lib/modules/3.0.101-63-default/modules.ofmap /lib/modules/3.0.101-63-default/modules.order /lib/modules/3.0.101-63-default/modules.pcimap /lib/modules/3.0.101-63-default/modules.seriomap /lib/modules/3.0.101-63-default/modules.symbols /lib/modules/3.0.101-63-default/modules.symbols.bin /lib/modules/3.0.101-63-default/modules.usbmap /etc/modprobe.conf /etc/modprobe.conf.YaST2save /etc/modprobe.conf.local /etc/modprobe.d /etc/udev /etc/sysconfig/udev /lib/udev /usr/lib/udev /etc/resolv.conf /etc/hosts /etc/host.conf /etc/iproute2 /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz /etc/ssh /root/.ssh
2020-06-01 14:26:41 Files being excluded: dev/shm dev/.udev dev/shm/*
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
2020-06-01 14:26:41 Finished copying COPY_AS_IS
2020-06-01 14:26:42 Checking COPY_AS_IS_EXELIST
2020-06-01 14:26:42 Adding required /lib64/ld-2.11.3.so to LIBS
2020-06-01 14:26:42 Adding required /lib64/ld-linux-x86-64.so.2 to LIBS
2020-06-01 14:26:42 Adding required /lib64/libc-2.11.3.so to LIBS
2020-06-01 14:26:42 Adding required /lib64/libc.so.6 to LIBS
2020-06-01 14:26:42 Adding required /lib64/libdl-2.11.3.so to LIBS
2020-06-01 14:26:42 Adding required /lib64/libdl.so.2 to LIBS
2020-06-01 14:26:42 Adding required /lib64/libselinux.so.1 to LIBS
2020-06-01 14:26:42 Adding required /usr/lib64/libusb-0.1.so.4 to LIBS
2020-06-01 14:26:42 Adding required /usr/lib64/libusb-0.1.so.4.4.4 to LIBS
2020-06-01 14:26:42 Including build/GNU/Linux/11_touch_empty_files.sh
2020-06-01 14:26:42 Including build/GNU/Linux/13_create_dotfiles.sh
2020-06-01 14:26:42 Including build/GNU/Linux/15_adjust_permissions.sh
2020-06-01 14:26:42 Including build/GNU/Linux/16_adjust_sshd_config.sh
2020-06-01 14:26:42 Including build/GNU/Linux/39_copy_binaries_libraries.sh
2020-06-01 14:26:42 Copying binaries and libraries
2020-06-01 14:26:42 Binaries being copied: /bin/bash /bin/cat /bin/chmod /bin/chown /bin/cp /bin/date /bin/dd /bin/df /bin/dmesg /bin/dumpkeys /bin/hostname /bin/kbd_mode /bin/ln /bin/loadkeys /bin/logger /bin/ls /bin/mkdir /bin/mknod /bin/mktemp /bin/mount /bin/mv /bin/netstat /bin/openvt /bin/ping /bin/ps /bin/rm /bin/rmdir /bin/sleep /bin/stty /bin/sync /bin/tar /bin/true /bin/umount /bin/uname /bin/usleep /lib/udev/ata_id /lib/udev/cdrom_id /lib/udev/edd_id /lib/udev/path_id /lib/udev/scsi_id /lib/udev/usb_id /sbin/agetty /sbin/arping /sbin/blkid /sbin/cfdisk /sbin/cryptsetup /sbin/dhclient /sbin/dhclient6 /sbin/dhcpcd /sbin/dmeventd /sbin/dmsetup /sbin/ethtool /sbin/fdisk /sbin/fsadm /sbin/fsck /sbin/fsck.ext2 /sbin/fsck.ext3 /sbin/fsck.ext4 /sbin/fsck.reiserfs /sbin/fsck.xfs /sbin/halt /sbin/ifconfig /sbin/ifenslave /sbin/init /sbin/insmod /sbin/ip /sbin/killall5 /sbin/klogd /sbin/kpartx /sbin/lsmod /sbin/lspci /sbin/lvm /sbin/mingetty /sbin/mkfs /sbin/mkfs.ext2 /sbin/mkfs.ext3 /sbin/mkfs.ext4 /sbin/mkfs.reiserfs /sbin/mkfs.vfat /sbin/mkfs.xfs /sbin/mkreiserfs /sbin/mkswap /sbin/modprobe /sbin/mount.nfs /sbin/nameif /sbin/pidof /sbin/poweroff /sbin/reboot /sbin/reiserfsck /sbin/reiserfstune /sbin/rmmod /sbin/route /sbin/rpcbind /sbin/rpcinfo /sbin/sfdisk /sbin/shutdown /sbin/swapoff /sbin/swapon /sbin/syslog-ng /sbin/telinit /sbin/tune2fs /sbin/udevadm /sbin/udevd /sbin/umount.nfs /usr/bin/attr /usr/bin/awk /usr/bin/basename /usr/bin/bzip2 /usr/bin/chacl /usr/bin/chroot /usr/bin/cpio /usr/bin/cut /usr/bin/diff /usr/bin/dirname /usr/bin/du /usr/bin/egrep /usr/bin/expand /usr/bin/expr /usr/bin/fgrep /usr/bin/file /usr/bin/find /usr/bin/free /usr/bin/getent /usr/bin/getfacl /usr/bin/getfattr /usr/bin/getopt /usr/bin/grep /usr/bin/gzip /usr/bin/head /usr/bin/id /usr/bin/joe /usr/bin/join /usr/bin/killall /usr/bin/ldd /usr/bin/less /usr/bin/lsscsi /usr/bin/md5sum /usr/bin/mkfifo /usr/bin/netcat /usr/bin/nslookup /usr/bin/readlink /usr/bin/rsync /usr/bin/scp /usr/bin/sed /usr/bin/seq /usr/bin/setfacl /usr/bin/setfattr /usr/bin/sftp /usr/bin/sg_inq /usr/bin/sort /usr/bin/ssh /usr/bin/stat /usr/bin/strace /usr/bin/strings /usr/bin/tac /usr/bin/tail /usr/bin/tee /usr/bin/top /usr/bin/touch /usr/bin/tr /usr/bin/tty /usr/bin/uniq /usr/bin/vi /usr/bin/wc /usr/bin/which /usr/bin/xargs /usr/bin/xz /usr/lib64/ssh/sftp-server /usr/sbin/grub /usr/sbin/grub-install /usr/sbin/hpssacli /usr/sbin/ifrename /usr/sbin/parted /usr/sbin/partprobe /usr/sbin/rear /usr/sbin/rpc.statd /usr/sbin/showmount /usr/sbin/sshd /usr/sbin/traceroute /usr/sbin/xfs_admin /usr/sbin/xfs_db
2020-06-01 14:26:43 Libraries being copied: /lib/ld-2.11.3.so /lib/ld-linux.so.2 /lib/libc-2.11.3.so /lib/libc.so.6 /lib/libdl-2.11.3.so /lib/libdl.so.2 /lib/libgcc_s.so.1 /lib/libncurses.so.5 /lib/libncurses.so.5.6 /lib/libnss_dns-2.11.3.so /lib/libnss_dns.so.2 /lib/libnss_files-2.11.3.so /lib/libnss_files.so.2 /lib/libresolv-2.11.3.so /lib/libresolv.so.2 /lib64/ld-2.11.3.so /lib64/ld-linux-x86-64.so.2 /lib64/libacl.so.1 /lib64/libacl.so.1.1.0 /lib64/libattr.so.1 /lib64/libattr.so.1.1.0 /lib64/libaudit.so.0 /lib64/libaudit.so.0.0.0 /lib64/libblkid.so.1 /lib64/libblkid.so.1.1.0 /lib64/libbz2.so.1 /lib64/libbz2.so.1.0.5 /lib64/libc-2.11.3.so /lib64/libc.so.6 /lib64/libcap.so.2 /lib64/libcap.so.2.11 /lib64/libcom_err.so.2 /lib64/libcom_err.so.2.1 /lib64/libcrypt-2.11.3.so /lib64/libcrypt.so.1 /lib64/libcryptsetup.so.1 /lib64/libcryptsetup.so.1.0.0 /lib64/libdevmapper-event.so.1.02 /lib64/libdevmapper-event.so.1.03 /lib64/libdevmapper.so.1.02 /lib64/libdevmapper.so.1.03 /lib64/libdl-2.11.3.so /lib64/libdl.so.2 /lib64/libe2p.so.2 /lib64/libe2p.so.2.3 /lib64/libext2fs.so.2 /lib64/libext2fs.so.2.4 /lib64/libgcc_s.so.1 /lib64/libgcrypt.so.11 /lib64/libgcrypt.so.11.7.0 /lib64/libgpg-error.so.0 /lib64/libgpg-error.so.0.8.0 /lib64/libgssglue.so.1 /lib64/libgssglue.so.1.0.0 /lib64/libkeyutils-1.2.so /lib64/libkeyutils.so.1 /lib64/liblzma.so.5 /lib64/liblzma.so.5.0.3 /lib64/libm-2.11.3.so /lib64/libm.so.6 /lib64/libncurses.so.5 /lib64/libncurses.so.5.6 /lib64/libncursesw.so.5 /lib64/libncursesw.so.5.6 /lib64/libnet.so.0 /lib64/libnet.so.0.0.0 /lib64/libnsl-2.11.3.so /lib64/libnsl.so.1 /lib64/libnss_dns-2.11.3.so /lib64/libnss_dns.so.2 /lib64/libnss_files-2.11.3.so /lib64/libnss_files.so.2 /lib64/libpam.so.0 /lib64/libpam.so.0.83.1 /lib64/libpci.so.3 /lib64/libpci.so.3.1.7 /lib64/libpopt.so.0 /lib64/libpopt.so.0.0.0 /lib64/libpthread-2.11.3.so /lib64/libpthread.so.0 /lib64/libreadline.so.5 /lib64/libreadline.so.5.2 /lib64/libresolv-2.11.3.so /lib64/libresolv.so.2 /lib64/librt-2.11.3.so /lib64/librt.so.1 /lib64/libselinux.so.1 /lib64/libsepol.so.1 /lib64/libsysfs.so.2 /lib64/libsysfs.so.2.0.1 /lib64/libtirpc.so.1 /lib64/libtirpc.so.1.0.10 /lib64/libudev.so.0 /lib64/libudev.so.0.5.1 /lib64/libutil-2.11.3.so /lib64/libutil.so.1 /lib64/libuuid.so.1 /lib64/libuuid.so.1.3.0 /lib64/libwrap.so.0 /lib64/libwrap.so.0.7.6 /lib64/libz.so.1 /lib64/libz.so.1.2.7 /usr/lib64/libbfd-2.24.0.20140403-3.so /usr/lib64/libbind9.so.90 /usr/lib64/libbind9.so.90.0.11 /usr/lib64/libcrypto.so.0.9.8 /usr/lib64/libdal-0.3.so.0 /usr/lib64/libdal-0.3.so.0.0.0 /usr/lib64/libdns.so.104 /usr/lib64/libdns.so.104.1.0 /usr/lib64/libgssapi_krb5.so.2 /usr/lib64/libgssapi_krb5.so.2.2 /usr/lib64/libisc.so.95 /usr/lib64/libisc.so.95.8.0 /usr/lib64/libisccc.so.90 /usr/lib64/libisccc.so.90.0.6 /usr/lib64/libisccfg.so.90 /usr/lib64/libisccfg.so.90.2.3 /usr/lib64/libiw.so.30 /usr/lib64/libk5crypto.so.3 /usr/lib64/libk5crypto.so.3.1 /usr/lib64/libkrb5.so.3 /usr/lib64/libkrb5.so.3.3 /usr/lib64/libkrb5support.so.0 /usr/lib64/libkrb5support.so.0.1 /usr/lib64/liblwres.so.91 /usr/lib64/liblwres.so.91.0.0 /usr/lib64/libmagic.so.1 /usr/lib64/libmagic.so.1.0.0 /usr/lib64/libparted.so.0 /usr/lib64/libparted.so.0.0.1 /usr/lib64/libreiserfs-0.3.so.0 /usr/lib64/libreiserfs-0.3.so.0.0.0 /usr/lib64/libsgutils2.so.2 /usr/lib64/libsgutils2.so.2.0.0 /usr/lib64/libslp.so.1 /usr/lib64/libslp.so.1.0.0 /usr/lib64/libusb-0.1.so.4 /usr/lib64/libusb-0.1.so.4.4.4 /usr/lib64/libxml2.so.2 /usr/lib64/libxml2.so.2.7.6
2020-06-01 14:26:43 Including build/GNU/Linux/40_copy_modules.sh
2020-06-01 14:26:43 Collecting modules for kernel version 3.0.101-63-default
2020-06-01 14:26:45 Copying kernel modules
2020-06-01 14:26:47 Including build/default/50_patch_sshd_config.sh
2020-06-01 14:26:47 Including build/GNU/Linux/60_verify_and_adjust_udev.sh
2020-06-01 14:26:47 Checking udev
2020-06-01 14:26:47 Including build/SUSE_LINUX/61_link_systemd_lib.sh
ln: failed to create symbolic link `/tmp/rear.oSjt6AnCPeWvkBU/rootfs/lib/systemd/system': No such file or directory
2020-06-01 14:26:47 Including build/GNU/Linux/61_verify_and_adjust_udev_systemd.sh
2020-06-01 14:26:47 Cleaning up systemd udev socket files
2020-06-01 14:26:47 Including build/default/96_remove_encryption_keys.sh
2020-06-01 14:26:47 Including build/default/97_add_rear_release.sh
2020-06-01 14:26:47 Including build/default/98_verify_rootfs.sh
2020-06-01 14:26:47 Including build/default/99_update_os_conf.sh
2020-06-01 14:26:47 Finished running 'build' stage in 6 seconds
2020-06-01 14:26:47 Running 'pack' stage
2020-06-01 14:26:47 Including pack/Linux-i386/30_copy_kernel.sh
2020-06-01 14:26:47 Found kernel /boot/vmlinuz-3.0.101-63-default
2020-06-01 14:26:47 Including pack/GNU/Linux/90_create_initramfs.sh
2020-06-01 14:26:47 Creating initramfs
2020-06-01 14:26:55 Finished running 'pack' stage in 8 seconds
2020-06-01 14:26:55 Running 'output' stage
2020-06-01 14:26:55 Including output/default/01_set_umask.sh
2020-06-01 14:26:55 Setting umask to 077
2020-06-01 14:26:55 Including output/default/10_mount_output_path.sh
2020-06-01 14:26:55 Mounting with 'mount  -t nfs -o nfsvers=3,nolock 10.10.33.41:/OSbackup /tmp/rear.oSjt6AnCPeWvkBU/outputfs'
2020-06-01 14:26:55 Including output/default/15_save_copy_of_prefix_dir.sh
2020-06-01 14:26:55 Including output/default/20_make_boot_dir.sh
2020-06-01 14:26:55 Including output/default/20_make_prefix_dir.sh
2020-06-01 14:26:55 Including output/ISO/Linux-i386/20_mount_efibootimg.sh
2020-06-01 14:26:55 Including output/default/25_create_lock.sh
2020-06-01 14:26:55 Including output/ISO/Linux-i386/25_populate_efibootimg.sh
2020-06-01 14:26:55 Including output/ISO/Linux-i386/30_create_isolinux.sh
2020-06-01 14:26:55 Features based on syslinux version: 3.82
2020-06-01 14:26:55 Using syslinux prefix: boot/syslinux
2020-06-01 14:26:55 Created isolinux configuration
2020-06-01 14:26:55 Including output/ISO/Linux-i386/70_umount_efibootimg.sh
2020-06-01 14:26:55 Including output/ISO/Linux-i386/80_create_isofs.sh
2020-06-01 14:26:55 Copying kernel
2020-06-01 14:26:56 Including output/ISO/Linux-i386/81_prepare_multiple_iso.sh
2020-06-01 14:26:56 Including output/ISO/Linux-i386/82_create_iso_image.sh
2020-06-01 14:26:56 Starting '/usr/bin/mkisofs'
2020-06-01 14:26:56 Making ISO image
2020-06-01 14:26:56 Including ISO UEFI boot (as triggered by USING_UEFI_BOOTLOADER=1)
genisoimage: option '-e' is ambiguous
Usage: genisoimage [options] -o file directory ...

Use genisoimage -help
to get a list of valid options.

Report problems to debburn-devel@lists.alioth.debian.org.
2020-06-01 14:26:56 ERROR: Could not create ISO image (with /usr/bin/mkisofs)
=== Stack trace ===
Trace 0: /usr/sbin/rear:249 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:30 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4: /usr/share/rear/output/ISO/Linux-i386/82_create_iso_image.sh:17 source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError
Message: Could not create ISO image (with /usr/bin/mkisofs)

jsmeix commented at 2020-06-02 07:42:

If you actually use UEFI on SLES11 you need at least
the SUSE RPM package "rear118a" plus the "ebiso" package
to make a UEFI bootable ReaR recovery system ISO image.

And you need to make appropriate settings in your
etc/rear/local.conf file for ebiso, cf.
https://github.com/rear/rear/blob/master/usr/share/rear/conf/examples/SLE11-SLE12-SAP-HANA-UEFI-example.conf#L13
that contains in particular (excerpt):

# Use ebiso to make an UEFI bootable ISO image of the ReaR recovery system:
ISO_MKISOFS_BIN=/usr/bin/ebiso

I recommend to try out our current ReaR upstream GitHub master code,
see "Testing current ReaR upstream GitHub master code" at
https://en.opensuse.org/SDB:Disaster_Recovery

db2nkyi commented at 2020-06-03 05:27:

actually , I don't care whether it's UEFI or BIOS.
so I delete USING_UEFI_BOOTLOADER=0
in your etc/rear/local.conf
Then, the backup was successful. How do I make sure it's a normal backup ISO File ?

jsmeix commented at 2020-06-03 09:19:

@db2nkyi
you should care if the ReaR recovery system boots via UEFI or BIOS
because if you actually use UEFI to boot your SLES11 system
you need to make a UEFI bootable ReaR recovery system ISO
because the ReaR recovery system has to be booted via UEFI
to be able to reinstall the UEFI bootloader on your recreated system.

You must have replacement hardware available on which your system
can be recreated and you must try out if it works to recreate your system
with your recovery medium on your replacement hardware, cf.
"No disaster recovery without testing and continuous validation" at
https://en.opensuse.org/SDB:Disaster_Recovery


[Export of Github issue for rear/rear.]