Re: filesystem corruption

2014-11-04 Thread Duncan
Zygo Blaxell posted on Mon, 03 Nov 2014 23:31:45 -0500 as excerpted: On Mon, Nov 03, 2014 at 10:11:18AM -0700, Chris Murphy wrote: On Nov 2, 2014, at 8:43 PM, Zygo Blaxell zblax...@furryterror.org wrote: btrfs seems to assume the data is correct on both disks (the generation numbers and

Re: [PATCH] Btrfs: don't take the chunk_mutex/dev_list mutex in statfs V2

2014-11-04 Thread Miao Xie
On Mon, 3 Nov 2014 08:56:50 -0500, Josef Bacik wrote: Our gluster boxes get several thousand statfs() calls per second, which begins to suck hardcore with all of the lock contention on the chunk mutex and dev list mutex. We don't really need to hold these things, if we have transient

BTRFS Quota Display Tool

2014-11-04 Thread stephan008
Hello I looking for a web based tool for displaying quotas for btrfs volumes. Something which get's it's data from btrfsQuota.py and displays nice bars on a webfrontend so we can see how much space a user is consuming right now. Although btrfs is not supporting per user based quotas, we made

Re: Kernel crash during btrfs device delete on raid6 volume

2014-11-04 Thread Chris Mason
On Tue, Nov 4, 2014 at 9:36 AM, Erik Berg bt...@slipsprogrammoer.no wrote: Pulled the latest btrfs-progs from kdave (v3.17-12-gcafacda) and using the latest linux release candidate (3.18.0-031800rc3-generic) from canonical/ubuntu btrfs fi show Label: none uuid:

Re: Kernel crash during btrfs device delete on raid6 volume

2014-11-04 Thread Chris Mason
On Tue, Nov 4, 2014 at 9:55 AM, Chris Mason c...@fb.com wrote: On Tue, Nov 4, 2014 at 9:36 AM, Erik Berg bt...@slipsprogrammoer.no wrote: Pulled the latest btrfs-progs from kdave (v3.17-12-gcafacda) and using the latest linux release candidate (3.18.0-031800rc3-generic) from canonical/ubuntu

[PATCH] btrfs-progs: use the correct SI prefixes

2014-11-04 Thread David Sterba
The SI standard defines lowercase 'k' and uppercase for the rest. Signed-off-by: David Sterba dste...@suse.cz --- Documentation/btrfs-filesystem.txt | 6 +++--- cmds-filesystem.c | 8 utils.c| 2 +- 3 files changed, 8 insertions(+), 8

Re: filesystem corruption

2014-11-04 Thread Chris Murphy
On Nov 3, 2014, at 9:31 PM, Zygo Blaxell zblax...@furryterror.org wrote: On Mon, Nov 03, 2014 at 10:11:18AM -0700, Chris Murphy wrote: On Nov 2, 2014, at 8:43 PM, Zygo Blaxell zblax...@furryterror.org wrote: btrfs seems to assume the data is correct on both disks (the generation numbers

Re: btrfs deduplication and linux cache management

2014-11-04 Thread Zygo Blaxell
On Mon, Nov 03, 2014 at 03:09:11PM +0100, LuVar wrote: Thanks for nice and replicate at home yourself example. On my machine it is behaving precisely like in your: code root@blackdawn:/home/luvar# sync; sysctl vm.drop_caches=1 vm.drop_caches = 1 root@blackdawn:/home/luvar# time cat

Re: filesystem corruption

2014-11-04 Thread Duncan
Chris Murphy posted on Tue, 04 Nov 2014 11:28:39 -0700 as excerpted: It needs to be more than a sequential number. If one of the disks disappears we need to record this fact on the surviving disks, and also cope with _both_ disks claiming to be the surviving one. I agree this is also a

Re: [PATCH 03/11] Btrfs-progs: allow fsck to take the tree bytenr

2014-11-04 Thread Ansgar Hockmann-Stolle
Josef Bacik jbacik at fb.com writes: Sometimes we have a pretty corrupted fs but have an old tree bytenr that we could use, add the ability to specify the tree root bytenr. Thanks, Signed-off-by: Josef Bacik jbacik at fb.com Tested-by: Ansgar Hockmann-Stolle ansgar.hockmann-stolle at

Re: filesystem corruption

2014-11-04 Thread Robert White
On 11/04/2014 10:28 AM, Chris Murphy wrote: On Nov 3, 2014, at 9:31 PM, Zygo Blaxell zblax...@furryterror.org wrote: Now we have two disks with equal generation numbers. Generations 6..9 on sda are not the same as generations 6..9 on sdb, so if we mix the two disks' metadata we get bad

Re: filesystem corruption

2014-11-04 Thread Zygo Blaxell
On Tue, Nov 04, 2014 at 11:28:39AM -0700, Chris Murphy wrote: On Nov 3, 2014, at 9:31 PM, Zygo Blaxell zblax...@furryterror.org wrote: It needs to be more than a sequential number. If one of the disks disappears we need to record this fact on the surviving disks, and also cope with _both_

[SOLVED] btrfs unmountable: read block failed check_tree_block; Couldn't read tree root

2014-11-04 Thread Ansgar Hockmann-Stolle
For solution see http://article.gmane.org/gmane.comp.file-systems.btrfs/39974 Am 28.10.14 um 00:03 schrieb Ansgar Hockmann-Stolle: Am 27.10.14 um 14:23 schrieb Ansgar Hockmann-Stolle: Hi! My btrfs system partition went readonly. After reboot it doesnt mount anymore. System was openSUSE 13.1

Re: Kernel crash during btrfs device delete on raid6 volume

2014-11-04 Thread Mark Fasheh
On Tue, Nov 04, 2014 at 10:58:48AM -0500, Chris Mason wrote: Not a new bug unfortunately, but since it is in the error handling people must not be hitting it often. It's also not related to device replace. while (ret 0 !list_empty(tmplist)) { sums =