Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rear mkrescue fails on new system #440

Closed
BenGig opened this issue Jul 16, 2014 · 6 comments
Closed

rear mkrescue fails on new system #440

BenGig opened this issue Jul 16, 2014 · 6 comments
Assignees
Labels
bug The code does not do what it is meant to do fixed / solved / done
Milestone

Comments

@BenGig
Copy link

BenGig commented Jul 16, 2014

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
Copy link
Member

schlomo commented Jul 16, 2014

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
#440.

@BenGig
Copy link
Author

BenGig commented Jul 16, 2014

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 gdha added support and removed support labels Jul 28, 2014
@gdha
Copy link
Member

gdha commented Jul 30, 2014

@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?

@gdha gdha self-assigned this Jul 30, 2014
@BenGig
Copy link
Author

BenGig commented Aug 4, 2014

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 gdha added bug and removed support labels Aug 4, 2014
@gdha gdha added this to the Rear v1.17 milestone Aug 4, 2014
@gdha
Copy link
Member

gdha commented Aug 4, 2014

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

@gdha
Copy link
Member

gdha commented Feb 11, 2015

added to the release notes so we can close this issue

@gdha gdha closed this as completed Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The code does not do what it is meant to do fixed / solved / done
Projects
None yet
Development

No branches or pull requests

3 participants