* BTRFS partition won't mount @ 2011-08-03 20:46 Adam Newby 2011-08-03 20:50 ` Hugo Mills 2011-08-05 8:20 ` Yuri D'Elia 0 siblings, 2 replies; 7+ messages in thread From: Adam Newby @ 2011-08-03 20:46 UTC (permalink / raw) To: linux-btrfs@vger.kernel.org Hello all, I recently had a power failure and can no longer mount my /home directory. The harddrive has two BTRFS partitions: sda7(/) and sda8(/home). The / partition loads up just fine, but /home does not. I've tried btrfsck as shown below and I've included dmesg pertaining to btrfs. This is on ArchLinux and the software versions are as follows: btrfs-progs-unstable 0.19.20101006-1 linux 3.0 I actually have quite a bit of data on this partition that I would rather not lose. Please help! Thanks, Adam btrfsck /dev/sda8: found 152764059648 bytes used err is 1 total csum bytes: 148756860 total tree bytes: 436686848 total fs tree bytes: 160870400 btree space waste bytes: 110424811 file data blocks allocated: 4925582483456 referenced 114231959552 Btrfs Btrfs v0.19 root 5 inode 738980 errors 400 root 5 inode 771936 errors 400 root 5 inode 771937 errors 400 root 5 inode 771938 errors 400 root 5 inode 771939 errors 400 root 5 inode 771941 errors 400 root 5 inode 771942 errors 400 dmesg |grep btrfs [ 15.148281] btrfs: unlinked 13 orphans [ 27.156006] kernel BUG at fs/btrfs/inode.c:4586! [ 27.156124] Modules linked in: vboxnetflt vboxdrv snd_hda_codec_hdmi joydev usbhid hid snd_hda_codec_idt snd_hda_intel snd_hda_codec sdhci_pci sdhci psmouse snd_pcm snd_hwdep btusb firewire_ohci bluetooth crc16 dell_wmi sg nvidia(P) firewire_core arc4 snd_timer evdev serio_raw sparse_keymap i2c_i801 iwlagn mmc_core snd battery video soundcore intel_ips wmi ppdev dell_laptop parport_pc container button ac mac80211 cfg80211 pcspkr rfkill parport dcdbas iTCO_wdt i2c_core crc_itu_t iTCO_vendor_support intel_agp snd_page_alloc processor intel_gtt e1000e btrfs zlib_deflate crc32c libcrc32c ext2 mbcache ehci_hcd usbcore sr_mod cdrom sd_mod ahci libahci libata scsi_mod [ 27.157096] RIP: 0010:[<ffffffffa010b781>] [<ffffffffa010b781>] btrfs_add_link+0x161/0x1c0 [btrfs] [ 27.158176] [<ffffffffa013482f>] add_inode_ref+0x30f/0x3d0 [btrfs] [ 27.158245] [<ffffffffa013567b>] replay_one_buffer+0x2bb/0x3b0 [btrfs] [ 27.158318] [<ffffffffa0122f27>] ? alloc_extent_buffer+0x87/0x3d0 [btrfs] [ 27.158391] [<ffffffffa0132cd1>] walk_down_log_tree+0x391/0x540 [btrfs] [ 27.160851] [<ffffffffa0132f7d>] walk_log_tree+0xfd/0x270 [btrfs] [ 27.165784] [<ffffffffa0136d11>] btrfs_recover_log_trees+0x211/0x300 [btrfs] [ 27.168297] [<ffffffffa01353c0>] ? replay_one_dir_item+0xe0/0xe0 [btrfs] [ 27.170832] [<ffffffffa00fd907>] open_ctree+0x13e7/0x17a0 [btrfs] [ 27.178506] [<ffffffffa00d879e>] btrfs_mount+0x40e/0x5c0 [btrfs] [ 27.212137] RIP [<ffffffffa010b781>] btrfs_add_link+0x161/0x1c0 [btrfs] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: BTRFS partition won't mount 2011-08-03 20:46 BTRFS partition won't mount Adam Newby @ 2011-08-03 20:50 ` Hugo Mills 2011-08-09 3:54 ` C Anthony Risinger 2011-08-05 8:20 ` Yuri D'Elia 1 sibling, 1 reply; 7+ messages in thread From: Hugo Mills @ 2011-08-03 20:50 UTC (permalink / raw) To: Adam Newby; +Cc: linux-btrfs@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 3477 bytes --] On Wed, Aug 03, 2011 at 04:46:01PM -0400, Adam Newby wrote: > I recently had a power failure and can no longer mount my /home > directory. The harddrive has two BTRFS partitions: sda7(/) and > sda8(/home). The / partition loads up just fine, but /home does > not. I've tried btrfsck as shown below and I've included dmesg > pertaining to btrfs. This is on ArchLinux and the software versions > are as follows: > btrfs-progs-unstable 0.19.20101006-1 > linux 3.0 Try the instructions on the wiki at [1]. (And please feed back and/or fix any issues you have with the instructions -- they're still quite new and probably have awkward corners). > I actually have quite a bit of data on this partition that I would > rather not lose. Please help! You *really* need to think about making good backups (otherwise we'll have to set the cwillu on you). Hugo. [1] https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_can.27t_mount_my_filesystem.2C_and_I_get_a_kernel_oops.21 > Thanks, > Adam > > btrfsck /dev/sda8: > found 152764059648 bytes used err is 1 > total csum bytes: 148756860 > total tree bytes: 436686848 > total fs tree bytes: 160870400 > btree space waste bytes: 110424811 > file data blocks allocated: 4925582483456 > referenced 114231959552 > Btrfs Btrfs v0.19 > root 5 inode 738980 errors 400 > root 5 inode 771936 errors 400 > root 5 inode 771937 errors 400 > root 5 inode 771938 errors 400 > root 5 inode 771939 errors 400 > root 5 inode 771941 errors 400 > root 5 inode 771942 errors 400 > > dmesg |grep btrfs > [ 15.148281] btrfs: unlinked 13 orphans > [ 27.156006] kernel BUG at fs/btrfs/inode.c:4586! > [ 27.156124] Modules linked in: vboxnetflt vboxdrv snd_hda_codec_hdmi joydev usbhid hid snd_hda_codec_idt snd_hda_intel snd_hda_codec sdhci_pci sdhci psmouse snd_pcm snd_hwdep btusb firewire_ohci bluetooth crc16 dell_wmi sg nvidia(P) firewire_core arc4 snd_timer evdev serio_raw sparse_keymap i2c_i801 iwlagn mmc_core snd battery video soundcore intel_ips wmi ppdev dell_laptop parport_pc container button ac mac80211 cfg80211 pcspkr rfkill parport dcdbas iTCO_wdt i2c_core crc_itu_t iTCO_vendor_support intel_agp snd_page_alloc processor intel_gtt e1000e btrfs zlib_deflate crc32c libcrc32c ext2 mbcache ehci_hcd usbcore sr_mod cdrom sd_mod ahci libahci libata scsi_mod > [ 27.157096] RIP: 0010:[<ffffffffa010b781>] [<ffffffffa010b781>] btrfs_add_link+0x161/0x1c0 [btrfs] > [ 27.158176] [<ffffffffa013482f>] add_inode_ref+0x30f/0x3d0 [btrfs] > [ 27.158245] [<ffffffffa013567b>] replay_one_buffer+0x2bb/0x3b0 [btrfs] > [ 27.158318] [<ffffffffa0122f27>] ? alloc_extent_buffer+0x87/0x3d0 [btrfs] > [ 27.158391] [<ffffffffa0132cd1>] walk_down_log_tree+0x391/0x540 [btrfs] > [ 27.160851] [<ffffffffa0132f7d>] walk_log_tree+0xfd/0x270 [btrfs] > [ 27.165784] [<ffffffffa0136d11>] btrfs_recover_log_trees+0x211/0x300 [btrfs] > [ 27.168297] [<ffffffffa01353c0>] ? replay_one_dir_item+0xe0/0xe0 [btrfs] > [ 27.170832] [<ffffffffa00fd907>] open_ctree+0x13e7/0x17a0 [btrfs] > [ 27.178506] [<ffffffffa00d879e>] btrfs_mount+0x40e/0x5c0 [btrfs] > [ 27.212137] RIP [<ffffffffa010b781>] btrfs_add_link+0x161/0x1c0 [btrfs] -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- "You got very nice eyes, Deedee. Never noticed them --- before. They real?" [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: BTRFS partition won't mount 2011-08-03 20:50 ` Hugo Mills @ 2011-08-09 3:54 ` C Anthony Risinger 2011-08-09 12:29 ` Adam Newby 2011-08-09 21:10 ` C Anthony Risinger 0 siblings, 2 replies; 7+ messages in thread From: C Anthony Risinger @ 2011-08-09 3:54 UTC (permalink / raw) To: Hugo Mills, Adam Newby, linux-btrfs@vger.kernel.org On Wed, Aug 3, 2011 at 3:50 PM, Hugo Mills <hugo@carfax.org.uk> wrote: > > =C2=A0 Try the instructions on the wiki at [1]. (And please feed back > and/or fix any issues you have with the instructions -- they're still > quite new and probably have awkward corners). > > [1] https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_can.27t_mou= nt_my_filesystem.2C_and_I_get_a_kernel_oops.21 this worked perfectly for me ... just saved my night from tedious restoration :-) im on kernel 3.0.1 -- hard poweroff led to that problem. i haven't had any issues for some time ... im not sure what the problem was exactly, but sometimes systemd gets a little twacky and takes a year to shutdown ... guess i got a little impatient :-) anyways, thanks for the integration work! --=20 C Anthony -- 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] 7+ messages in thread
* RE: BTRFS partition won't mount 2011-08-09 3:54 ` C Anthony Risinger @ 2011-08-09 12:29 ` Adam Newby 2011-08-09 12:54 ` Hugo Mills 2011-08-09 21:10 ` C Anthony Risinger 1 sibling, 1 reply; 7+ messages in thread From: Adam Newby @ 2011-08-09 12:29 UTC (permalink / raw) To: C Anthony Risinger, Hugo Mills, linux-btrfs@vger.kernel.org SSBoYXZlIHRvIHNheSB0aGlzIHNvbHV0aW9uIHNhdmVkIG1lLiBJJ3ZlIGxvc3QgYSBCVFJGUyBw YXJ0aXRpb24gYmVmb3JlIGFuZCB0aGlzIHRvb2wgd2FzIG5vdCBhdmFpbGFibGUgYXQgdGhhdCB0 aW1lLiBJcyB0aGlzIGdvaW5nIHRvIGJlIG1ha2luZyBpdCBpbnRvIGEga2VybmVsIHB1bGwgYW55 dGltZSBzb29uPyBUaGUgb25seSByZWFzb24gSSBtZW50aW9uIGl0IGlzIGJlY2F1c2UgcHJldHR5 IG11Y2ggZXZlcnlvbmUgSSBrbm93IGhhcyBzb3VyZWQgb24gQlRSRlMgZHVlIHRvIGxvc2luZyBh IHBhcnRpdGlvbiBhdCBzb21lIHBvaW50IG9yIGFub3RoZXIgZHVlIHRvIGZyaXZvbG91cyBlcnJv ci4gVGhpcyBzZWVtcyBsaWtlIGEgZmluZSBhZGRpdGlvbiB0byB0aGUgZmlsZXN5c3RlbS4NCg0K LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEMgQW50aG9ueSBSaXNpbmdlciBbbWFp bHRvOmFudGhvbnlAeHRmeC5tZV0gDQpTZW50OiBNb25kYXksIEF1Z3VzdCAwOCwgMjAxMSAxMTo1 NCBQTQ0KVG86IEh1Z28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YXIgdG8g c2h1dGRvd24gLi4uIGd1ZXNzIGkgZ290IGEgbGl0dGxlIGltcGF0aWVudCA6LSkNCg0KYW55d2F5 cywgdGhhbmtzIGZvciB0aGUgaW50ZWdyYXRpb24gd29yayENCg0KLS0gDQoNCkMgQW50aG9ueQ0K ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: BTRFS partition won't mount 2011-08-09 12:29 ` Adam Newby @ 2011-08-09 12:54 ` Hugo Mills 0 siblings, 0 replies; 7+ messages in thread From: Hugo Mills @ 2011-08-09 12:54 UTC (permalink / raw) To: Adam Newby; +Cc: C Anthony Risinger, linux-btrfs@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 2392 bytes --] On Tue, Aug 09, 2011 at 08:29:06AM -0400, Adam Newby wrote: > I have to say this solution saved me. I've lost a BTRFS partition > before and this tool was not available at that time. Is this going > to be making it into a kernel pull anytime soon? The only reason I > mention it is because pretty much everyone I know has soured on > BTRFS due to losing a partition at some point or another due to > frivolous error. This seems like a fine addition to the filesystem. My understanding is that the btrfs-zero-log tool is something of a blunt object, and shouldn't be applied automatically, so I think it's unlikely to go into the kernel in its current form. From what Chris implied on IRC a few days ago, if we encounter corrupt items in the log, we should drop only those items (and their dependents?), not the entire log tree. I'd guess that as people work on reducing the number of BUG_ONs in the code and passing the errors back up the stack, this will become easier to do. Until then, we do have btrfs-zero-log. (And the new recovery tool coming shortly, too). Hugo. > -----Original Message----- > From: C Anthony Risinger [mailto:anthony@xtfx.me] > Sent: Monday, August 08, 2011 11:54 PM > To: Hugo Mills; Adam Newby; linux-btrfs@vger.kernel.org > Subject: Re: BTRFS partition won't mount > > On Wed, Aug 3, 2011 at 3:50 PM, Hugo Mills <hugo@carfax.org.uk> wrote: > > > > Try the instructions on the wiki at [1]. (And please feed back > > and/or fix any issues you have with the instructions -- they're still > > quite new and probably have awkward corners). > > > > [1] > > https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_can.27t_mount_my > > _filesystem.2C_and_I_get_a_kernel_oops.21 > > this worked perfectly for me ... just saved my night from tedious restoration :-) > > im on kernel 3.0.1 -- hard poweroff led to that problem. i haven't had any issues for some time ... im not sure what the problem was exactly, but sometimes systemd gets a little twacky and takes a year to shutdown ... guess i got a little impatient :-) > > anyways, thanks for the integration work! > -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- 2 + 2 = 5, for sufficiently large values of 2. --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: BTRFS partition won't mount 2011-08-09 3:54 ` C Anthony Risinger 2011-08-09 12:29 ` Adam Newby @ 2011-08-09 21:10 ` C Anthony Risinger 1 sibling, 0 replies; 7+ messages in thread From: C Anthony Risinger @ 2011-08-09 21:10 UTC (permalink / raw) To: Hugo Mills, Adam Newby, linux-btrfs@vger.kernel.org On Mon, Aug 8, 2011 at 10:54 PM, C Anthony Risinger <anthony@xtfx.me> w= rote: > On Wed, Aug 3, 2011 at 3:50 PM, Hugo Mills <hugo@carfax.org.uk> wrote= : >> >> =C2=A0 Try the instructions on the wiki at [1]. (And please feed bac= k >> and/or fix any issues you have with the instructions -- they're stil= l >> quite new and probably have awkward corners). >> >> [1] https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_can.27t_mo= unt_my_filesystem.2C_and_I_get_a_kernel_oops.21 > > this worked perfectly for me ... just saved my night from tedious > restoration :-) > > im on kernel 3.0.1 -- hard poweroff led to that problem. =C2=A0i have= n't > had any issues for some time ... im not sure what the problem was > exactly, but sometimes systemd gets a little twacky and takes a year > to shutdown ... guess i got a little impatient :-) > > anyways, thanks for the integration work! well i tried to shutdown again and had to force poweroff via `echo b > /proc/sysrq-trigger` (but this time it was because dbus segfaulted and i couldnt ask systemd to reboot ... `kill -INT 1` wasn't working either, maybe all systemd related) =2E.. the same thing happened again. i'm wondering if btrfs is causing the hang to begin with? i will watch it after i fix it tonight by making systemd more verbose and see what it has to say. im wondering: ) what else i could try to determine if btrfs is contributing to the is= sue ) any other more graceful options than `echo b > /proc/sysrq-trigger` e= xist thanks, --=20 C Anthony -- 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] 7+ messages in thread
* Re: BTRFS partition won't mount 2011-08-03 20:46 BTRFS partition won't mount Adam Newby 2011-08-03 20:50 ` Hugo Mills @ 2011-08-05 8:20 ` Yuri D'Elia 1 sibling, 0 replies; 7+ messages in thread From: Yuri D'Elia @ 2011-08-05 8:20 UTC (permalink / raw) To: linux-btrfs On Wed, 3 Aug 2011 16:46:01 -0400 Adam Newby <anewby@ceradyne.com> wrote: > Hello all, > > I recently had a power failure and can no longer mount my /home directory. The harddrive has two BTRFS partitions: sda7(/) and sda8(/home). The / partition loads up just fine, but /home does not. I've tried btrfsck as shown below and I've included dmesg pertaining to btrfs. This is on ArchLinux and the software versions are as follows: > btrfs-progs-unstable 0.19.20101006-1 > linux 3.0 Just a question here: how come corruption after power loss is *so* common by reading this list? I mean, are there some/hidden journal flushing issues that lead to this or what? I tried to cycle my testing machines several times to test the fs consistency months ago and I never had any corruption issues so far, but it seems I just could be lucky. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-08-09 21:10 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-08-03 20:46 BTRFS partition won't mount Adam Newby 2011-08-03 20:50 ` Hugo Mills 2011-08-09 3:54 ` C Anthony Risinger 2011-08-09 12:29 ` Adam Newby 2011-08-09 12:54 ` Hugo Mills 2011-08-09 21:10 ` C Anthony Risinger 2011-08-05 8:20 ` Yuri D'Elia
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).