Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-18 Thread Chandan Rajendra
On Wednesday 16 Jul 2014 12:07:10 Qu Wenruo wrote: +/* Find the path for given subvol_objectid. + * Caller needs to readlock the root tree and kzalloc PATH_MAX for + * subvol_name and namebuf */ +static char *find_subvol_by_id(struct btrfs_root *root, u64 subvol_objectid) +{ + struct

Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-18 Thread Qu Wenruo
Original Message Subject: Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given. From: Chandan Rajendra chan...@linux.vnet.ibm.com To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2014年07月18日 14:25 On Wednesday 16 Jul 2014 12:07:10 Qu Wenruo wrote:

Re: Questions on incremental backups

2014-07-18 Thread Bob Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/07/14 05:35, Russell Coker wrote: Daily snapshots work welk with kernel 3.14 and above (I had problems with 3.13 and previous). I have snapshots every 15 mins on some subvols. Very large numbers of snapshots can cause performance problems.

Re: BTRFS hang with 3.16-rc5

2014-07-18 Thread Martin Steigerwald
Am Dienstag, 15. Juli 2014, 09:21:40 schrieb Chris Mason: On 07/14/2014 05:58 PM, Martin Steigerwald wrote: Am Montag, 14. Juli 2014, 16:12:22 schrieb Chris Mason: On 07/14/2014 11:10 AM, Martin Steigerwald wrote: Am Montag, 14. Juli 2014, 17:04:22 schrieben Sie: Hi! While with

[BUG] Quota Ignored On write problem still exist with 3.16-rc5

2014-07-18 Thread Satoru Takeuchi
Hi Josef, Chris, I found Quota Ignored On write problem still exist with 3.16-rc5, which Kevin reported before. Kevin's report: https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg35292.html The result of bisect: https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg35304.html I

Re: Assertion `!(exist-nmirrors = 2)' failed

2014-07-18 Thread Karl-Philipp Richter
Hi Gui, I'm getting back at this a bit late, but I could now run `btrfsck --repair` with btrfs-progs 24cf4d8c3ee924b474f68514e0167cc2e602a48d on Linux 3.16-rc5 in an Oracle VirtualBox VM with Ubuntu 14.04. It doesn't suceed yet, but at least I'm not getting immediate errors. Best regards, Karl

Re: [BUG] Quota Ignored On write problem still exist with 3.16-rc5

2014-07-18 Thread Wang Shilong
On 07/18/2014 04:45 PM, Satoru Takeuchi wrote: Hi Josef, Chris, I found Quota Ignored On write problem still exist with 3.16-rc5, which Kevin reported before. Kevin's report: https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg35292.html The result of bisect:

Re: Questions on incremental backups

2014-07-18 Thread Duncan
Russell Coker posted on Fri, 18 Jul 2014 14:35:20 +1000 as excerpted: Daily snapshots work welk with kernel 3.14 and above (I had problems with 3.13 and previous). I have snapshots every 15 mins on some subvols. Very large numbers of snapshots can cause performance problems. I suggest

Re: Questions on incremental backups

2014-07-18 Thread Roman Mamedov
On Fri, 18 Jul 2014 10:45:37 + (UTC) Duncan 1i5t5.dun...@cox.net wrote: Russell Coker posted on Fri, 18 Jul 2014 14:35:20 +1000 as excerpted: Daily snapshots work welk with kernel 3.14 and above (I had problems with 3.13 and previous). I have snapshots every 15 mins on some subvols.

`btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb-flags 1)' failed.` in `btrfsck`

2014-07-18 Thread Karl-Philipp Richter
Hi together, I'm experiencing the following issues when I invoke `btrfsck` on a sparse file image with a GPT and one (the only) btrfs partition attached to a loop device $ sudo btrfsck --repair --init-csum-tree --init-extent-tree -b /dev/loop0p1 Incorrect local backref count on

Re: `btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb-flags 1)' failed.` in `btrfsck`

2014-07-18 Thread Wang Shilong
Hi, There are some patches for fsck flighting, they are integrated in David's branches. You can pull from David's latest branch, and see if it helps: https://github.com/kdave/btrfs-progs integration-20140704 Have a try and see if it helps anyway. Thanks, Wang Hi together, I'm

Re: Questions on incremental backups

2014-07-18 Thread Sam Bull
Thanks for the replies, I think that's most of the questions answered. I'll not bother backing up any VMs, as they won't contain anything worth backing up. Can anybody answer the last couple of remaining questions? On ven, 2014-07-18 at 14:35 +1000, Russell Coker wrote: Ignoring directories in

Re: Questions on incremental backups

