hidden:Backup with Relax-and-Recover: Difference between revisions

From Lsdf
Jump to navigationJump to search
No edit summary
No edit summary
Line 59: Line 59:
1.4. '''edit crontab'''
1.4. '''edit crontab'''
*crontab -l
*crontab -l
**# system backup
**system backup
**0 3 * * * /usr/sbin/rear mkbackup
**0 3 * * * /usr/sbin/rear mkbackup



Revision as of 15:40, 11 July 2016

IBM,Jonathan had installed Relax-and-Recover an all HPSS machines but it has been configured only on HPSS Test Core and HPSS Test Mover
[root@hpsstmvr etc]# /usr/sbin/rear -V
Relax-and-Recover 1.17.1 / Git
This version is not in the git repository any longer
Installed by IBM, Jonathan 
I let this version because it is the version we already made a recovery from.
Should we replace it?
Dorin deployed it on all HPSS machines and installed and configured it on all front end machines on 11.07.2016
Dorin changed the mount point for ReaR backups 
from 
nfs://lsmb02.lsdf.kit.edu/gpfs/nfsshares/scc/hpss/rear/ 
to
nfs://hpa.lsdf.kit.edu/export/hpa/ReaR_Backups/
Reasons:
since the hpss mover 4 has no IP network 141 it is not able to mount the gpfs file system
ReaR makes every day an bare metal backup and keeps only one version on the mounted nfs file system
a TSM backup will be configured for hpa and the "rear backups" will be archived in tsm so that more versions will be kept 
On all machines
ReaR mounts the nfs file system at the running time on /mnt/ba_os_image/
ReaR configuration file /etc/rear/local.conf
Rear log: /var/log/rear/rear-HOSTNAME.log
ReaR default configuration file: /usr/share/rear/conf/default.conf

IMPORTANT
According to relax-and-recover documentation (see /usr/share/rear/conf/default.conf)
# Exclude LVM2 volume groups. This will automatically exclude also the creation of the corresponding
# physical and logical volumes that belong to the excluded volume group.
#
# NOTE: YOU MUST ALSO EXCLUDE THE CORRESPONDING MOUNTPOINTS IN EXCLUDE_MOUNTPOINTS (see above)
#       OTHERWISE THE RECOVERY ***WILL*** TRY TO RECREATE THE FILESYSTEMS ONTO NON-EXISTING LVs
#
#       Y O U   H A V E   B E E N   W A R N E D  ! ! 
EXCLUDE_VG=()

1. Configure Relax-and-recover on a HPSS mover

1.1. check active vg:

    • root@hpssmvr01 rear]# vgs
    • VG #PV #LV #SN Attr VSize VFree
    • hpss_vg 1 2 0 wz--n- 64.00g 58.00g

1.2. check LV

  • root@hpssmvr01 rear]# lvs
    • LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
    • hpss_src hpss_vg -wi-ao---- 4.00g
    • varhpss hpss_vg -wi-ao---- 2.00g

1.3. edit /etc/rear/local.conf

  • cat /etc/rear/localconf
    • OUTPUT=ISO
    • BACKUP=NETFS
    • BACKUP_URL="nfs://lsmb02.lsdf.kit.edu/gpfs/nfsshares/scc/hpss/rear/"
    • EXCLUDE_MOUNTPOINTS=( '/hpss_src' '/varhpss' '/kdumps' )
    • EXCLUDE_VG=( 'hpss_vg')

1.4. edit crontab

  • crontab -l
    • system backup
    • 0 3 * * * /usr/sbin/rear mkbackup

2. Configure Relax-and-Recover on HPSS core