On Wed, 23 Feb 2011, Jonathan Tripathy wrote: > > Zeroing c1_s1 first, then c1_s1_snap0-cow would zero everything, > Thanks for the explanation. But what if I don't want to zero everything? I > only want to return everything back to the state it was before I created the > snapshot. So you're not worried about the security implication of leftovers in free space, and just want a base image to clone for new customers? The logical thing to do is to keep the origin volume untouched (except for upgrading now and then), and take a snapshot for each customer. Each snapshot would then be a new clone of the origin. Unfortunately, large numbers of snapshots are inefficient for writes to new data, so you'd likely have to "dd" to an independent LV instead. (This is being worked on, and there are 3rd party products like Zumastor that fix it now.) Or maybe you want to *revert* the origin back to the state saved in a snapshot. A specific revert command is in the works, but to do it manually, unmount the origin, and copy the snapshot over the *-real hidden LV, then remove the snapshot. This does unncessary copying of unchanged blocks, but requires only one copy, and doesn't copy each write back to the cow table. -- Stuart D. Gathman <stuart@bmsi.com> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial. _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/