2014-07-18 Thread Roman Mamedov
On Fri, 18 Jul 2014 05:34:22 -0700 Duncan 1i5t5.dun...@cox.net wrote: Effectively, admins can choose NOCOW XOR frequent-snapshotting, altho the fact that snapshots stop at subvolume borders can be used as a partial workaround, by putting NOCOW files on a dedicated partition and not

Re: BTRFS hang with 3.16-rc5

2014-07-18 Thread Chris Mason
On 07/18/2014 03:51 AM, Martin Steigerwald wrote: Am Dienstag, 15. Juli 2014, 09:21:40 schrieb Chris Mason: On 07/14/2014 05:58 PM, Martin Steigerwald wrote: Am Montag, 14. Juli 2014, 16:12:22 schrieb Chris Mason: On 07/14/2014 11:10 AM, Martin Steigerwald wrote: Am Montag, 14. Juli 2014,

Re: Questions on incremental backups

2014-07-18 Thread Russell Coker
On Fri, 18 Jul 2014 13:56:58 Sam Bull wrote: On ven, 2014-07-18 at 14:35 +1000, Russell Coker wrote: Ignoring directories in send/recv is done by subvol. Even if you use rsync it's a good idea to have different subvols for directory trees with different backup requirements. So, an inner

Re: Questions on incremental backups

2014-07-18 Thread Duncan
On Fri, 18 Jul 2014 16:55:26 +0600 Roman Mamedov r...@romanrm.net wrote: On Fri, 18 Jul 2014 10:45:37 + (UTC) Duncan 1i5t5.dun...@cox.net wrote: Russell Coker posted on Fri, 18 Jul 2014 14:35:20 +1000 as excerpted: Daily snapshots work welk with kernel 3.14 and above (I had

Re: Questions on incremental backups

2014-07-18 Thread Mike Hartman
And, finally, nobody has mentioned on the possibility of merging multiple snapshots into a single snapshot. Would this be possible, to create a snapshot that contains the most recent version of each file present across all of the snapshots (including files which may be present in only one of

Re: Questions on incremental backups

2014-07-18 Thread Imran Geriskovan
It's not about snapshots but here is an other incremental backup recipe for optical mediums like DVDs, BlueRays: Base Backup: 1) Create encrypted loopback devices of DVD or BlueRay sizes. 2) Create a compressed multi device Btrfs spanning these loopback devices. (To save space, you may use

Re: Questions on incremental backups

2014-07-18 Thread Daniel Mizyrycki
On 07/18/14 06:40, Russell Coker wrote: Displaying backups is an issue of backup software. It is above the level that BTRFS development touches. While people here can probably offer generic advice on backup software it's not the topic of the list. As said, I don't mind developing the

Re: Blocked tasks on 3.15.1, raid1 btrfs is no ends of trouble for me

2014-07-18 Thread Marc MERLIN
On Thu, Jul 17, 2014 at 09:18:07AM -0400, Chris Mason wrote: [ deadlocks during rsync in 3.15 with compression enabled ] Hi everyone, I still haven't been able to reproduce this one here, but I'm going through a series of tests with lzo compression foraced and every operation forced to

Re: Blocked tasks on 3.15.1, raid1 btrfs is no ends of trouble for me

2014-07-18 Thread Marc MERLIN
On Fri, Jul 18, 2014 at 05:33:45PM -0700, Marc MERLIN wrote: Howver, I have found that btrfs raid 1 on top of dmcrypt has given me no ends of trouble. I lost that filesystem twice due to corruption, and now it hangs my machine (strace finds that df is hanging on that partition).

Re: Blocked tasks on 3.15.1, raid1 btrfs is no ends of trouble for me

2014-07-18 Thread Marc MERLIN
TL;DR: 3.15.5 (or .1 when I tried it) just hang over and over again in multiple ways on my server. They also hang on my laptop reliably if I enable kmemleak, but otherwise my laptop mostly survives with 3.15.x without kmemleak (although it does deadlock eventually, but that could be after

Re: Blocked tasks on 3.15.1, raid1 btrfs is no ends of trouble for me

2014-07-18 Thread Chris Samuel
On Fri, 18 Jul 2014 05:44:57 PM Marc MERLIN wrote: Sorry, this may be a bit misleading. I actually lost 2 filesystems that were raid0 on top of dmcrypt. Stupid question I know, but does this happen without dmcrypt? cheers, Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC

Re: Blocked tasks on 3.15.1, raid1 btrfs is no ends of trouble for me

2014-07-18 Thread Marc MERLIN
On Sat, Jul 19, 2014 at 11:59:24AM +1000, Chris Samuel wrote: On Fri, 18 Jul 2014 05:44:57 PM Marc MERLIN wrote: Sorry, this may be a bit misleading. I actually lost 2 filesystems that were raid0 on top of dmcrypt. Stupid question I know, but does this happen without dmcrypt? It's not a