Re: btrfs deadlock (3.14 kernel)

2014-03-22 Thread Marc MERLIN
On Fri, Mar 21, 2014 at 05:51:23PM -0700, Marc MERLIN wrote: On Fri, Mar 21, 2014 at 02:24:45PM -0400, Josef Bacik wrote: Is thre anything I can try to unwedge or prevent this problem next time I try? Sysrq+w would be nice so I can see what everybody is doing. Thanks, Sure thing.

Re: fresh btrfs filesystem, out of disk space, hundreds of gigs free

2014-03-22 Thread Duncan
Jon Nelson posted on Fri, 21 Mar 2014 19:00:51 -0500 as excerpted: Using openSUSE 13.1 on x86_64 which - as of this writing - is 3.11.10, Would a more recent kernel than 3.11 have done me any good? [Reordered the kernel question from below to here, where you reported the running version.] As

[PATCH v2] Btrfs: send, account for orphan directories when building path strings

2014-03-22 Thread Filipe David Borba Manana
If we have directories with a pending move/rename operation, we must take into account any orphan directories that got created before executing the pending move/rename. Those orphan directories are directories with an inode number higher then the current send progress and that don't exist in the

[PATCH] Btrfs: send, remove dead code from __get_cur_name_and_parent

2014-03-22 Thread Filipe David Borba Manana
Signed-off-by: Filipe David Borba Manana fdman...@gmail.com --- fs/btrfs/send.c |6 -- 1 file changed, 6 deletions(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 6a1a343..2952889 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -2004,7 +2004,6 @@ static int

free space inode generation (0) did not match free space cache generation

2014-03-22 Thread Hendrik Friedel
Hello, I have a file-system on which I cannot write anymore (no space left on device, which is not true root@homeserver:~/btrfs/integration/devel# df -h DateisystemGröße Benutzt Verf. Verw% Eingehängt auf /dev/sdd230G 24G 5,1G 83% /mnt/test1 ) About the filesystem:

Re: free space inode generation (0) did not match free space cache generation

2014-03-22 Thread Duncan
Hendrik Friedel posted on Sat, 22 Mar 2014 19:13:48 +0100 as excerpted: I have a file-system on which I cannot write anymore (no space left on device, which is not true root@homeserver:~/btrfs/integration/devel# df -h DateisystemGröße Benutzt Verf. Verw% Eingehängt auf /dev/sdd2

Re: Send/Receive howto and script for others to use (was Re: Is anyone using btrfs send/receive)

2014-03-22 Thread Brendan Hide
On 2014/03/21 07:29 PM, Marc MERLIN wrote: On Wed, Jan 08, 2014 at 12:02:06AM -0800, Marc MERLIN wrote: On Tue, Jan 07, 2014 at 10:53:29AM +, Hugo Mills wrote: You need to move /mnt/btrfs_pool2/tmp_read_only_new to a different name as well. The send stream contains the name of the

Re: Send/Receive howto and script for others to use (was Re: Is anyone using btrfs send/receive)

2014-03-22 Thread Brendan Hide
On 2014/03/22 09:44 PM, Brendan Hide wrote: On 2014/03/21 07:29 PM, Marc MERLIN wrote: Hi, Marc Feel free to use ideas from my own script. Some aspects in my script are more mature and others are frankly pathetic. ;) There are also quite a lot of TODOs throughout my script that aren't

Re: Send/Receive howto and script for others to use (was Re: Is anyone using btrfs send/receive)

2014-03-22 Thread Marc MERLIN
On Sat, Mar 22, 2014 at 09:44:05PM +0200, Brendan Hide wrote: Hi, Marc Feel free to use ideas from my own script. Some aspects in my script are more mature and others are frankly pathetic. ;) There are also quite a lot of TODOs throughout my script that aren't likely to get the urgent

Re: Send/Receive howto and script for others to use (was Re: Is anyone using btrfs send/receive)

2014-03-22 Thread Brendan Hide
On 2014/03/22 10:00 PM, Marc MERLIN wrote: On Sat, Mar 22, 2014 at 09:44:05PM +0200, Brendan Hide wrote: Hi, Marc Feel free to use ideas from my own script. Some aspects in my script are more mature and others are frankly pathetic. ;) There are also quite a lot of TODOs throughout my script

btrfs send/receive still gets out of sync in 3.14.0

2014-03-22 Thread Marc MERLIN
After deleting a huge directory tree in my /home subvolume, syncing snapshots now fails with: ERROR: rmdir o1952777-157-0 failed. No such file or directory Error line 156 with status 1 DIE: Code dump: 153 if [[ -n $init ]]; then 154 btrfs send $src_newsnap | $ssh btrfs receive

Re: Send/Receive howto and script for others to use (was Re: Is anyone using btrfs send/receive)

2014-03-22 Thread Marc MERLIN
Please consider adding a blank line between quotes, it makes them just a bit more readable :) On Sat, Mar 22, 2014 at 11:02:24PM +0200, Brendan Hide wrote: - it doesn't create writeable snapshots on the destination in case you want to use the copy as a live filesystem One of the issues with

Re: free space inode generation (0) did not match free space cache generation

2014-03-22 Thread Hendrik Friedel
Hello, thanks for your help, I appreciate your hint. I think (reboot into the system with the fs mounted as root still outstanding), it fixed my problem. I read through the FAQ you mentioned, but I must admit, that I do not fully understand. What I am wondering about is, what caused this

Re: btrfs deadlock (3.14 kernel)

2014-03-22 Thread Marc MERLIN
On Fri, Mar 21, 2014 at 11:47:18PM -0700, Marc MERLIN wrote: On Fri, Mar 21, 2014 at 05:51:23PM -0700, Marc MERLIN wrote: On Fri, Mar 21, 2014 at 02:24:45PM -0400, Josef Bacik wrote: Is thre anything I can try to unwedge or prevent this problem next time I try? Sysrq+w would

Re: fresh btrfs filesystem, out of disk space, hundreds of gigs free

2014-03-22 Thread Andrew Skretvedt
This is just a rave-post to praise Duncan for his excellent post back to Jon! This will surely help a good number of new btrfs users who have the good sense to watch this mailing list. Your exposition on the balance command helped to clarify in my mind exactly why someone might want to use

Re: fresh btrfs filesystem, out of disk space, hundreds of gigs free

2014-03-22 Thread Jon Nelson
Duncan 1i5t5.duncan at cox.net writes: Jon Nelson posted on Fri, 21 Mar 2014 19:00:51 -0500 as excerpted: Using openSUSE 13.1 on x86_64 which - as of this writing - is 3.11.10, Would a more recent kernel than 3.11 have done me any good? [Reordered the kernel question from below to here,

Re: free space inode generation (0) did not match free space cache generation

2014-03-22 Thread Duncan
Hendrik Friedel posted on Sat, 22 Mar 2014 22:16:27 +0100 as excerpted: I read through the FAQ you mentioned, but I must admit, that I do not fully understand. My experience is that it takes a bit of time to soak in. Between time, previous Linux experience, and reading this list for awhile,

Re: fresh btrfs filesystem, out of disk space, hundreds of gigs free

2014-03-22 Thread Hugo Mills
On Sat, Mar 22, 2014 at 06:21:02PM -0500, Jon Nelson wrote: Duncan 1i5t5.duncan at cox.net writes: Jon Nelson posted on Fri, 21 Mar 2014 19:00:51 -0500 as excerpted: [snip] Below are the btrfs fi df / and btrfs fi show. turnip:~ # btrfs fi df / Data, single: total=1.80TiB,