While storage Snapshots can be a very powerful mechanism for fast database recovery, snapshots are not substitutes for database backups. Unlike backups, snapshots are not normally retained for prolonged periods, and depending on the change rate and capacity available, snapshots may have a Time To Live (TTL) of few hours to few days. Certain kinds of “silent” logical corruptions may not be noticed in the application for weeks or months – beyond the life cycle of most snapshots. Therefore, database backups should form part of the overall database protection strategy along with Disaster Recovery sites, and storage Snapshots.
On systems that operate continuously, however, the busy online day is usually followed by a full schedule of nightly batch jobs, report runs, or resource-intensive analytics processes. It can be challenging to create a backup window without affecting the nightly jobs, while still ensuring that backups are completed within the Service Level Objectives (SLOs).
Using PowerFlex snapshots, backup processing can be “offloaded” to a backup server, thereby not affecting any production batch workloads.
This following procedure requires that the backup media be available as a filesystem share to both the main production server(s), and the backup server.
Give the snapshot a name and suffix.
Identify the newly presented Powerflex Snapshot devices
# lsblk | grep scini
Use the following example script to generate the UDEV entries for the snapshot devices (inserting the device names identified in step a)
#!/bin/ksh
#
# Simple script to generate UDEV entries
# Version 1.1
# Dell Technologies
# June 2021
#
# EDIT THE FOLLOWING LINE AND LIST ALL DEVICE NAMES
for i in scinif scinig scinih
do
c=$(expr $c + 1)
dev_id=$(/opt/emc/scaleio/sdc/bin/drv_cfg --query_block_device_id --block_device /dev/$i)
echo 'KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/opt/emc/scaleio/sdc/bin/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="'$dev_id'", SYMLINK+="oracleasm/snapdisk'$c'", OWNER="grid", GROUP="oinstall", MODE="0660"'
done
Example script output:
KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/opt/emc/scaleio/sdc/bin/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="3ab393750b18d00f-3d262a920000001c", SYMLINK+="oracleasm/snapdisk1", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/opt/emc/scaleio/sdc/bin/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="3ab393750b18d00f-3d262a940000001e", SYMLINK+="oracleasm/snapdisk2", OWNER="grid", GROUP="oinstall", MODE="0660"
# /sbin/udevadm control --reload-rules;/sbin/udevadm trigger
This procedure assumes that a snapshot cannot be used.
Use RMAN as shown below to identify the TAG associated with the specific backup on the date required.