Using LVM2 to provide copies of production data for testing

Talk Type: 

90 Minute Mini-tutorial

Technical Level: 
Intermediate
License: 
Public Domain

Developers hate working with test data. It isn't representative of the working dataset. However, providing multiple full copies of production is slow to refresh and consumes lots of disk. This talk will show how you can use LVM2 (the Linux Volume Manager) to produce copies of your production environment without service interruption and with minimal overhead.

Some of the advantages of using the proposed strategy over a plain dump/restore include:

* Nightly refreshes of the copies of prod with mere seconds of dev downtime
* Provide multiple copies using only slightly more than the space of one copy
* Revert a copy back to the nightly refresh almost instantly
* Provide a new copy almost instantly, using almost no additional disk
* No production downtime involved

AttachmentSize
lvm2.odp28.92 KB