kernel BUG at fs/btrfs/transaction.c:1222

2012-03-23 Thread Niklas Schnelle
Hi Btrfs-List, me and a friend have been using Btrfs on an Atom based home backup server (Arch Linux) for the past 1 1/2 years or so running on 2 1 TB drives (with a few gigabyte of the first drive used for / so it's a bit below 2 TB) and it has been running quite nicely. However a few days ago w

Re: heterogeneous raid1

2012-03-23 Thread Bob McElrath
Roman Mamedov [r...@romanrm.ru] wrote: > On Fri, 23 Mar 2012 16:49:32 + > Aye, but I consider space used for redundancy to be wasted as well, especially > when the same (or even higher) amount of redundancy can be achieved by > spending > less storage space on it. Point taken. So how's the b

Re: [patch 33/35] btrfs: handle errors when excluding super extents

2012-03-23 Thread David Sterba
On Wed, Mar 21, 2012 at 09:11:37PM -0400, Jeff Mahoney wrote: > --- a/fs/btrfs/extent-tree.c > +++ b/fs/btrfs/extent-tree.c > @@ -250,10 +250,17 @@ static int exclude_super_stripes(struct btrfs_root > *root, > > for (i = 0; i < BTRFS_SUPER_MIRROR_MAX; i++) { > bytenr = btrfs_

Re: [patch 35/35] btrfs: disallow unequal data/metadata blocksize for mixed block groups

2012-03-23 Thread David Sterba
On Thu, Mar 22, 2012 at 05:02:24PM +0100, Stefan Behrens wrote: > > --- a/fs/btrfs/disk-io.c > > +++ b/fs/btrfs/disk-io.c > > @@ -2302,6 +2302,14 @@ int open_ctree(struct super_block *sb, > > goto fail_sb_buffer; > > } > > > > + if ((features & BTRFS_FEATURE_INCOMPAT_MIXED_GROUP

Re: heterogeneous raid1

2012-03-23 Thread Roman Mamedov
On Fri, 23 Mar 2012 16:49:32 + Bob McElrath wrote: > Roman Mamedov [r...@romanrm.ru] wrote: > (can't reliably tolerate an any-two-disks failure even). s/even/event/ > > I suggest that you go with > > http://linuxconfig.org/prouhd-raid-for-the-end-user > > instead. Depending on how many dri

Re: heterogeneous raid1

2012-03-23 Thread Bob McElrath
Roman Mamedov [r...@romanrm.ru] wrote: > On Fri, 23 Mar 2012 06:11:59 + > Bob McElrath wrote: > > > http://superuser.com/questions/387851/a-zfs-or-lvm-or-md-redundant-heterogeneous-storage-proposal/388536 > > > > In a nutshell: organize your heterogenous disks into two "halves", the sum > >

[PATCH 3/3] Btrfs: change scrub to support big blocks

2012-03-23 Thread Stefan Behrens
Scrub used to be coded for nodesize == leafsize == sectorsize == PAGE_SIZE. This is now changed to support sizes for nodesize and leafsize which are N * PAGE_SIZE. Signed-off-by: Stefan Behrens --- fs/btrfs/scrub.c | 1353 -- 1 files changed, 1

[PATCH 2/3] Btrfs: minor cleanup in scrub

2012-03-23 Thread Stefan Behrens
Just a minor cleanup commit in preparation for the big block changes. Signed-off-by: Stefan Behrens --- fs/btrfs/scrub.c | 61 ++--- 1 files changed, 25 insertions(+), 36 deletions(-) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index abc0fb

[PATCH 0/3] Btrfs: change scrub to support big blocks

2012-03-23 Thread Stefan Behrens
Scrub used to be coded for nodesize == leafsize == sectorsize == PAGE_SIZE. This is now changed to support nodesize == leafsize == N * PAGE_SIZE. The "Btrfs: fix scrub statistics report" patch that I sent on 2/10/2012 is also superseeded by this patch. This new patch includes similar functionality

[PATCH 1/3] Btrfs: introduce common define for max number of mirrors

2012-03-23 Thread Stefan Behrens
Readahead already has a define for the max number of mirrors. Scrub needs such a define now, the rest of the code will need something like this soon. Therefore the define was added to ctree.h and removed from the readahead code. Signed-off-by: Stefan Behrens --- fs/btrfs/ctree.h |2 ++ fs/bt

btrfs crash after disk reconnect

2012-03-23 Thread Jan Engelhardt
Observed on Linux 3.2.9 after the controller/disk flaked in-out. (The world still needs a SCSI error decoding tool to tell normal people what cmd and res are about.) [ 157.732885] device label srv devid 4 transid 11292 /dev/sdf [ 157.733201] btrfs: disk space caching is enabled [ 172.936515]

Re: heterogeneous raid1

2012-03-23 Thread Roman Mamedov
On Fri, 23 Mar 2012 06:11:59 + Bob McElrath wrote: > http://superuser.com/questions/387851/a-zfs-or-lvm-or-md-redundant-heterogeneous-storage-proposal/388536 > > In a nutshell: organize your heterogenous disks into two "halves", the sum of > which are of roughly equal size, and create a raid

Re: heterogeneous raid1

2012-03-23 Thread Hugo Mills
On Fri, Mar 23, 2012 at 06:11:59AM +, Bob McElrath wrote: > Greetings butter-heads, > > I would like to implement a redundant (raid1) disk array on heterogeneous > disks > using btrfs. A more detailed description of what I want to do can be found > here: > > http://superuser.com/questions/