I wanted to go through some very basic items to think about on disk reserved space for databases backed up to a ZDLRA.
There are couple of posts that have been written on this by both myself and Sudhakar Kotagiri.
One of the key items to concentrate on is the DISK_RESERVED_SPACE for each database. A simple explanation of the DISK_RESERVED_SPACE is this setting represents the amount of space you set aside on a database-by-database basis to keep a backup window to support the recovery window goal.
A simple example of the DISK_RESERVED_SPACE is.....
My Full backup takes up 40 TB. Keeping 14 days of recovery (which is my recovery window goal) takes up an additional 1 TB/day.
In this example, I need 54 TB of storage to keep 14 days of recovery.
For this database, I would set the reserved space to be 56.5 TB to ensure I have an extra 5% of space available to handle any unexpected peaks.
Easy right ? The value for RECOVERY_WINDOW_SPACE in the RA_DATABASE view gives you the space needed to support the Recovery Window.
But.. the reason I called this a checkup is that I wanted to make sure some thought is given to the setting. If your database is changing (which it almost always is), then this needs to be reviewed and adjusted.
Below are some simple rules of thumb of what to think about when adjusting DISK_RESERVED_SPACE
- Stable Mature Databases - If your database is mature, and the workload is consistent, the DISK_RESERVED_SPACE should be 5-10% larger than the RECOVERY_WINDOW_SPACE. This setting should be reviewed at least 4 times year to be sure it is accurate.
- Actively Changing Databases - If the database has a changing workload. Maybe it is still growing, or maybe new features are being added to the application. The DISK_RESERVED_SPACE should be set at 5-10% larger than RECOVERY_WINDOW_SPACE + Include a percentage for growth. This should be reviewed monthly (at a minimum) OR if a big growth spurt is planned.
- Databases with Peaks - For some business, there may be databases that have peaks. Maybe they support "Black Friday", or maybe they support huge sales around the superbowl. The DISK_RESERVED_SPACE should be 5-10% larger than the RECOVERY_WINDOW_SPACE needed during this peak. This will ensure that the space is available when the peak comes.
- TDE databases - when a database migrates to TDE, there is a time period where storage is needed for the Pre-TDE backup, and the Post-TDE backup. You need to adjust the DISK_RESERVED_SPACE to take this into account. NOTE: Staggering the migration when you migrate to TDE can avoid running out of DISK_RESERVED_SPACE for all databases.
- Databases with ILM - if you have databases performing ILM activities this affects backup space needed. A simple example would be a database whose historical data is moved to an HCC tablespace when it becomes inactive. Space needs to be reserved in DISK_RESERVED_SPACE to hold the old structure, the new structure, and the archive logs created during this change.
No comments:
Post a Comment