Re: [regression] [v3.14] btrfs hangs while reading some files

2014-05-11 Thread Ronald
Forgot to mention that these btrfs partitions reside on an LVM. 2014-05-11 7:56 GMT+02:00 Ronald ronald...@gmail.com: Dear btrfs developers, Since v3.14, it has occasionally hapenned that reading some files from a btrfs partition cause the process to hang. Right, a file has been located that

RAID10 across different sized disks shows data layout as single not RAID10

2014-05-11 Thread brett . king
Hi, I created a RAID10 array of 4x 4TB disks and later added another 4x 3TB disks, expecting the result to be the same level of fault tolerance however with simply more capacity. Recently I noticed the output of 'btrfs fi df' lists the Data layout as 'single' and not RAID10 per my initial

Re: known UUID and metadata consistency

2014-05-11 Thread Hugo Mills
On Sun, May 11, 2014 at 02:16:27PM +1000, Russell Coker wrote: One of the problems with ReiserFS was that a fsck --rebuild-tree would look through all the disk contents for blocks that appeared to be metadata. A hostile user could create a file in their home directory (or /tmp or anywhere

Re: RAID10 across different sized disks shows data layout as single not RAID10

2014-05-11 Thread Hugo Mills
On Sun, May 11, 2014 at 05:53:40PM +1000, brett.k...@commandict.com.au wrote: Hi, I created a RAID10 array of 4x 4TB disks and later added another 4x 3TB disks, expecting the result to be the same level of fault tolerance however with simply more capacity. Recently I noticed the output of

-musage=0 means always reporting relocation

2014-05-11 Thread Russell Coker
Below is the output of running a balance a few times on a 120G SSD. It seems that whenever I set the metadata usage to be greater than 0 it will report relocating something, regardless of whether that's possible. root@server:~# btrfs fi balance start -dusage=0 -musage=0 / Done, had to relocate

Re: -musage=0 means always reporting relocation

2014-05-11 Thread Russell Coker
On Sun, 11 May 2014, Russell Coker russ...@coker.com.au wrote: Below is the output of running a balance a few times on a 120G SSD. Sorry forgot to mention that's kernel 3.14.1 Debian package. -- My Main Blog http://etbe.coker.com.au/ My Documents Bloghttp://doc.coker.com.au/ -- To

Re: bug oops using device delete with seed device

2014-05-11 Thread Liu Bo
Hi Chris, Thanks for the report, I've figured it out and will send a fix. This bug is caused by the part of cleanup code of commit cb517eabba4f109810dba2e5f37b0dcf22103065(Btrfs: cleanup the similar code of the fs root read) thanks, -liubo On Sat, May 10, 2014 at 08:08:28PM -0600, Chris

Re: RAID10 across different sized disks shows data layout as single not RAID10

2014-05-11 Thread brett . king
-Original Message- From: Hugo Mills h...@carfax.org.uk To: brett.k...@commandict.com.au Cc: linux-btrfs@vger.kernel.org Sent: Sun, 11 May 2014 7:25 PM Subject: Re: RAID10 across different sized disks shows data layout as single not RAID10 On Sun, May 11, 2014 at 05:53:40PM +1000,

Re: btrfs cleaner failure - fs/btrfs/extent-tree.c:5748 (3.14.0)

2014-05-11 Thread Marc MERLIN
First, my apologies for the broken threads, I had one message where I updated the subject line, but it got cut in two and sent part of the headers in the body :( (operator mistake, sorry) On Sun, May 11, 2014 at 02:28:23AM +, Duncan wrote: That's a fair point but I run scrub every day with

Re: destroyed disk in btrfs raid

2014-05-11 Thread laie
On 2014-05-09 20:01, Hugo Mills wrote: On Fri, May 09, 2014 at 06:58:27PM +0100, Hugo Mills wrote: On Fri, May 09, 2014 at 08:02:45PM +0200, laie wrote: Now I'm looking for a way to tell btrfs to provide me with a list of the corrupted files and delete them afterwards. This would be great,

Re: -musage=0 means always reporting relocation

2014-05-11 Thread Brendan Hide
On 2014/05/11 11:52 AM, Russell Coker wrote: On Sun, 11 May 2014, Russell Coker russ...@coker.com.au wrote: Below is the output of running a balance a few times on a 120G SSD. Sorry forgot to mention that's kernel 3.14.1 Debian package. Please send the output of the two following command:

Re: destroyed disk in btrfs raid

2014-05-11 Thread Hugo Mills
On Tue, May 13, 2014 at 10:16:59AM +0200, laie wrote: On 2014-05-09 20:01, Hugo Mills wrote: On Fri, May 09, 2014 at 06:58:27PM +0100, Hugo Mills wrote: On Fri, May 09, 2014 at 08:02:45PM +0200, laie wrote: Now I'm looking for a way to tell btrfs to provide me with a list of the corrupted

[PATCH] Btrfs: fix NULL pointer crash of deleting a seed device

2014-05-11 Thread Liu Bo
Same as normal devices, seed devices should be initialized with fs_info-dev_root as well, otherwise we'll get a NULL pointer crash. Cc: Chris Murphy li...@colorremedies.com Reported-by: Chris Murphy li...@colorremedies.com Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/volumes.c | 12

Re: -musage=0 means always reporting relocation

2014-05-11 Thread Duncan
Russell Coker posted on Sun, 11 May 2014 19:43:16 +1000 as excerpted: Below is the output of running a balance a few times on a 120G SSD. It seems that whenever I set the metadata usage to be greater than 0 it will report relocating something, regardless of whether that's possible. Why

[PATCH] btrfs-progs: Remove unneeded assert in find_good_parent().

2014-05-11 Thread Qu Wenruo
find_good_parent() uses assert to deal with the problem that clone source's parent can't be found. But in fact the assert is somewhat overkilled since subvol_uuid_search() has enough error messages for debug and caller of find_good_parent() can handle the problems in find_good_parent(), so the

Re: bug adding device to seed device, btrfs fi show fails

2014-05-11 Thread Anand Jain
This patch posted a long time back should fix it. http://permalink.gmane.org/gmane.comp.file-systems.btrfs/33276 Could you test it ? Thanks, Anand On 05/11/2014 09:51 AM, Chris Murphy wrote: kernel 3.15.0-0.rc5.git0.1.fc21.x86_64 btrfs-progs 3.14 /dev/sdb2 = existing btrfs fs /dev/sdc3 =

Re: Balance performance problem with 3.14.1

2014-05-11 Thread Russell Coker
On Fri, 9 May 2014, Josef Bacik jba...@fb.com wrote: On 05/08/2014 05:50 AM, Russell Coker wrote: I've got a server/workstation (KDE desktop and file server) running kernel 3.14.1 from the Debian package 3.14-trunk-amd64. It was running well until I decided to do a full balance of the

Re: [PATCH] Btrfs: remove OPT_acl parse when acl disabled

2014-05-11 Thread Guangliang Zhao
On Fri, May 09, 2014 at 03:21:09PM +0200, David Sterba wrote: On Thu, May 08, 2014 at 12:56:32PM +0800, Guangliang Zhao wrote: Even CONFIG_BTRFS_FS_POSIX_ACL is not defined, the acl still could been enabled using a mount option, and now fs/btrfs/acl.o is not built, so the mount options will

[PATCH v2] Btrfs: remove OPT_acl parse when acl disabled

2014-05-11 Thread Guangliang Zhao
Even CONFIG_BTRFS_FS_POSIX_ACL is not defined, the acl still could been enabled using a mount option, and now fs/btrfs/acl.o is not built, so the mount options will appear to be supported but will be silently ignored. Signed-off-by: Guangliang Zhao lucienc...@gmail.com Reviewed-by: David Sterba

[PATCH] Btrfs: mark mapping with error flag to report errors to userspace

2014-05-11 Thread Liu Bo
According to commit 865ffef3797da2cac85b3354b5b6050dc9660978 (fs: fix fsync() error reporting), it's not stable to just check error pages because pages can be truncated or invalidated, we should also mark mapping with error flag so that a later fsync can catch the error. Signed-off-by: Liu Bo