Test database creation with SAN / NAS snapshots
Any organization using databases needs many copies of the live database for development, training, beta and performance testing. As a DBA a considerable amount of time can be spent on provisioning these databases. For the organization it often means that large parts of a SAN or NAS storage array are taken up by storing all the copies. Traditionally a DBA might make backups of the live database to tape and when asked for a test database restore the backup from tape to a different host.
However the current snapshot technology in many storage arrays offers an effective way to save a lot of space and time in this provisioning process. A snapshot can be described as a virtual copy of a logical source volume. Behind the scenes the storage array lets the snapshot point to the same disk blocks as the source volume for reading of the blocks. Only when either the source volume or the snapshot data changes the storage array writes the values that the snapshot needs to see to a separate place on disk. This way the storage array maintains a consistent view of a whole volume using up much less disk space. The amount of disk space saved depends of course on the amount of changes applications make against the source volume and snapshot. For databases it is on average true that the changes aren’t many relative to the size of the database.
Saving disk space
The advantage here is clear. We can save a lot of disk space by using snapshots rather than full copies of a database. Suppose you have a Live database of 200 Gb and need ten copies of that live database. You could spend nearly 2 TeraByte on that (10* 200 Gb). If you use snapshots and reserve 20% of diskspace for each copy to allow for database changes you will use:
(200Gb + ((0.2 * 200Gb) *10)) = 600 Gb
That means a 1.4 Terabyte saving.
Saving time
The other advantage of using snapshots is in saved time. Creating a snapshot is usually a matter of seconds or perhaps a few manual actions in the GUI to the storage array. Restoring a backup of 200 Gb in the traditional way from tape can take up to half a day or more. And you’ll have to repeat that for every copy needed again.
In summary, I think snapshots put less pressure on your disk space management and allows you to provision databases faster so that developers and testers can get on with their jobs faster.

