#440 Issue closed: rear mkrescue fails on new system

Labels: bug, fixed / solved / done

BenGig opened issue at 2014-07-16 13:08:

Hi

95_copy_result_files.sh wants to copy files to /var/lib/rear/output which does not exists on a new system. Consequently the job fails. I searched the issues but did not found anything, is this by design to not create the directory, or just went unnoticed until now?

Regards
Ben

schlomo commented at 2014-07-16 14:39:

How did you install ReaR?

Please provide the output of "rear dump"

On 16 July 2014 15:08, BenGig notifications@github.com wrote:

Hi

95_copy_result_files.sh wants to copy files to /var/lib/rear which does
not exists on a new system. Consequently the job fails. I searched the
issues but did not found anything, is this by design to not create the
directory, or just went unnoticed until now?

Regards
Ben


Reply to this email directly or view it on GitHub
https://github.com/rear/rear/issues/440.

BenGig commented at 2014-07-16 14:51:

On RHEL6, by yum from EPEL:

Name        : rear                         Relocations: (not relocatable)
Version     : 1.16.1                            Vendor: Fedora Project
Release     : 1.el6                         Build Date: Mon 02 Jun 2014 14:55:26 CEST
Install Date: Die 15 Jul 2014 12:15:30 CEST      Build Host: buildvm-21.phx2.fedoraproject.org
Group       : Applications/File             Source RPM: rear-1.16.1-1.el6.src.rpm
Size        : 849736                           License: GPLv3
Signature   : RSA/8, Mon 02 Jun 2014 17:19:50 CEST, Key ID 3b49df2a0608b895

Output of rear dump:

Relax-and-Recover 1.16.1 / Git
Using log file: /var/log/rear/rear-id-lnx-vcl-x64.log.lockless
Dumping out configuration and system information
This is a 'Linux-x86_64' system, compatible with 'Linux-i386'.
System definition:
                                    ARCH = Linux-i386
                                      OS = GNU/Linux
                        OS_MASTER_VENDOR = Fedora
                       OS_MASTER_VERSION = 6
                   OS_MASTER_VENDOR_ARCH = Fedora/i386
                OS_MASTER_VENDOR_VERSION = Fedora/6
           OS_MASTER_VENDOR_VERSION_ARCH = Fedora/6/i386
                               OS_VENDOR = RedHatEnterpriseServer
                              OS_VERSION = 6
                          OS_VENDOR_ARCH = RedHatEnterpriseServer/i386
                       OS_VENDOR_VERSION = RedHatEnterpriseServer/6
                  OS_VENDOR_VERSION_ARCH = RedHatEnterpriseServer/6/i386
Configuration tree:
                         Linux-i386.conf : OK
                          GNU/Linux.conf : OK
                             Fedora.conf : missing/empty
                        Fedora/i386.conf : missing/empty
                           Fedora/6.conf : missing/empty
                      Fedora/6/i386.conf : missing/empty
             RedHatEnterpriseServer.conf : missing/empty
        RedHatEnterpriseServer/i386.conf : missing/empty
           RedHatEnterpriseServer/6.conf : missing/empty
      RedHatEnterpriseServer/6/i386.conf : missing/empty
                               site.conf : missing/empty
                              local.conf : OK
Backup with TSM
                  TSM_ARCHIVE_MGMT_CLASS = 
                TSM_DSMC_RESTORE_OPTIONS = 
                    TSM_RESTORE_PIT_DATE = 
                    TSM_RESTORE_PIT_TIME = 
                    TSM_RESULT_FILE_PATH = /opt/tivoli/tsm/rear
                         TSM_RESULT_SAVE = y                                                                                                                                                                                             
                          TSM_RM_ISOFILE =                                                                                                                                                                                               
                  BACKUP_INTEGRITY_CHECK =                                                                                                                                                                                               
                         BACKUP_MOUNTCMD =                                                                                                                                                                                               
                          BACKUP_OPTIONS =                                                                                                                                                                                               
                    BACKUP_RSYNC_OPTIONS = --sparse --archive --hard-links --verbose --numeric-ids --stats                                                                                                                               
                  BACKUP_SELINUX_DISABLE = 1                                                                                                                                                                                             
                             BACKUP_TYPE =                                                                                                                                                                                               
                        BACKUP_UMOUNTCMD =                                                                                                                                                                                               
                              BACKUP_URL = file:///root/rear                                                                                                                                                                             
Output to PXE                                                                                                                                                                                                                            
                         PXE_CONFIG_PATH = /root/rear/pxe                                                                                                                                                                                
                       PXE_CONFIG_PREFIX = rear-                                                                                                                                                                                         
                        PXE_CREATE_LINKS = MAC                                                                                                                                                                                           
                    PXE_REMOVE_OLD_LINKS =                                                                                                                                                                                               
                           PXE_TFTP_PATH = /var/lib/rear/output                                                                                                                                                                          
                         PXE_TFTP_PREFIX = id-lnx-vcl-x64.                                                                                                                                                                               
                           RESULT_MAILTO =

/usr/share/rear/lib/validated/RedHatEnterpriseServer/6/i386.txt                                                                                                                                                                          
Your system is validated with the following details:                                                                                                                                                                                     
Relax and Recover Version 1.13.0 / $Date$                                                                                                                                                                                                
Validation:     RedHatEnterpriseServer/6/i386                                                                                                                                                                                            
Submitted:      tdec0909@yahoo.com, Marcel Keil <marcelk@tim.de>                                                                                                                                                                         
Date:           2013-05-21, 2014-03-18                                                                                                                                                                                                   
Features:       LVM, VMware guest, ISO, NETFS, NSR                                                                                                                                                                                       
Comment:

gdha commented at 2014-07-30 11:44:

@BenGig it works for me. If you remove rear (via rpm -e rear) and re-install could you verify if the directory /var/lib/rear content?

BenGig commented at 2014-08-04 09:51:

Sorry about the vacation related delay.

After rpm -e rear: /var/lib/rear remained with the three subdirs output, layout and recovery. I then cleaned up with rm -rf /var/lib/rear.

Reinstalled with yum install rear, the installation created /var/lib/rear as an empty directory.

I found that configuring OUTPUT=ISO does indeed creates all the directories necessary. But: the option OUTPUT=PXE is triggering the problem, I could verify it on RHEL6 and on Fedora 20.

gdha commented at 2014-08-04 11:35:

@BenGig I've fixed the issue - thanks for doing the troubleshooting...

gdha commented at 2015-02-11 10:44:

added to the release notes so we can close this issue


[Export of Github issue for rear/rear.]