UNDER CONSTRUCTION: er moet nog een script aangemaakt worden ; cron job etc.
ODABR is een Oracle utility voor het maken van LVM snapshots op de ODA's.
Deze tool wordt niet standaard geïnstalleerd.
Informatie over deze utility, inclusief download info met betrekking tot de laatste versie vind je in Oracle Support Document 2466177.1.
De tool biedt een aantal mogelijkheden maar ik beperk mij tot de -snap optie, dit is de recommended functionality. Ik ben van mening dat de lokale filesystemen niet kritische informatie bevat.
De installatie is straightforward en kan via RPM worden gedaan, bijvoorbeeld:
[root@ab038 ~]# rpm -Uvh /u01/nfs_backup/odabr-2.0.1-71.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:odabr-2.0.1-71 ################################# [100%]
odabr-2.0.1.71 has been installed on /opt/odabr succesfully!
Hieronder de belangrijkste functies; snap, snapinfo en delsnap. Deze commando's laten weinig aan de fantasie over.
ODABR snap:
[root@ab031 ~]# odabr backup -snap
INFO: 2023-01-05 15:11:11: Please check the logfile '/opt/odabr/out/log/odabr_46337.log' for more details
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
odabr - ODA node Backup Restore - Version: 2.0.1-71
Copyright 2013, 2022, Oracle and/or its affiliates.
--------------------------------------------------------
Author: Ruggero Citton <ruggero.citton@oracle.com>
RAC Pack, Cloud Innovation and Solution Engineering Team
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
INFO: 2023-01-05 15:11:11: Checking superuser
INFO: 2023-01-05 15:11:11: Checking Bare Metal
INFO: 2023-01-05 15:11:11: Removing existing LVM snapshots
WARNING: 2023-01-05 15:11:11: LVM snapshot for 'opt' does not exist
WARNING: 2023-01-05 15:11:11: LVM snapshot for 'u01' does not exist
WARNING: 2023-01-05 15:11:11: LVM snapshot for 'root' does not exist
INFO: 2023-01-05 15:11:11: Checking current OS version
INFO: 2023-01-05 15:11:11: Checking LVM restore backgroud process
INFO: 2023-01-05 15:11:11: Checking LVM size
INFO: 2023-01-05 15:11:11: Boot device backup
INFO: 2023-01-05 15:11:11: Getting EFI device
WARNING: 2023-01-05 15:11:11: Failing checking efi device
INFO: 2023-01-05 15:11:11: ...no EFI device found
INFO: 2023-01-05 15:11:11: Getting boot device
INFO: 2023-01-05 15:11:11: ...step1 - making boot device backup using tar
SUCCESS: 2023-01-05 15:11:17: ...boot content saved as '/opt/odabr/out/hbi/boot.tar.gz'
INFO: 2023-01-05 15:11:17: ...step2 - unmounting boot
INFO: 2023-01-05 15:11:17: ...step3 - making boot device backup using dd
SUCCESS: 2023-01-05 15:11:20: ...boot device backup saved as '/opt/odabr/out/hbi/boot.img'
INFO: 2023-01-05 15:11:20: ...step4 - mounting boot
INFO: 2023-01-05 15:11:20: ...step5 - checking boot device backup
INFO: 2023-01-05 15:11:21: Making OCR physical backup
INFO: 2023-01-05 15:11:25: ...ocr backup saved as '/opt/odabr/out/hbi/ocrbackup_46337.bck'
SUCCESS: 2023-01-05 15:11:25: OCR physical backup created successfully
INFO: 2023-01-05 15:11:25: OCR export backup
INFO: 2023-01-05 15:11:27: ...ocr export saved as '/opt/odabr/out/hbi/ocrexport_46337.bck'
SUCCESS: 2023-01-05 15:11:27: OCR export backup created successfully
INFO: 2023-01-05 15:11:27: Making LVM snapshot backup
SUCCESS: 2023-01-05 15:11:27: ...snapshot backup for 'opt' created successfully
SUCCESS: 2023-01-05 15:11:27: ...snapshot backup for 'u01' created successfully
SUCCESS: 2023-01-05 15:11:28: ...snapshot backup for 'root' created successfully
SUCCESS: 2023-01-05 15:11:28: LVM snapshots backup done successfully
ODABR infosnap:
[root@ab031 log]# odabr infosnap
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
odabr - ODA node Backup Restore - Version: 2.0.1-71
Copyright 2013, 2022, Oracle and/or its affiliates.
--------------------------------------------------------
Author: Ruggero Citton <ruggero.citton@oracle.com>
RAC Pack, Cloud Innovation and Solution Engineering Team
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
LVM snap name Status COW Size Data%
------------- ---------- ---------- ------
root_snap active 30.00 GiB 0.12%
opt_snap active <40.19 GiB 0.19%
u01_snap active <40.19 GiB 0.33%
ODABR delsnap:
[root@ab031 log]# odabr delsnap
INFO: 2023-01-05 15:56:12: Please check the logfile '/opt/odabr/out/log/odabr_42399.log' for more details
INFO: 2023-01-05 15:56:12: Removing LVM snapshots
INFO: 2023-01-05 15:56:12: ...removing LVM snapshot for 'opt'
SUCCESS: 2023-01-05 15:56:13: ...snapshot for 'opt' removed successfully
INFO: 2023-01-05 15:56:13: ...removing LVM snapshot for 'u01'
SUCCESS: 2023-01-05 15:56:13: ...snapshot for 'u01' removed successfully
INFO: 2023-01-05 15:56:13: ...removing LVM snapshot for 'root'
SUCCESS: 2023-01-05 15:56:13: ...snapshot for 'root' removed successfully
SUCCESS: 2023-01-05 15:56:13: Remove LVM snapshots done successfully