This article covers backup procedures that must be used for different types of data including:
It is strongly recommended to back up the OS disk and software disk (lvmdisk1) of all cluster nodes after the initial cluster configuration and before and after applying any changes such as patch installation or security settings changes. Taking disk snapshots is the recommended method for backing up the disks.
To create a backup of a cluster node VM
If the node is a database node, stop Oracle services.
# crsctl stop crs
Gracefully stop the instance.
# flashgrid-node poweroff
Create snapshot of the OS disk.
Standard RMAN procedures should be used for backing up and restoring database files.
Configuring a disk attached to one of the database node VMs for database backup
gcloud compute disks create mycluster-uniqid-localbkp --size 40 --type pd-ssd
Attach it to the VM.
gcloud compute instances attach-disk mycluster-uniqid-rac1 --disk=mycluster-uniqid-rac1-localbkp --device-name=localbkp
Format the disk.
Create mount point with the appropiate permissions
mkdir /localbkp chown oracle:oinstall /localbkp chmod 755 /localbkp
Mount the filesystem
mount -o discard,defaults /dev/localbkp /localbkp
If you want the filesystem automatically mounted after reboot, then
echo UUID=`sudo blkid -s UUID -o value /dev/localbkp` /localbkp xfs defaults,nofail 0 2 | sudo tee -a /etc/fstab
Please follow Grid Infrastructure Backup and Restore Best Practices
For backing up and restoring files on ACFS use same tools and procedures that you would normally use for file-level backup and restore.