linux-2.6.38.8 btrfs System does not boot (hang in initramfs)

Bug #788238 reported by thomas_p75
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have 2 Systems updated to 11.04 my workstation(64bit) and my laptop(32bit). The workstation has a sata-ssd disk with 2 partitions ext3 for boot and btrfs for /.
Now when I boot the workstation I get the BusyBox from the initramdisk with a stacktrace and many mount errors.
I put the ssd with a usb-to-sata adapter (Digitus) on my laptop and get the same dump only over usb.
The first partition the ext3 they can I mount but not the btrfs partition.
I red the bug 732149 and the info about rootflags=subvol=@ but the does not help :-(

May 25 18:36:53 thomaslap kernel: [ 993.172064] usb 1-2: new high speed USB device using ehci_hcd and address 3
May 25 18:36:53 thomaslap kernel: [ 993.367689] usbcore: registered new interface driver uas
May 25 18:36:53 thomaslap kernel: [ 993.383573] Initializing USB Mass Storage driver...
May 25 18:36:53 thomaslap kernel: [ 993.383781] scsi6 : usb-storage 1-2:1.0
May 25 18:36:53 thomaslap kernel: [ 993.384935] usbcore: registered new interface driver usb-storage
May 25 18:36:53 thomaslap kernel: [ 993.384939] USB Mass Storage support registered.
May 25 18:36:54 thomaslap kernel: [ 994.389201] scsi 6:0:0:0: Direct-Access STT_FTM3 2GX25H PQ: 0 ANSI: 2 CCS
May 25 18:36:54 thomaslap kernel: [ 994.390135] sd 6:0:0:0: Attached scsi generic sg1 type 0
May 25 18:36:54 thomaslap kernel: [ 994.393141] sd 6:0:0:0: [sdb] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
May 25 18:36:54 thomaslap kernel: [ 994.393886] sd 6:0:0:0: [sdb] Write Protect is off
May 25 18:36:54 thomaslap kernel: [ 994.393890] sd 6:0:0:0: [sdb] Mode Sense: 00 38 00 00
May 25 18:36:54 thomaslap kernel: [ 994.394508] sd 6:0:0:0: [sdb] Asking for cache data failed
May 25 18:36:54 thomaslap kernel: [ 994.394513] sd 6:0:0:0: [sdb] Assuming drive cache: write through
May 25 18:36:54 thomaslap kernel: [ 994.396907] sd 6:0:0:0: [sdb] Asking for cache data failed
May 25 18:36:54 thomaslap kernel: [ 994.396915] sd 6:0:0:0: [sdb] Assuming drive cache: write through
May 25 18:36:54 thomaslap kernel: [ 994.398291] sdb: sdb1 sdb2 < sdb5 >
May 25 18:36:54 thomaslap kernel: [ 994.402143] sd 6:0:0:0: [sdb] Asking for cache data failed
May 25 18:36:54 thomaslap kernel: [ 994.402149] sd 6:0:0:0: [sdb] Assuming drive cache: write through
May 25 18:36:54 thomaslap kernel: [ 994.402153] sd 6:0:0:0: [sdb] Attached SCSI disk
May 25 18:36:55 thomaslap kernel: [ 994.612151] EXT3-fs: barriers not enabled
May 25 18:36:55 thomaslap kernel: [ 994.616237] kjournald starting. Commit interval 5 seconds
May 25 18:36:55 thomaslap kernel: [ 994.618956] EXT3-fs (sdb1): using internal journal
May 25 18:36:55 thomaslap kernel: [ 994.618961] EXT3-fs (sdb1): recovery complete
May 25 18:36:55 thomaslap kernel: [ 994.618966] EXT3-fs (sdb1): mounted filesystem with ordered data mode
May 25 18:36:55 thomaslap kernel: [ 994.904453] Btrfs loaded
May 25 18:36:55 thomaslap kernel: [ 994.905401] device fsid cf41ca0fee76d868-e5b125930ba2389c devid 1 transid 80120 /dev/sdb5
May 25 18:36:56 thomaslap kernel: [ 995.415645] ------------[ cut here ]------------
May 25 18:36:56 thomaslap kernel: [ 995.415696] kernel BUG at /build/buildd/linux-2.6.38/fs/btrfs/tree-log.c:820!
May 25 18:36:56 thomaslap kernel: [ 995.415746] invalid opcode: 0000 [#1] SMP
May 25 18:36:56 thomaslap kernel: [ 995.415787] last sysfs file: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1/uevent
May 25 18:36:56 thomaslap kernel: [ 995.415867] Modules linked in: btrfs zlib_deflate libcrc32c usb_storage uas nfs lockd fscache nfs_acl auth_rpcgss sunrpc binfmt_misc ip6table_filter ip6_tables ipt_MASQUERADE iptable_nat nf_nat vboxnetadp vboxnetflt nf_conntrack_ipv4 nf_defrag_ipv4 xt_state vboxdrv nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables bridge stp parport_pc ppdev snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_hwdep snd_pcm thinkpad_acpi arc4 snd_seq_midi snd_rawmidi iwl3945 snd_seq_midi_event pcmcia snd_seq iwlcore i915 drm_kms_helper yenta_socket drm tpm_tis snd_timer snd_seq_device snd pcmcia_rsrc i2c_algo_bit tpm lp soundcore tpm_bios psmouse serio_raw pcmcia_core parport video snd_page_alloc nvram mac80211 cfg80211 ahci libahci firewire_ohci sdhci_pci firewire_core crc_itu_t sdhci e1000e
May 25 18:36:56 thomaslap kernel: [ 995.416659]
May 25 18:36:56 thomaslap kernel: [ 995.416676] Pid: 2950, comm: mount Not tainted 2.6.38-8-generic #42-Ubuntu LENOVO 1706MNG/1706MNG
May 25 18:36:56 thomaslap kernel: [ 995.416755] EIP: 0060:[<f9b59059>] EFLAGS: 00010246 CPU: 1
May 25 18:36:56 thomaslap kernel: [ 995.416813] EIP is at add_inode_ref+0x3e9/0x400 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.418875] EAX: 00000000 EBX: 00000002 ECX: c1745b40 EDX: 0002a71e
May 25 18:36:56 thomaslap kernel: [ 995.419373] ESI: 00000097 EDI: e9481d40 EBP: e9481c44 ESP: e9481be8
May 25 18:36:56 thomaslap kernel: [ 995.419373] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
May 25 18:36:56 thomaslap kernel: [ 995.419373] Process mount (pid: 2950, ti=e9480000 task=ec6bd860 task.ti=e9480000)
May 25 18:36:56 thomaslap kernel: [ 995.419373] Stack:
May 25 18:36:56 thomaslap kernel: [ 995.419373] 00000000 00000000 e8f3b900 f2f50114 e9481c10 c10335ae fffff000 e9481c18
May 25 18:36:56 thomaslap kernel: [ 995.419373] e9481c18 c1033416 00000000 e8f3d000 e8fcb084 f9b490f8 f9b02de7 e8f3b900
May 25 18:36:56 thomaslap kernel: [ 995.419373] f2e37000 ed200800 fffa6000 e9481c44 00000002 00000097 e9481d40 e9481ca4
May 25 18:36:56 thomaslap kernel: [ 995.419373] Call Trace:
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c10335ae>] ? kmap_atomic_prot+0xde/0x100
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1033416>] ? __kunmap_atomic+0x76/0xa0
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b490f8>] ? read_extent_buffer+0xa8/0x140 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b02de7>] ? btrfs_alloc_path+0x17/0x30 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b5a606>] replay_one_buffer+0x226/0x2f0 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b57b99>] walk_down_log_tree+0x1d9/0x370 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b57dd1>] walk_log_tree+0xa1/0x1c0 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c127530a>] ? radix_tree_lookup+0xa/0x10
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b5bfdb>] btrfs_recover_log_trees+0x1db/0x2a0 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b5a3e0>] ? replay_one_buffer+0x0/0x2f0 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b20382>] open_ctree+0x10f2/0x1420 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b0090c>] btrfs_fill_super.clone.9+0x5c/0x120 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1277529>] ? strlcpy+0x39/0x50
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b011c0>] btrfs_mount+0x290/0x310 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c10fc2af>] ? __alloc_percpu+0xf/0x20
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c114112e>] ? alloc_vfsmnt+0xae/0x130
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c113f884>] ? find_filesystem+0x44/0x50
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1129315>] vfs_kern_mount+0x75/0x250
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c113fac7>] ? get_fs_type+0x97/0xb0
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<f9b00f30>] ? btrfs_mount+0x0/0x310 [btrfs]
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c112954e>] do_kern_mount+0x3e/0xe0
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1142993>] do_mount+0x1b3/0x1e0
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1142d2b>] sys_mount+0x6b/0xa0
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1509bf4>] syscall_call+0x7/0xb
May 25 18:36:56 thomaslap kernel: [ 995.419373] [<c1500000>] ? print_cpu_info+0xe3/0x126
May 25 18:36:56 thomaslap kernel: [ 995.419373] Code: 8b 45 e4 e8 4a 9e fa ff 8b 45 d4 e8 c2 47 5e c7 8b 45 cc e8 ba 47 5e c7 31 c0 83 c4 50 5b 5e 5f 5d c3 b8 fe ff ff ff eb f1 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 0f 0b 8d 74 26 00 8d bc 27 00 00
May 25 18:36:56 thomaslap kernel: [ 995.419373] EIP: [<f9b59059>] add_inode_ref+0x3e9/0x400 [btrfs] SS:ESP 0068:e9481be8
May 25 18:36:56 thomaslap kernel: [ 995.547901] ---[ end trace 6cb4ecc4442104eb ]---

Shimi Chen (shimi-chen)
affects: ubuntu → busybox (Ubuntu)
thomas_p75 (thomas-p75)
description: updated
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Kernel panic -> linux package

Looks like a similar oops to bug 803685

affects: busybox (Ubuntu) → linux (Ubuntu)
tags: added: kernel-fs needs-upstream-testing
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

If you can, please also test the latest upstream kernel available. It will allow additional upstream developers to examine this issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in dianosing the problem. From a terminal window please run:

apport-collect 788238

and then change the status of the bug back to 'New'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Carey Underwood (cwillu) wrote :

This is a known issue upstream.

Upstream btrfs-tools has a utility "btrfs-zero-log" which will zero out the log and make the filesystem mountable again. It's not yet included in ubuntu's package however, and is not built by default ("make btrfs-zero-log" in the source tree will build it).

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.