public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Yan, Zheng " <yanzheng@21cn.com>
To: briaeros007 <briaeros007@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs fsck doesn't modify a thing, and btrfs can not balance any data on a new device
Date: Wed, 27 Jan 2010 17:29:27 +0800	[thread overview]
Message-ID: <3d0408631001270129r6bc0378fqf257971a2fc3a609@mail.gmail.com> (raw)
In-Reply-To: <61bf8f4f1001270112v20983f5eg6119306c693dbef2@mail.gmail.com>

On Wed, Jan 27, 2010 at 5:12 PM, briaeros007 <briaeros007@gmail.com> wr=
ote:
> 2010/1/27 Josef Bacik <josef@redhat.com>:
>> On Tue, Jan 26, 2010 at 10:16:42PM +0100, briaeros007 wrote:
>>> Hello,
>>>
>>> I have a btrfs volume on a two 1TB disk, and i've been trying to ad=
d a
>>> new (1.5 TB) to this volume. I've done btrfsctl -a /dev/sdb /mnt/bt=
rfs
>>> without trouble, and btrfs-show see the third disk.
>>> But I've got segfault when I try to balance the data.
>>> And when a try a fsck, he do absolutely nothing. See the commands
>>> below (and the dmesg)
>>>
>>> So if you have any idea, or want to do any additionnal tests (other
>>> than throwing away data that are on theses disks, since, even if i
>>> know btrfs is under heavy developpment, id'like to keep some data a=
nd
>>> haven't the right device right now to do the transfer).
>>>
>>>
>>> Cordially.
>>>
>>>
>>> <root@oni:/home/alpha>
>>> zsh/3 2 # umount /mnt/btrfs
>>> umount: /mnt/btrfs: not mounted
>>> [mar. 10/01/26 20:07
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 3 [1] # btrfsck /dev/sdb
>>> failed to read /dev/sr0
>>> bad block 2064048422912
>>> bad block 924702326784
>>> leaf parent key incorrect 2026404634624
>>> bad block 2026404634624
>>> leaf parent key incorrect 2045515939840
>>> bad block 2045515939840
>>> owner ref check failed [924702326784 4096]
>>> owner ref check failed [2026404634624 4096]
>>> owner ref check failed [2045515939840 4096]
>>> owner ref check failed [2064048422912 4096]
>>> found 1884638785584 bytes used err is 1
>>> total csum bytes: 1836791604
>>> total tree bytes: 3778641920
>>> total fs tree bytes: 1484914688
>>> btree space waste bytes: 611092845
>>> file data blocks allocated: 1926324310016
>>> =A0referenced 1880273379328
>>> Btrfs v0.19-4-gab8fb4c
>>> [mar. 10/01/26 20:10
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 4 [1] # btrfsck /dev/sdb
>>> failed to read /dev/sr0
>>> bad block 2064048422912
>>> bad block 924702326784
>>> leaf parent key incorrect 2026404634624
>>> bad block 2026404634624
>>> leaf parent key incorrect 2045515939840
>>> bad block 2045515939840
>>> owner ref check failed [924702326784 4096]
>>> owner ref check failed [2026404634624 4096]
>>> owner ref check failed [2045515939840 4096]
>>> owner ref check failed [2064048422912 4096]
>>> found 1884638785584 bytes used err is 1
>>> total csum bytes: 1836791604
>>> total tree bytes: 3778641920
>>> total fs tree bytes: 1484914688
>>> btree space waste bytes: 611092845
>>> file data blocks allocated: 1926324310016
>>> =A0referenced 1880273379328
>>> Btrfs v0.19-4-gab8fb4c
>>> [mar. 10/01/26 20:20
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 5 [1] # mount /mnt/btrfs
>>> [mar. 10/01/26 21:38
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 6 # btrfs-show
>>> failed to read /dev/sr0
>>> Label: none=A0 uuid: 3e021a76-954e-4f54-86a0-fa3849e451c2
>>> =A0=A0=A0=A0=A0=A0=A0 Total devices 3 FS bytes used 1.71TB
>>> =A0=A0=A0=A0=A0=A0=A0 devid=A0=A0=A0 3 size 1.36TB used 3.99GB path=
 /dev/sdb
>>> =A0=A0=A0=A0=A0=A0=A0 devid=A0=A0=A0 2 size 931.51GB used 930.01GB =
path /dev/sdc
>>> =A0=A0=A0=A0=A0=A0=A0 devid=A0=A0=A0 1 size 931.51GB used 929.00GB =
path /dev/sdd
>>>
>>> Btrfs v0.19-4-gab8fb4c
>>> [mar. 10/01/26 21:38
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 7 # btrfs-vol -b /mnt/btrfs
>>> zsh: segmentation fault=A0 btrfs-vol -b /mnt/btrfs
>>> [mar. 10/01/26 21:41
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 9 [139] #=A0 dmesg |grep BUG
>>> [ 6417.151192] kernel BUG at fs/btrfs/volumes.c:1746!
>>> [mar. 10/01/26 21:42
>>> CET][pts/11][x86_64/linux-gnu/2.6.33-rc5-00247-gc3e6a41][4.3.9]
>>> <root@oni:/home/alpha>
>>> zsh/3 10 #
>>>
>>> my dmesg, from the warning, then the bug
>>>
>>> [ 6413.080969] btrfs: relocating block group 2917377507328 flags 9
>>> [ 6413.942527] btrfs: relocating block group 2914156281856 flags 9
>>> [ 6416.792048] btrfs csum failed ino 258 off 249937920 csum 3749246=
389
>>> private 2282873894
>>> [ 6416.798204] btrfs csum failed ino 258 off 249937920 csum 3749246=
389
>>> private 2282873894
>>> [ 6416.837809] btrfs csum failed ino 258 off 249937920 csum 3749246=
389
>>> private 2282873894
>>> [ 6416.841459] btrfs csum failed ino 258 off 249937920 csum 3749246=
389
>>> private 2282873894
>>
>> CSUM failures. =A0Something is going horribly wrong. =A0Either one o=
f the following
>>
>> 1) A bug
>> 2) Bad memory
>> 3) Something went wrong with the disk at some point
>>
>> 1 is hard to track down at this point, 3 is possible, but again hard=
 to prove.
>> So try running memtest86 on your system to rule out #2. =A0If the me=
mory checks
>> out, reformat and try again. =A0If you keep having problems we'll tr=
y and figure
>> out if its #1 or #3. =A0Thanks,
>>
>> Josef
>>
> Hello,
>
> Thanks for your answer, to be sure that the memory isn't in cause (or
> if it was, that it wouldn't bother me) i've already commanded ecc
> memory.
>
> But what I don't understand is why btrfsck doesnt correct anything ?
> It detects that X have a bad block, a bad leaf and all.
> The "bad blocks" doesn't change between the two run of fsck (event
> after a reboot), why it doesn't devalidate this block in the btree ?
>

The short answer is repairing error isn't implemented yet. I'm afraid t=
he
only way to save your data is try mounting the FS in readonly mode and
copying the data out.

Yan, Zheng
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2010-01-27  9:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 21:16 btrfs fsck doesn't modify a thing, and btrfs can not balance any data on a new device briaeros007
2010-01-27  2:30 ` Josef Bacik
2010-01-27  9:12   ` briaeros007
2010-01-27  9:29     ` Yan, Zheng  [this message]
2010-01-27 11:33       ` briaeros007

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d0408631001270129r6bc0378fqf257971a2fc3a609@mail.gmail.com \
    --to=yanzheng@21cn.com \
    --cc=briaeros007@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox