Return-Path: Received: from mail1.bemta8.messagelabs.com ([216.82.243.203]:35663 "EHLO mail1.bemta8.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271AbaIXOlG convert rfc822-to-8bit (ORCPT ); Wed, 24 Sep 2014 10:41:06 -0400 From: Robb Walker To: "linux-btrfs@vger.kernel.org" Subject: lvm thin provisioning snapshots and btrfs Date: Wed, 24 Sep 2014 14:34:45 +0000 Message-ID: <1411569217555.64572@DRWHoldings.com> Content-Type: text/plain; charset=US-ASCII MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org List-ID: Hello all seeing something odd with btrfs and lvm thin-provisioning snapshots. Sent my finding to the lvm list and thought I might post here after some feedback which I have included. Apologies in advance if this is bad form. Please let me know. Hopefully the trail below is not too confusing. Regards and TIA ----original post -- and note I see this on centos 6u5 outlined below and ubuntu 14.04.1 With lvm thin prov + ext4 I get expected results. When I take a snapshot. I see the snapshot is the state of the lvm volume at the point of time of snapshot creation. For btrfs, I am using a root subvolume mounted as @foo_root with a thinly provisioned lvm underneath. Same setup just using btrfs. I take a thin snapshot lvcreate -n lv_root_thin -s vg_thin/lv_root snapshot is created activate with lvchange -Kay /dev/vg_thin/lv_root_thin I then mount the snap with mount -odefaults,subvol=@foo_root /dev/vg_thin/lv_root_thin /snaps The contents match the origin lvm. Both lvms, origin and snap stay in sync with whatever changes I make. At one point I thought that maybe it was snapping at the subv level so I decided a snapshot of the root vol. However the deletion also appeared in the thin snapshot Also couple notes: I never see in lvs that the thin snapshot goes -o- online as I do in ext4 chdir into the /snaps and running df -h . shows that I'm in the snapshot chdir into /snaps/\@foo_root and running df -h . shows I'm in the origin vol.