Re: Unocorrectable errors with RAID1

2017-01-17 Thread Christoph Groth
Goldwyn Rodrigues wrote: As Chris mentioned, try a later version. If you are familiar with git, you could even try the devel version. Looking at the commits in current devel (2f4a73f9a612876116) since v4.9, there doesn't seem to be anything relevant, but I can retry, if you think it's

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Christoph Groth
Chris Murphy wrote: On Tue, Jan 17, 2017 at 1:25 PM, Christoph Groth wrote: Any ideas on what could be done? If you need help to debug the problem with btrfs-image, please tell me what I should do. I can keep the broken file system around until an image can be

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Goldwyn Rodrigues
On 01/17/2017 02:25 PM, Christoph Groth wrote: > Goldwyn Rodrigues wrote: >> On 01/17/2017 02:44 AM, Christoph Groth wrote: >>> Goldwyn Rodrigues wrote: >>> Would you be able to upload a btrfs-image for me to examine. This is a core ctree error where most probably item size is

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Chris Murphy
On Tue, Jan 17, 2017 at 1:25 PM, Christoph Groth wrote: > Goldwyn Rodrigues wrote: >> >> On 01/17/2017 02:44 AM, Christoph Groth wrote: >>> >>> Goldwyn Rodrigues wrote: >>> Would you be able to upload a btrfs-image for me to examine. This is a core ctree error

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Christoph Groth
Goldwyn Rodrigues wrote: On 01/17/2017 02:44 AM, Christoph Groth wrote: Goldwyn Rodrigues wrote: Would you be able to upload a btrfs-image for me to examine. This is a core ctree error where most probably item size is incorrectly registered. Sure, I can do that. I'd like to use the -s

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Austin S. Hemmelgarn
On 2017-01-17 04:18, Christoph Groth wrote: Austin S. Hemmelgarn wrote: There's not really much in the way of great documentation that I know of. I can however cover the basics here: (...) Thanks for this explanation. I'm sure it will be also useful to others. Glad I could help. If

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Austin S. Hemmelgarn
On 2017-01-16 23:50, Janos Toth F. wrote: BTRFS uses a 2 level allocation system. At the higher level, you have chunks. These are just big blocks of space on the disk that get used for only one type of lower level allocation (Data, Metadata, or System). Data chunks are normally 1GB, Metadata

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Goldwyn Rodrigues
On 01/17/2017 02:44 AM, Christoph Groth wrote: > Goldwyn Rodrigues wrote: > >> Would you be able to upload a btrfs-image for me to examine. This is a >> core ctree error where most probably item size is incorrectly registered. > > Sure, I can do that. I'd like to use the -s option, will this

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Christoph Groth
Austin S. Hemmelgarn wrote: There's not really much in the way of great documentation that I know of. I can however cover the basics here: (...) Thanks for this explanation. I'm sure it will be also useful to others. If the chunk to be allocated was a data chunk, you get -ENOSPC

Re: Unocorrectable errors with RAID1

2017-01-17 Thread Christoph Groth
Goldwyn Rodrigues wrote: Would you be able to upload a btrfs-image for me to examine. This is a core ctree error where most probably item size is incorrectly registered. Sure, I can do that. I'd like to use the -s option, will this be fine? Is there some preferred place for the upload?

Re: Unocorrectable errors with RAID1

2017-01-16 Thread Janos Toth F.
> BTRFS uses a 2 level allocation system. At the higher level, you have > chunks. These are just big blocks of space on the disk that get used for > only one type of lower level allocation (Data, Metadata, or System). Data > chunks are normally 1GB, Metadata 256MB, and System depends on the

Re: Unocorrectable errors with RAID1

2017-01-16 Thread Goldwyn Rodrigues
On 01/16/2017 05:10 AM, Christoph Groth wrote: > Hi, > > I’ve been using a btrfs RAID1 of two hard disks since early 2012 on my > home server. The machine has been working well overall, but recently > some problems with the file system surfaced. Since I do have backups, I > do not worry about

Re: Unocorrectable errors with RAID1

2017-01-16 Thread Austin S. Hemmelgarn
On 2017-01-16 10:42, Christoph Groth wrote: Austin S. Hemmelgarn wrote: On 2017-01-16 06:10, Christoph Groth wrote: root@mim:~# btrfs fi df / Data, RAID1: total=417.00GiB, used=344.62GiB Data, single: total=8.00MiB, used=0.00B System, RAID1: total=40.00MiB, used=68.00KiB System, single:

Re: Unocorrectable errors with RAID1

2017-01-16 Thread Christoph Groth
Austin S. Hemmelgarn wrote: On 2017-01-16 06:10, Christoph Groth wrote: root@mim:~# btrfs fi df / Data, RAID1: total=417.00GiB, used=344.62GiB Data, single: total=8.00MiB, used=0.00B System, RAID1: total=40.00MiB, used=68.00KiB System, single: total=4.00MiB, used=0.00B Metadata, RAID1:

Re: Unocorrectable errors with RAID1

2017-01-16 Thread Austin S. Hemmelgarn
On 2017-01-16 06:10, Christoph Groth wrote: Hi, I’ve been using a btrfs RAID1 of two hard disks since early 2012 on my home server. The machine has been working well overall, but recently some problems with the file system surfaced. Since I do have backups, I do not worry about the data, but

Unocorrectable errors with RAID1

2017-01-16 Thread Christoph Groth
Hi, I’ve been using a btrfs RAID1 of two hard disks since early 2012 on my home server. The machine has been working well overall, but recently some problems with the file system surfaced. Since I do have backups, I do not worry about the data, but I post here to better understand what