Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p35KmSZ2015775 for ; Tue, 5 Apr 2011 16:48:28 -0400 Received: from abpni.co.uk (host-92-27-106-173.static.as13285.net [92.27.106.173] (may be forged)) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p35KmMnV015817 for ; Tue, 5 Apr 2011 16:48:23 -0400 Message-ID: <4D9B8015.2060503@abpni.co.uk> Date: Tue, 05 Apr 2011 21:48:21 +0100 From: Jonathan Tripathy MIME-Version: 1.0 References: <4D64FF3C.6080602@abpni.co.uk> <20110223101259.77143753@bettercgi.com> <4D653BEF.5010600@abpni.co.uk> <4D654FBD.8030504@abpni.co.uk> <4D655459.6050806@gmail.com> <4D656817.6060900@gmail.com> <4D6572C0.6070008@abpni.co.uk> <4D65A1A9.1040205@abpni.co.uk> <4D65A839.50107@abpni.co.uk> <4D65A8F5.8040606@abpni.co.uk> <4D6609E4.10800@abpni.co.uk> <4D6671D7.7020301@abpni.co.uk> <4D667743.3010102@abpni.co.uk> <4D9B7715.7090509@abpni.co.uk> In-Reply-To: Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] Snapshots and disk re-use Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: LVM general discussion and development On 05/04/2011 21:41, Stuart D. Gathman wrote: > On Tue, 5 Apr 2011, Jonathan Tripathy wrote: > >>> Hopefully an expert will let me know weather its safe to zero the >>> COW after I?ve finished with the snapshot. >> Are any "experts" available to help me answer the above question? I >> feel that this is a really important issue for those of us in the >> hosting industry. >> >> Just to sum up my question: when a customer leaves our service, we >> zero their drive before removing the LV. This hopefully ensures that >> there is no data "leakage" when we create a new LV for a new >> customer. However, we need to take into consideration about what >> happens when we create snapshots of LVs to perform backups (using >> rsync). >> >> Any help would be appreciated. > > At this point, we'll just have to try it on a non-production server. > Hopefully, worst case the kernel crashes. I run Fedora (14 currently) > and CentOS-5.5. My guess as an amateur is that zeroing the COW while > the origin is open is a problem. I would suggest this for backup: > > 1) make snapshot > 2) make backup > 3) pause VM (check that this closes the origin LV, if not save the VM) > 4) with both origin and snapshot not active, zero COW > 5) remove snapshot > 6) unpause VM (or restore if saved) > > -- > Stuart D. Gathman > 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/ Yeah, I'll have to try this on a non-production server. Which kernel do you expect to crash? The Dom0 (Xen + LVM host) or the VM? Anyway, just thinking about it, it seems that pausing/saving/shutting down the VM is a must, as the VM may be writing to disk at the time of zeroing the cow (!!). In the hosting industy, what does everyone else do? Do they just ignore the issue???