From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx11.extmail.prod.ext.phx2.redhat.com [10.5.110.16]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p35KxvsO017717 for ; Tue, 5 Apr 2011 16:59:57 -0400 Received: from mailhost.ankh.org (ammut.ankh.org [93.97.41.159]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p35KxqHW023890 for ; Tue, 5 Apr 2011 16:59:53 -0400 Received: from anubis.ankh.org ([172.22.128.3]) by mailhost.ankh.org with esmtp (Exim 4.63) (envelope-from ) id 1Q7DLr-0006DT-Nf for linux-lvm@redhat.com; Tue, 05 Apr 2011 21:59:51 +0100 Message-ID: <4D9B82C5.3020704@ankh.org> Date: Tue, 05 Apr 2011 20:59:49 +0000 From: James Hawtin MIME-Version: 1.0 References: <4D64FF3C.6080602@abpni.co.uk> <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> <4D9B8015.2060503@abpni.co.uk> In-Reply-To: <4D9B8015.2060503@abpni.co.uk> 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: linux-lvm@redhat.com On 05/04/2011 20:48, Jonathan Tripathy wrote: > > 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??? > > _______________________________________________ > 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/ > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1209 / Virus Database: 1500/3552 - Release Date: 04/05/11 As an alturnative could you not? 1) Create snapshot lv using specific physical extents. lvcreate -s -l 100 ..... /dev/sdx1:0-99 2) Backup VM 3) Delete snapshot lv 4) create a normal lv using same physical extents lvcreate -l 100 ..... /dev/sdx1:0-99 5) zero normal lv 6) delete normal lv James