hidden:Backup with Relax-and-Recover
From Lsdf
Jump to navigationJump to search
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. check the mount points of LV
- mount
- /dev/mapper/hpss_vg-varhpss on /varhpss type ext4 (rw)
- /dev/mapper/hpss_vg-hpss_src on /hpss_src type ext4 (rw)
1.4. 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
2.1. check active vg:
2.1.1.On HPSS Test Core
- [root@hpsstcr03 ~]# vgs
- VG #PV #LV #SN Attr VSize VFree
- db2_backup1_vg 1 1 0 wz--n- 3.64t 0
- db2_log_vg 1 1 0 wz--n- 50.00g 0
- db2_logarch1_vg 1 1 0 wz--n- 831.00g 0
- db2_logarch2_vg 1 1 0 wz--n- 831.00g 0
- db2_logmirror_vg 1 1 0 wz--n- 135.81g 85.81g
- hpss1_tbspc1_vg 1 1 0 wz--n- 558.41g 0
- hpss1_tbspc2_vg 1 1 0 wz--n- 558.41g 0
- hpss1_tbspc3_vg 1 1 0 wz--n- 558.41g 0
- hpss1_tbspc4_vg 1 1 0 wz--n- 558.41g 0
- hpss1_tbspc5_vg 1 1 0 wz--n- 558.41g 0
- hpss_vg 2 5 0 wz--n- 200.02g 16.00m
2.1.2. On HPSS Core 01
- [root@hpsscr ~]# vgs
- VG #PV #LV #SN Attr VSize VFree
- db2_backup1_vg 1 1 0 wz--n- 9.09t 0
- db2_backup2_vg 1 1 0 wz--n- 9.09t 0
- db2_log_vg 1 1 0 wz--n- 185.81g 137.81g
- db2_logarch1_vg 1 1 0 wz--n- 931.01g 0
- db2_logarch2_vg 1 1 0 wz--n- 931.01g 0
- db2_logmirror_vg 1 1 0 wz--n- 185.81g 137.81g
- hpss_tbspc10_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc11_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc12_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc13_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc14_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc15_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc16_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc17_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc18_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc19_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc1_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc20_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc21_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc22_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc23_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc24_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc2_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc3_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc4_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc5_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc6_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc7_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc8_vg 1 1 0 wz--n- 558.41g 0
- hpss_tbspc9_vg 1 1 0 wz--n- 558.41g 0
- hpss_vg 4 5 0 wz--n- 3.64t 3.32t