* bad tree block problems
@ 2011-12-20 22:34 Chris Baines
2011-12-20 23:36 ` Chris Mason
0 siblings, 1 reply; 8+ messages in thread
From: Chris Baines @ 2011-12-20 22:34 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
Hello,
I am having problems with my btrfs filesystem, I have a 1TB RAID-1
setup that I use as /home. When accessing certain programs, or moving
large amounts of data, I often get errors looking like the one
attached, after I get the error, /home becomes unusable and I reboot.
I have tried running scrub, but it aborts (output given in the
attachment).
I am using the 3.2.0-rc4 kernel (as distributed in Debian) at the
moment, but this may not have been the kernel I was using when I first
started getting the errors.
Thanks,
Chris
[-- Attachment #2: btrfs-logs --]
[-- Type: application/octet-stream, Size: 12085 bytes --]
Dec 20 20:11:09 chris-desktop kernel: [10133.133655] btree_readpage_end_io_hook: 4 callbacks suppressed
Dec 20 20:11:09 chris-desktop kernel: [10133.133658] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.146142] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.147520] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.147642] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.147778] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.147896] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.148016] btrfs bad tree block start 714438135808 714427781120
Dec 20 20:11:09 chris-desktop kernel: [10133.148050] ------------[ cut here ]------------
Dec 20 20:11:09 chris-desktop kernel: [10133.148068] WARNING: at /build/buildd-linux-2.6_3.2~rc4-1~experimental.1-amd64-g2cnM1/linux-2.6-3.2~rc4/debian/build
/source_amd64_none/fs/btrfs/extent-tree.c:4754 __btrfs_free_extent+0x293/0x5c8 [btrfs]()
Dec 20 20:11:09 chris-desktop kernel: [10133.148070] Hardware name: MS-7681
Dec 20 20:11:09 chris-desktop kernel: [10133.148071] Modules linked in: usb_storage uas nls_utf8 udf pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(
O) parport_pc acpi_cpufreq mperf cpufreq_userspace ppdev cpufreq_stats binfmt_misc lp parport decnet cpufreq_conservative cpufreq_powersave snd_hda_codec_hdm
i snd_hda_codec_realtek snd_hda_intel nvidia(P) snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_midi snd_rawmidi processor snd_seq_midi_eve
nt mxm_wmi snd_seq iTCO_wdt i2c_i801 wmi thermal_sys evdev snd_timer snd_seq_device iTCO_vendor_support pcspkr snd soundcore shpchp pci_hotplug snd_page_allo
c kvm_intel kvm f71882fg lm78 hwmon_vid i2c_core coretemp loop firewire_sbp2 autofs4 ext4 mbcache jbd2 crc16 btrfs zlib_deflate crc32c libcrc32c sr_mod cdrom
usbhid sd_mod crc_t10dif hid ata_generic ata_piix firewire_ohci firewire_core crc_itu_t ahci libahci xhci_hcd ehci_hcd libata usbcore usb_common scsi_mod r8
169 mii button [last unloaded: scsi_wait_scan]
Dec 20 20:11:09 chris-desktop kernel: [10133.148115] Pid: 20708, comm: btrfs-endio-wri Tainted: P O 3.2.0-rc4-amd64 #1
Dec 20 20:11:09 chris-desktop kernel: [10133.148116] Call Trace:
Dec 20 20:11:09 chris-desktop kernel: [10133.148120] [<ffffffff81045759>] ? warn_slowpath_common+0x78/0x8c
Dec 20 20:11:09 chris-desktop kernel: [10133.148126] [<ffffffffa0182c54>] ? __btrfs_free_extent+0x293/0x5c8 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148133] [<ffffffffa0182991>] ? alloc_reserved_file_extent+0x1e0/0x210 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148139] [<ffffffffa0185eb0>] ? run_clustered_refs+0x672/0x6aa [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148145] [<ffffffffa0185e9c>] ? run_clustered_refs+0x65e/0x6aa [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148147] [<ffffffff81036c90>] ? __wake_up+0x35/0x46
Dec 20 20:11:09 chris-desktop kernel: [10133.148154] [<ffffffffa0185fb1>] ? btrfs_run_delayed_refs+0xc9/0x176 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148162] [<ffffffffa0193740>] ? __btrfs_end_transaction+0x90/0x1dd [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148170] [<ffffffffa0198154>] ? btrfs_finish_ordered_io+0x275/0x29a [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148172] [<ffffffff810ba6c6>] ? test_clear_page_writeback+0xa9/0xbb
Dec 20 20:11:09 chris-desktop kernel: [10133.148181] [<ffffffffa01a8290>] ? end_bio_extent_writepage+0x96/0x144 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148189] [<ffffffffa01b2729>] ? worker_loop+0x16a/0x45d [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148196] [<ffffffffa01b25bf>] ? btrfs_queue_worker+0x25b/0x25b [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148199] [<ffffffff8105ddfd>] ? kthread+0x76/0x7e
Dec 20 20:11:09 chris-desktop kernel: [10133.148201] [<ffffffff8133a0f4>] ? kernel_thread_helper+0x4/0x10
Dec 20 20:11:09 chris-desktop kernel: [10133.148203] [<ffffffff8105dd87>] ? kthread_worker_fn+0x139/0x139
Dec 20 20:11:09 chris-desktop kernel: [10133.148205] [<ffffffff8133a0f0>] ? gs_change+0x13/0x13
Dec 20 20:11:09 chris-desktop kernel: [10133.148206] ---[ end trace a140321f709db923 ]---
Dec 20 20:11:09 chris-desktop kernel: [10133.148207] btrfs unable to find ref byte nr 714422018048 parent 0 root 2 owner 0 offset 0
Dec 20 20:11:09 chris-desktop kernel: [10133.148213] BUG: unable to handle kernel NULL pointer dereference at (null)
Dec 20 20:11:09 chris-desktop kernel: [10133.148214] IP: [<ffffffffa01ac11d>] map_private_extent_buffer+0xf/0xec [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148223] PGD 0
Dec 20 20:11:09 chris-desktop kernel: [10133.148224] Oops: 0000 [#1] SMP
Dec 20 20:11:09 chris-desktop kernel: [10133.148226] CPU 2
Dec 20 20:11:09 chris-desktop kernel: [10133.148226] Modules linked in: usb_storage uas nls_utf8 udf pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) parport_pc acpi_cpufreq mperf cpufreq_userspace ppdev cpufreq_stats binfmt_misc lp parport decnet cpufreq_conservative cpufreq_powersave snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel nvidia(P) snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_midi snd_rawmidi processor snd_seq_midi_event mxm_wmi snd_seq iTCO_wdt i2c_i801 wmi thermal_sys evdev snd_timer snd_seq_device iTCO_vendor_support pcspkr snd soundcore shpchp pci_hotplug snd_page_alloc kvm_intel kvm f71882fg lm78 hwmon_vid i2c_core coretemp loop firewire_sbp2 autofs4 ext4 mbcache jbd2 crc16 btrfs zlib_deflate crc32c libcrc32c sr_mod cdrom usbhid sd_mod crc_t10dif hid ata_generic ata_piix firewire_ohci firewire_core crc_itu_t ahci libahci xhci_hcd ehci_hcd libata usbcore usb_common scsi_mod r8169 mii button [last unloaded: scsi_wait_scan]
Dec 20 20:11:09 chris-desktop kernel: [10133.148254]
Dec 20 20:11:09 chris-desktop kernel: [10133.148256] Pid: 20708, comm: btrfs-endio-wri Tainted: P W O 3.2.0-rc4-amd64 #1 MSI MS-7681/P67A-GD65 (MS-7681)
Dec 20 20:11:09 chris-desktop kernel: [10133.148258] RIP: 0010:[<ffffffffa01ac11d>] [<ffffffffa01ac11d>] map_private_extent_buffer+0xf/0xec [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148265] RSP: 0018:ffff88012ed19aa0 EFLAGS: 00010286
Dec 20 20:11:09 chris-desktop kernel: [10133.148267] RAX: 0000000000000000 RBX: ffff88012ed19ad0 RCX: ffff88012ed19ad0
Dec 20 20:11:09 chris-desktop kernel: [10133.148268] RDX: 0000000000000004 RSI: 000000000000007a RDI: 0000000000000000
Dec 20 20:11:09 chris-desktop kernel: [10133.148269] RBP: 0000000000000065 R08: ffff88012ed19ad8 R09: ffff88012ed19ae0
Dec 20 20:11:09 chris-desktop kernel: [10133.148270] R10: 000000000000007a R11: 0000000000000004 R12: 000000000000007a
Dec 20 20:11:09 chris-desktop kernel: [10133.148271] R13: 0000000000000000 R14: ffff8801b4251800 R15: 0000000000000000
Dec 20 20:11:09 chris-desktop kernel: [10133.148273] FS: 0000000000000000(0000) GS:ffff8801bf500000(0000) knlGS:0000000000000000
Dec 20 20:11:09 chris-desktop kernel: [10133.148274] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Dec 20 20:11:09 chris-desktop kernel: [10133.148276] CR2: 0000000000000000 CR3: 0000000001605000 CR4: 00000000000406e0
Dec 20 20:11:09 chris-desktop kernel: [10133.148277] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Dec 20 20:11:09 chris-desktop kernel: [10133.148278] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Dec 20 20:11:09 chris-desktop kernel: [10133.148280] Process btrfs-endio-wri (pid: 20708, threadinfo ffff88012ed18000, task ffff8801b4abf080)
Dec 20 20:11:09 chris-desktop kernel: [10133.148281] Stack:
Dec 20 20:11:09 chris-desktop kernel: [10133.148282] 0000000000000000 ffffffff8132d32d 0000000000000000 0000000000000000
Dec 20 20:11:09 chris-desktop kernel: [10133.148284] 0000000000000065 ffffffffa01a43b9 0000000000000000 000000a656dee000
Dec 20 20:11:09 chris-desktop kernel: [10133.148286] 0000000000000000 0000000000000002 ffff880175c48910 00000000fffffffb
Dec 20 20:11:09 chris-desktop kernel: [10133.148288] Call Trace:
Dec 20 20:11:09 chris-desktop kernel: [10133.148290] [<ffffffff8132d32d>] ? printk+0x43/0x48
Dec 20 20:11:09 chris-desktop kernel: [10133.148299] [<ffffffffa01a43b9>] ? btrfs_item_size+0x2c/0x61 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148305] [<ffffffffa0182c94>] ? __btrfs_free_extent+0x2d3/0x5c8 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148312] [<ffffffffa0185eb0>] ? run_clustered_refs+0x672/0x6aa [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148318] [<ffffffffa0185e9c>] ? run_clustered_refs+0x65e/0x6aa [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148320] [<ffffffff81036c90>] ? __wake_up+0x35/0x46
Dec 20 20:11:09 chris-desktop kernel: [10133.148326] [<ffffffffa0185fb1>] ? btrfs_run_delayed_refs+0xc9/0x176 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148333] [<ffffffffa0193740>] ? __btrfs_end_transaction+0x90/0x1dd [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148341] [<ffffffffa0198154>] ? btrfs_finish_ordered_io+0x275/0x29a [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148343] [<ffffffff810ba6c6>] ? test_clear_page_writeback+0xa9/0xbb
Dec 20 20:11:09 chris-desktop kernel: [10133.148351] [<ffffffffa01a8290>] ? end_bio_extent_writepage+0x96/0x144 [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148359] [<ffffffffa01b2729>] ? worker_loop+0x16a/0x45d [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148366] [<ffffffffa01b25bf>] ? btrfs_queue_worker+0x25b/0x25b [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148368] [<ffffffff8105ddfd>] ? kthread+0x76/0x7e
Dec 20 20:11:09 chris-desktop kernel: [10133.148369] [<ffffffff8133a0f4>] ? kernel_thread_helper+0x4/0x10
Dec 20 20:11:09 chris-desktop kernel: [10133.148371] [<ffffffff8105dd87>] ? kthread_worker_fn+0x139/0x139
Dec 20 20:11:09 chris-desktop kernel: [10133.148373] [<ffffffff8133a0f0>] ? gs_change+0x13/0x13
Dec 20 20:11:09 chris-desktop kernel: [10133.148374] Code: 00 00 e8 19 cc ff ff 48 81 c4 88 00 00 00 44 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 55 49 89 d3 49 89 f2 53 48 89 cb 48 83 ec 18
Dec 20 20:11:09 chris-desktop kernel: [10133.148397] RIP [<ffffffffa01ac11d>] map_private_extent_buffer+0xf/0xec [btrfs]
Dec 20 20:11:09 chris-desktop kernel: [10133.148404] RSP <ffff88012ed19aa0>
Dec 20 20:11:09 chris-desktop kernel: [10133.148405] CR2: 0000000000000000
Dec 20 20:11:09 chris-desktop kernel: [10133.148407] ---[ end trace a140321f709db924 ]---
Got this when running scrub
scrub status for 7d65d152-1200-4043-981a-06757707f1ba
scrub started at Tue Dec 20 20:40:57 2011 and was aborted after 5638 seconds
total bytes scrubbed: 1.26TB with 0 errors
Dec 20 22:14:54 chris-desktop kernel: [ 7169.973524] btree_readpage_end_io_hook: 4 callbacks suppressed
Dec 20 22:14:54 chris-desktop kernel: [ 7169.973529] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:54 chris-desktop kernel: [ 7170.032677] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:54 chris-desktop kernel: [ 7170.103712] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:54 chris-desktop kernel: [ 7170.142864] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:55 chris-desktop kernel: [ 7170.633676] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:55 chris-desktop kernel: [ 7170.659957] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:55 chris-desktop kernel: [ 7170.660199] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:55 chris-desktop kernel: [ 7170.696824] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:55 chris-desktop kernel: [ 7170.697112] btrfs bad tree block start 714438135808 714427781120
Dec 20 22:14:55 chris-desktop kernel: [ 7170.697307] btrfs bad tree block start 714438135808 714427781120
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bad tree block problems
2011-12-20 22:34 bad tree block problems Chris Baines
@ 2011-12-20 23:36 ` Chris Mason
2011-12-20 23:39 ` Chris Baines
0 siblings, 1 reply; 8+ messages in thread
From: Chris Mason @ 2011-12-20 23:36 UTC (permalink / raw)
To: Chris Baines; +Cc: linux-btrfs
On Tue, Dec 20, 2011 at 10:34:20PM +0000, Chris Baines wrote:
> Hello,
>
> I am having problems with my btrfs filesystem, I have a 1TB RAID-1
> setup that I use as /home. When accessing certain programs, or moving
> large amounts of data, I often get errors looking like the one
> attached, after I get the error, /home becomes unusable and I reboot.
> I have tried running scrub, but it aborts (output given in the
> attachment).
>
> I am using the 3.2.0-rc4 kernel (as distributed in Debian) at the
> moment, but this may not have been the kernel I was using when I first
> started getting the errors.
It looks like you have both virtual box and nvidia loaded here, so it is
hard to tell exactly where this problem came from.
Could you please grab the latest btrfs-progs and do a:
btrfs inspect logical 714427781120 /home
This will tell us a little more about the bad block.
-chris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bad tree block problems
2011-12-20 23:36 ` Chris Mason
@ 2011-12-20 23:39 ` Chris Baines
2011-12-21 1:07 ` Liu Bo
0 siblings, 1 reply; 8+ messages in thread
From: Chris Baines @ 2011-12-20 23:39 UTC (permalink / raw)
To: Chris Mason, Chris Baines, linux-btrfs
On 20 December 2011 23:36, Chris Mason <chris.mason@oracle.com> wrote:
> On Tue, Dec 20, 2011 at 10:34:20PM +0000, Chris Baines wrote:
>> Hello,
>>
>> I am having problems with my btrfs filesystem, I have a 1TB RAID-1
>> setup that I use as /home. When accessing certain programs, or moving
>> large amounts of data, I often get errors looking like the one
>> attached, after I get the error, /home becomes unusable and I reboot.
>> I have tried running scrub, but it aborts (output given in the
>> attachment).
>>
>> I am using the 3.2.0-rc4 kernel (as distributed in Debian) at the
>> moment, but this may not have been the kernel I was using when I first
>> started getting the errors.
>
> It looks like you have both virtual box and nvidia loaded here, so it is
> hard to tell exactly where this problem came from.
>
> Could you please grab the latest btrfs-progs and do a:
>
> btrfs inspect logical 714427781120 /home
>
> This will tell us a little more about the bad block.
>
> -chris
>
How do I do this exactly, do I build a kernel from git?
Thanks,
Chris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bad tree block problems
2011-12-20 23:39 ` Chris Baines
@ 2011-12-21 1:07 ` Liu Bo
2011-12-21 1:29 ` Chris Baines
0 siblings, 1 reply; 8+ messages in thread
From: Liu Bo @ 2011-12-21 1:07 UTC (permalink / raw)
To: Chris Baines; +Cc: Chris Mason, linux-btrfs
On 12/21/2011 07:39 AM, Chris Baines wrote:
> On 20 December 2011 23:36, Chris Mason <chris.mason@oracle.com> wrote:
>> On Tue, Dec 20, 2011 at 10:34:20PM +0000, Chris Baines wrote:
>>> Hello,
>>>
>>> I am having problems with my btrfs filesystem, I have a 1TB RAID-1
>>> setup that I use as /home. When accessing certain programs, or moving
>>> large amounts of data, I often get errors looking like the one
>>> attached, after I get the error, /home becomes unusable and I reboot.
>>> I have tried running scrub, but it aborts (output given in the
>>> attachment).
>>>
>>> I am using the 3.2.0-rc4 kernel (as distributed in Debian) at the
>>> moment, but this may not have been the kernel I was using when I first
>>> started getting the errors.
>> It looks like you have both virtual box and nvidia loaded here, so it is
>> hard to tell exactly where this problem came from.
>>
>> Could you please grab the latest btrfs-progs and do a:
>>
>> btrfs inspect logical 714427781120 /home
>>
>> This will tell us a little more about the bad block.
>>
>> -chris
>>
>
> How do I do this exactly, do I build a kernel from git?
>
Only building the btrfs-progs will be ok.
To get btrfs-progs:
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
thanks,
liubo
> Thanks,
>
> Chris
> --
> 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
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bad tree block problems
2011-12-21 1:07 ` Liu Bo
@ 2011-12-21 1:29 ` Chris Baines
[not found] ` <CAGGGvRvVUDbsZKOgqkA+CYfsfpYdHEDF5BYLs3sKVWw+ekH4nQ@mail.gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Chris Baines @ 2011-12-21 1:29 UTC (permalink / raw)
To: Liu Bo; +Cc: Chris Mason, linux-btrfs
I have built the btrfs-progs from git, and get this output when
running the command:
ioctl ret=-1, error: No such file or directory
Thanks,
Chris
^ permalink raw reply [flat|nested] 8+ messages in thread
* bad tree block problems
[not found] ` <CAGGGvRvVUDbsZKOgqkA+CYfsfpYdHEDF5BYLs3sKVWw+ekH4nQ@mail.gmail.com>
@ 2012-01-18 20:01 ` Chris Baines
2012-01-18 20:48 ` cwillu
0 siblings, 1 reply; 8+ messages in thread
From: Chris Baines @ 2012-01-18 20:01 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
I still haven't managed to fix the problem/problems, and now I cant
mount the partition. I have attached the portion from kern.log that I
think is relevant. I also tried btrfsck, but it segfaulted, the log
(btrfsck.log) is attached. When I try mounting now, the command
doesn't end.
Any tips,
Thanks,
Chris
[-- Attachment #2: log.txt --]
[-- Type: text/plain, Size: 12388 bytes --]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.129832] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.145372] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.145502] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.145643] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.145757] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.145872] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.145992] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146104] btrfs bad tree block start 714438135808 714427781120
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146122] ------------[ cut here ]------------
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146140] WARNING: at /home/blank/debian/kernel/release/linux-2.6/linux-2.6-3.2~rc7/debian/build/source_amd64_none/fs/btrfs/extent-tree.c:4771 __btrfs_free_extent+0x293/0x5c8 [btrfs]()
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146142] Hardware name: MS-7681
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146143] Modules linked in: webcamstudio(O) videodev v4l2_compat_ioctl32 media hmac nls_utf8 cifs fscache pci_stub vboxpci(O) acpi_cpufreq mperf vboxnetadp(O) cpufreq_userspace vboxnetflt(O) cpufreq_stats vboxdrv(O) binfmt_misc cpufreq_conservative parport_pc ppdev lp parport decnet cpufreq_powersave snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi nvidia(P) snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mxm_wmi soundcore shpchp pci_hotplug evdev psmouse iTCO_wdt wmi processor thermal_sys iTCO_vendor_support i2c_i801 serio_raw pcspkr kvm f71882fg lm78 hwmon_vid i2c_core coretemp loop firewire_sbp2 autofs4 ext4 mbcache jbd2 crc16 btrfs zlib_deflate crc32c libcrc32c sr_mod usbhid hid cdrom sd_mod crc_t10dif ata_generic ata_piix firewire_ohci firewire_core crc_itu_t ahci libahci r8169 mii libata scsi_mod xhci_hcd ehci_hcd button usbcore usb_common [last unloaded: scsi
Jan 18 12:38:55 chris-desktop kernel: _wait_scan]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146178] Pid: 32739, comm: mount Tainted: P O 3.2.0-rc7-amd64 #1
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146179] Call Trace:
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146184] [<ffffffff810457ed>] ? warn_slowpath_common+0x78/0x8c
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146191] [<ffffffffa014ece0>] ? __btrfs_free_extent+0x293/0x5c8 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146198] [<ffffffffa0151fdd>] ? run_clustered_refs+0x672/0x6aa [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146204] [<ffffffffa0151fc9>] ? run_clustered_refs+0x65e/0x6aa [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146211] [<ffffffffa01520de>] ? btrfs_run_delayed_refs+0xc9/0x176 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146214] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146222] [<ffffffffa015f868>] ? __btrfs_end_transaction+0x90/0x1dd [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146231] [<ffffffffa01673e9>] ? btrfs_evict_inode+0x24b/0x26c [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146235] [<ffffffff81109e1c>] ? evict+0x96/0x148
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146243] [<ffffffffa0167c0b>] ? btrfs_orphan_cleanup+0x309/0x405 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146250] [<ffffffffa015dece>] ? open_ctree+0x124a/0x14bc [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146252] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146258] [<ffffffffa0144828>] ? btrfs_mount+0x39d/0x516 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146261] [<ffffffff810353ab>] ? should_resched+0x5/0x23
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146263] [<ffffffff810ca055>] ? pcpu_next_pop+0x35/0x41
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146265] [<ffffffff810c9fdd>] ? cpumask_next+0x16/0x18
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146267] [<ffffffff810e9a97>] ? __kmalloc_track_caller+0xfe/0x110
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146270] [<ffffffff810fa110>] ? mount_fs+0x61/0x145
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146272] [<ffffffff8110cf16>] ? vfs_kern_mount+0x5f/0x99
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146275] [<ffffffff8110d300>] ? do_kern_mount+0x49/0xd8
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146277] [<ffffffff8110e971>] ? do_mount+0x660/0x6c6
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146278] [<ffffffff810c724a>] ? memdup_user+0x36/0x5b
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146280] [<ffffffff8110ec7f>] ? sys_mount+0x88/0xc3
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146283] [<ffffffff8133e692>] ? system_call_fastpath+0x16/0x1b
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146284] ---[ end trace 5c7c99de1f30327a ]---
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146286] btrfs unable to find ref byte nr 714422018048 parent 0 root 2 owner 0 offset 0
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146292] BUG: unable to handle kernel NULL pointer dereference at (null)
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146294] IP: [<ffffffffa01784e9>] map_private_extent_buffer+0xf/0xec [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146304] PGD ab419067 PUD ab550067 PMD 0
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146306] Oops: 0000 [#1] SMP
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146308] CPU 2
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146309] Modules linked in: webcamstudio(O) videodev v4l2_compat_ioctl32 media hmac nls_utf8 cifs fscache pci_stub vboxpci(O) acpi_cpufreq mperf vboxnetadp(O) cpufreq_userspace vboxnetflt(O) cpufreq_stats vboxdrv(O) binfmt_misc cpufreq_conservative parport_pc ppdev lp parport decnet cpufreq_powersave snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi nvidia(P) snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mxm_wmi soundcore shpchp pci_hotplug evdev psmouse iTCO_wdt wmi processor thermal_sys iTCO_vendor_support i2c_i801 serio_raw pcspkr kvm f71882fg lm78 hwmon_vid i2c_core coretemp loop firewire_sbp2 autofs4 ext4 mbcache jbd2 crc16 btrfs zlib_deflate crc32c libcrc32c sr_mod usbhid hid cdrom sd_mod crc_t10dif ata_generic ata_piix firewire_ohci firewire_core crc_itu_t ahci libahci r8169 mii libata scsi_mod xhci_hcd ehci_hcd button usbcore usb_common [last unloaded: scsi
Jan 18 12:38:55 chris-desktop kernel: _wait_scan]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146340]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146341] Pid: 32739, comm: mount Tainted: P W O 3.2.0-rc7-amd64 #1 MSI MS-7681/P67A-GD65 (MS-7681)
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146344] RIP: 0010:[<ffffffffa01784e9>] [<ffffffffa01784e9>] map_private_extent_buffer+0xf/0xec [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146352] RSP: 0018:ffff8800a9a217f8 EFLAGS: 00010292
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146353] RAX: 0000000000000000 RBX: ffff8800a9a21828 RCX: ffff8800a9a21828
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146354] RDX: 0000000000000004 RSI: 000000000000007a RDI: 0000000000000000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146355] RBP: 0000000000000065 R08: ffff8800a9a21830 R09: ffff8800a9a21838
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146357] R10: 000000000000007a R11: 0000000000000004 R12: 000000000000007a
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146358] R13: 0000000000000000 R14: ffff880136999c00 R15: 0000000000000000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146359] FS: 00007f4d582e37e0(0000) GS:ffff88013f500000(0000) knlGS:0000000000000000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146361] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146362] CR2: 0000000000000000 CR3: 00000000ab476000 CR4: 00000000000406e0
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146364] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146365] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146366] Process mount (pid: 32739, threadinfo ffff8800a9a20000, task ffff8800b081c340)
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146367] Stack:
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146368] 0000000000000000 ffffffff813339c0 0000000000000000 0000000000000000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146371] 0000000000000065 ffffffffa0170779 0000000000000000 000000a656dee000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146373] 0000000000000000 0000000000000002 ffff88006c83cf40 00000000fffffffb
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146375] Call Trace:
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146377] [<ffffffff813339c0>] ? printk+0x43/0x48
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146387] [<ffffffffa0170779>] ? btrfs_item_size+0x2c/0x61 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146393] [<ffffffffa014ed20>] ? __btrfs_free_extent+0x2d3/0x5c8 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146400] [<ffffffffa0151fdd>] ? run_clustered_refs+0x672/0x6aa [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146407] [<ffffffffa0151fc9>] ? run_clustered_refs+0x65e/0x6aa [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146413] [<ffffffffa01520de>] ? btrfs_run_delayed_refs+0xc9/0x176 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146415] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146423] [<ffffffffa015f868>] ? __btrfs_end_transaction+0x90/0x1dd [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146431] [<ffffffffa01673e9>] ? btrfs_evict_inode+0x24b/0x26c [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146434] [<ffffffff81109e1c>] ? evict+0x96/0x148
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146441] [<ffffffffa0167c0b>] ? btrfs_orphan_cleanup+0x309/0x405 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146449] [<ffffffffa015dece>] ? open_ctree+0x124a/0x14bc [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146451] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146457] [<ffffffffa0144828>] ? btrfs_mount+0x39d/0x516 [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146459] [<ffffffff810353ab>] ? should_resched+0x5/0x23
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146461] [<ffffffff810ca055>] ? pcpu_next_pop+0x35/0x41
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146463] [<ffffffff810c9fdd>] ? cpumask_next+0x16/0x18
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146465] [<ffffffff810e9a97>] ? __kmalloc_track_caller+0xfe/0x110
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146467] [<ffffffff810fa110>] ? mount_fs+0x61/0x145
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146469] [<ffffffff8110cf16>] ? vfs_kern_mount+0x5f/0x99
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146472] [<ffffffff8110d300>] ? do_kern_mount+0x49/0xd8
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146474] [<ffffffff8110e971>] ? do_mount+0x660/0x6c6
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146475] [<ffffffff810c724a>] ? memdup_user+0x36/0x5b
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146477] [<ffffffff8110ec7f>] ? sys_mount+0x88/0xc3
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146479] [<ffffffff8133e692>] ? system_call_fastpath+0x16/0x1b
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146480] Code: 00 00 e8 19 cc ff ff 48 81 c4 88 00 00 00 44 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 55 49 89 d3 49 89 f2 53 48 89 cb 48 83 ec 18 <48> 8b 2f 81 e5 ff 0f 00 00 48 8d 04 2e 48 8d 54 10 ff 48 89 c6
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146498] RIP [<ffffffffa01784e9>] map_private_extent_buffer+0xf/0xec [btrfs]
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146506] RSP <ffff8800a9a217f8>
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146506] CR2: 0000000000000000
Jan 18 12:38:55 chris-desktop kernel: [ 1975.146508] ---[ end trace 5c7c99de1f30327b ]---
[-- Attachment #3: btrfsck.log --]
[-- Type: text/x-log, Size: 447 bytes --]
failed to read /dev/sr0: No medium found
failed to read /dev/sr0: No medium found
Check tree block failed, want=714427781120, have=714438135808
Check tree block failed, want=714427781120, have=714438135808
Check tree block failed, want=714427781120, have=714438135808
Check tree block failed, want=714427781120, have=714438135808
Check tree block failed, want=714427781120, have=714438135808
read block failed check_tree_block
Segmentation fault
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bad tree block problems
2012-01-18 20:01 ` Chris Baines
@ 2012-01-18 20:48 ` cwillu
2012-01-19 3:26 ` Chris Baines
0 siblings, 1 reply; 8+ messages in thread
From: cwillu @ 2012-01-18 20:48 UTC (permalink / raw)
To: Chris Baines; +Cc: linux-btrfs
First thing I'd try is to try mounting it readonly ("mount ... -o
ro"). This should get it mounted, or at least failing at a later
point with different (better?) error messages to work from. (dmesg
output after such an attempt would be useful).
On the vanilla kernel front, Ubuntu has kernel debs without any extra
patches, which will/should work with debian. (There may be a similar
pure debian thing somewhere already, but anyways).
If you see anything about dkms building modules when installing,
you'll have to disable those in order to prevent the nvidia and
virtualbox modules from being built/installed with vanilla kernel.
Debs available from
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.1-precise/
And the relevant dkms lines if applicable (module names may also vary,
but dkms status will list the relevant ones assuming dkms is in fact
in use):
"dkms status"
"dkms uninstall -m nvidia -v <from status> -k <from status, something
something 3.2.1>"
"dkms uninstall -m vboxhost -v <from status> -k <from status,
something something 3.2.1>"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bad tree block problems
2012-01-18 20:48 ` cwillu
@ 2012-01-19 3:26 ` Chris Baines
0 siblings, 0 replies; 8+ messages in thread
From: Chris Baines @ 2012-01-19 3:26 UTC (permalink / raw)
To: cwillu; +Cc: linux-btrfs
Right, I can mount read only. Running a find command across the
filesystem, yields lots of:
[ 7775.228342] btrfs: corrupt leaf, bad key order:
block=3D756502351872,root=3D1, slot=3D1
type messages in dmesg, running a scrub gives:
scrub status for 7d65d152-1200-4043-981a-06757707f1ba
scrub started at Wed Jan 18 22:29:30 2012 and was aborted after 5575 s=
econds
total bytes scrubbed: 1.26TB with 0 errors
And in dmesg:
[13370.886533] btrfs bad tree block start 714438135808 714427781120
[13370.962864] btrfs bad tree block start 714438135808 714427781120
[13371.681333] btrfs bad tree block start 714438135808 714427781120
[13371.724529] btrfs bad tree block start 714438135808 714427781120
[13371.724690] btrfs bad tree block start 714438135808 714427781120
[13371.724969] btrfs bad tree block start 714438135808 714427781120
[13371.725099] btrfs bad tree block start 714438135808 714427781120
[13371.725243] btrfs bad tree block start 714438135808 714427781120
[13371.725412] btrfs bad tree block start 714438135808 714427781120
[13371.725714] btrfs bad tree block start 714438135808 714427781120
On 18 January 2012 20:48, cwillu <cwillu@cwillu.com> wrote:
> First thing I'd try is to try mounting it readonly ("mount ... -o
> ro"). =A0This should get it mounted, or at least failing at a later
> point with different (better?) error messages to work from. =A0(dmesg
> output after such an attempt would be useful).
>
> On the vanilla kernel front, Ubuntu has kernel debs without any extra
> patches, which will/should work with debian. =A0(There may be a simil=
ar
> pure debian thing somewhere already, but anyways).
>
> If you see anything about dkms building modules when installing,
> you'll have to disable those in order to prevent the nvidia and
> virtualbox modules from being built/installed with vanilla kernel.
>
> Debs available from
> http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.1-precise/
>
> And the relevant dkms lines if applicable (module names may also vary=
,
> but dkms status will list the relevant ones assuming dkms is in fact
> in use):
>
> "dkms status"
> "dkms uninstall -m nvidia -v <from status> -k <from status, something
> something 3.2.1>"
> "dkms uninstall -m vboxhost -v <from status> -k <from status,
> something something 3.2.1>"
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-01-19 3:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 22:34 bad tree block problems Chris Baines
2011-12-20 23:36 ` Chris Mason
2011-12-20 23:39 ` Chris Baines
2011-12-21 1:07 ` Liu Bo
2011-12-21 1:29 ` Chris Baines
[not found] ` <CAGGGvRvVUDbsZKOgqkA+CYfsfpYdHEDF5BYLs3sKVWw+ekH4nQ@mail.gmail.com>
2012-01-18 20:01 ` Chris Baines
2012-01-18 20:48 ` cwillu
2012-01-19 3:26 ` Chris Baines
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.