Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
On Sat, Sep 21, 2013 at 1:20 PM, Ahmet Inan wrote: >> You will want the patch I just sent, >> >> Btrfs: create the uuid tree on remount rw >> >> and that should fix the snapshot problems. Thanks, > > thanks Josef - you can close this bug: > > https://bugzilla.kernel.org/show_bug.cgi?id=61301 > > then. will try your patch later, too. > ok, works for me, too. changed state of bug to "resolved" Ahmet -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
> You will want the patch I just sent, > > Btrfs: create the uuid tree on remount rw > > and that should fix the snapshot problems. Thanks, thanks Josef - you can close this bug: https://bugzilla.kernel.org/show_bug.cgi?id=61301 then. will try your patch later, too. Ahmet -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
Am Samstag, 21. September 2013, 10:54:55 schrieb Martin Steigerwald: > Am Freitag, 20. September 2013, 22:34:15 schrieb Josef Bacik: > > On Sat, Sep 21, 2013 at 12:25:02AM +0200, Martin Steigerwald wrote: > > > Hi! > > > > > > I tried to create a snapshot today like this: > > > > > > merkaba:/mnt/debian-zeit> ls -l > > > insgesamt 0 > > > drwxr-xr-x 1 root root 210 Sep 20 11:48 root > > > merkaba:/mnt/debian-zeit> btrfs subvol list / > > > ID 256 gen 21382 top level 5 path root > > > merkaba:/mnt/debian-zeit> btrfs subvol snap -r root root-2013-09-20 > > > merkaba:/mnt/debian-zeit#1> > > > > You will want the patch I just sent, > > > > Btrfs: create the uuid tree on remount rw > > > > and that should fix the snapshot problems. Thanks, > > Many thanks, will compile a kernel with that patch. Patch works. I can create snapshots again. Reported-and-tested-by: Martin Steigerwald > Any idea how I can fix these checksum errors without reformatting? I would > like to avoid it if possible. > > In syslog it didn´t mention which files they affected, so maybe it is "just" > metadata. But I just have single for metadata as per suggestion for SSDs. > > Would it make sense to run fsck on it? This problem remains. Could a rebalance of just the metadata help? I just have these two csum errors but don´t see anything misbehaving. Oh well, I had two csum errors, now it is one: merkaba:~> btrfs scrub status / scrub status for 2f5c334d-249b-4c89-95cc-18572f750bd7 scrub started at Sat Sep 21 11:39:24 2013 and finished after 56 seconds total bytes scrubbed: 11.94GB with 1 errors error details: csum=1 corrected errors: 0, uncorrectable errors: 1, unverified errors: 0 Uhm, I have a file name this time. I didn´t see it initially: [ 46.057796] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 46.057899] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 46.083806] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 46.083914] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 46.084012] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 46.084102] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 128.121975] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 128.122159] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 128.428071] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 128.428182] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 140.865751] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 140.865903] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 140.867493] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 140.867736] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 140.868201] BTRFS info (device sdb3): csum failed ino 703589 off 122880 csum 4200103148 expected csum 331742955 [ 152.628173] btrfs: checksum error at logical 347918336 on dev /dev/sdb3, sector 679528, root 256, inode 703589, offset 122880, length 3984, links 1 (path: var/log/auth.log) [ 152.643045] btrfs: checksum error at logical 347918336 on dev /dev/sdb3, sector 679528, root 279, inode 703589, offset 122880, length 3984, links 1 (path: var/log/auth.log) [ 152.643059] btrfs: bdev /dev/sdb3 errs: wr 0, rd 0, flush 0, corrupt 5, gen 0 [ 152.643062] btrfs: unable to fixup (regular) error at logical 347918336 on dev /dev/sdb3 I just run merkaba:~> truncate -s0 /var/log/auth.log And rescrub: That wasn´t enough. So maybe its the directory entry. I will remove the file. Didn´t help either. Oh wait, I just created a snapshot. May be a good idea to delete it again. Uhm: [ 436.342060] btrfs: checksum error at logical 347918336 on dev /dev/sdb3, sector 679528, root 279, inode 703589, offset 122880, length 3984, links 1 (path: var/log/auth.log) [ 436.342072] btrfs: bdev /dev/sdb3 errs: wr 0, rd 0, flush 0, corrupt 7, gen 0 [ 436.342075] btrfs: unable to fixup (regular) error at logical 347918336 on dev /dev/sdb3 [ 496.413453] btrfs: checksum error at logical 347918336 on dev /dev/sdb3, sector 679528, root 279, inode 703589, offset 122880: path resolving failed with ret=-2 [ 496.413471] btrfs: bdev /dev/sdb3 errs: wr 0, rd 0, flush 0, corrupt 8, gen 0 [ 496.413475] btrfs: unable to fixup (regular) error at logical 347918336 on dev /dev/s
Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
Am Freitag, 20. September 2013, 22:34:15 schrieb Josef Bacik: > On Sat, Sep 21, 2013 at 12:25:02AM +0200, Martin Steigerwald wrote: > > Hi! > > > > I tried to create a snapshot today like this: > > > > merkaba:/mnt/debian-zeit> ls -l > > insgesamt 0 > > drwxr-xr-x 1 root root 210 Sep 20 11:48 root > > merkaba:/mnt/debian-zeit> btrfs subvol list / > > ID 256 gen 21382 top level 5 path root > > merkaba:/mnt/debian-zeit> btrfs subvol snap -r root root-2013-09-20 > > merkaba:/mnt/debian-zeit#1> > > You will want the patch I just sent, > > Btrfs: create the uuid tree on remount rw > > and that should fix the snapshot problems. Thanks, Many thanks, will compile a kernel with that patch. Any idea how I can fix these checksum errors without reformatting? I would like to avoid it if possible. In syslog it didn´t mention which files they affected, so maybe it is "just" metadata. But I just have single for metadata as per suggestion for SSDs. Would it make sense to run fsck on it? Thanks, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
On Sat, Sep 21, 2013 at 12:25:02AM +0200, Martin Steigerwald wrote: > Hi! > > I tried to create a snapshot today like this: > > merkaba:/mnt/debian-zeit> ls -l > insgesamt 0 > drwxr-xr-x 1 root root 210 Sep 20 11:48 root > merkaba:/mnt/debian-zeit> btrfs subvol list / > ID 256 gen 21382 top level 5 path root > merkaba:/mnt/debian-zeit> btrfs subvol snap -r root root-2013-09-20 > merkaba:/mnt/debian-zeit#1> > You will want the patch I just sent, Btrfs: create the uuid tree on remount rw and that should fix the snapshot problems. Thanks, Josef -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
On Sat, Sep 21, 2013 at 12:25:02AM +0200, Martin Steigerwald wrote: > Hi! > > I tried to create a snapshot today like this: > > merkaba:/mnt/debian-zeit> ls -l > insgesamt 0 > drwxr-xr-x 1 root root 210 Sep 20 11:48 root > merkaba:/mnt/debian-zeit> btrfs subvol list / > ID 256 gen 21382 top level 5 path root > merkaba:/mnt/debian-zeit> btrfs subvol snap -r root root-2013-09-20 > merkaba:/mnt/debian-zeit#1> > Nevermind I've reproduced it, sorry about that I will get it fixed up and a patch sent out right away. Thanks, Josef -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
On Sat, Sep 21, 2013 at 12:25:02AM +0200, Martin Steigerwald wrote: > Hi! > > I tried to create a snapshot today like this: > > merkaba:/mnt/debian-zeit> ls -l > insgesamt 0 > drwxr-xr-x 1 root root 210 Sep 20 11:48 root > merkaba:/mnt/debian-zeit> btrfs subvol list / > ID 256 gen 21382 top level 5 path root > merkaba:/mnt/debian-zeit> btrfs subvol snap -r root root-2013-09-20 > merkaba:/mnt/debian-zeit#1> > Do you happen to have your messages from the point where you first booted the 3.12 kernel? Could you attach them please if you do? Thanks, Josef -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem
Hi! I tried to create a snapshot today like this: merkaba:/mnt/debian-zeit> ls -l insgesamt 0 drwxr-xr-x 1 root root 210 Sep 20 11:48 root merkaba:/mnt/debian-zeit> btrfs subvol list / ID 256 gen 21382 top level 5 path root merkaba:/mnt/debian-zeit> btrfs subvol snap -r root root-2013-09-20 merkaba:/mnt/debian-zeit#1> on martin@merkaba:~> cat /proc/version Linux version 3.12.0-rc1-tp520 (martin@merkaba) (gcc version 4.8.1 (Debian 4.8.1-10) ) #30 SMP PREEMPT Tue Sep 17 12:40:01 CEST 2013 and got this: [ 44.069468] [ cut here ] [ 44.073291] WARNING: CPU: 3 PID: 3660 at fs/btrfs/uuid-tree.c:45 btrfs_uuid_tree_add+0x4e/0x2a0 [btrfs]() [ 44.073345] Modules linked in: ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables rfcomm bnep bluetooth cuse nfnetlin k_queue nfnetlink_log nfnetlink cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_conservative pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc uinput ext4 crc16 mbcache jbd2 fuse ecryptfs sbs sbshc joydev hdaps(O) tp_smapi(O) thinkpad_ec(O) loop firewire_sbp2 dm_crypt sn d_hda_codec_hdmi snd_hda_codec_conexant snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss x86_pkg_temp_thermal intel_powerclamp coretemp snd_pcm kvm_intel kvm snd_page_alloc iwldvm mac80211 microcode snd_seq_midi snd_seq_midi_event psmouse iwlwifi pcspkr serio_raw i2c_i801 snd_rawmidi lp c_ich mfd_core cfg80211 snd_seq snd_seq_device thinkpad_acpi snd_timer tpm_tis tpm battery tpm_bios nvram ac rfkill snd evdev soundcore processor btrfs xor raid6_pq libcrc32c md_mod dm_mirror dm_region_hash dm_log dm_mod sg sr_mod cdrom sd_mod crc_t10dif crct10dif_pclmul crc32_pclmul crc32c_intel ghas h_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul ahci glue_helper sata_sil24 ablk_helper libahci cryptd sdhci_pci libata ehci_pci sdhci firewire_ohc i ehci_hcd mmc_core firewire_core crc_itu_t scsi_mod usbcore e1000e usb_common ptp pps_core thermal [ 44.073393] CPU: 3 PID: 3660 Comm: btrfs Tainted: G O 3.12.0-rc1-tp520 #30 [ 44.073394] Hardware name: LENOVO 42433WG/42433WG, BIOS 8AET63WW (1.43 ) 05/08/2013 [ 44.073398] 880201e57a58 81420f5f [ 44.073401] 880201e57a90 81036a58 a029928f 88020f8e11e0 [ 44.073404] 880201e57be0 00fb 880201e57aa0 [ 44.073405] Call Trace: [ 44.073413] [] dump_stack+0x4e/0x82 [ 44.073418] [] warn_slowpath_common+0x7a/0x93 [ 44.073451] [] ? btrfs_uuid_tree_add+0x4e/0x2a0 [btrfs] [ 44.073454] [] warn_slowpath_null+0x15/0x17 [ 44.073484] [] btrfs_uuid_tree_add+0x4e/0x2a0 [btrfs] [ 44.073511] [] ? btrfs_update_inode+0x41/0x85 [btrfs] [ 44.073536] [] create_pending_snapshot+0x605/0x6c5 [btrfs] [ 44.073559] [] create_pending_snapshots+0x6d/0x89 [btrfs] [ 44.073581] [] btrfs_commit_transaction+0x3a0/0x857 [btrfs] [ 44.073610] [] btrfs_mksubvol.isra.27+0x253/0x37f [btrfs] [ 44.073637] [] btrfs_ioctl_snap_create_transid+0x121/0x151 [btrfs] [ 44.073662] [] btrfs_ioctl_snap_create_v2+0xcb/0x11c [btrfs] [ 44.073688] [] btrfs_ioctl+0x419/0x1e59 [btrfs] [ 44.073692] [] ? __do_page_fault+0x33d/0x3b1 [ 44.073696] [] ? __cycles_2_ns+0xd/0x4d [ 44.073701] [] vfs_ioctl+0x18/0x34 [ 44.073704] [] do_vfs_ioctl+0x32f/0x3e4 [ 44.073708] [] SyS_ioctl+0x52/0x7d [ 44.073712] [] tracesys+0xdd/0xe2 [ 44.073714] ---[ end trace 2968ecf24298c279 ]--- [ 44.073716] [ cut here ] [ 44.073743] WARNING: CPU: 3 PID: 3660 at fs/btrfs/uuid-tree.c:109 btrfs_uuid_tree_add+0x177/0x2a0 [btrfs]() [ 44.073777] Modules linked in: ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables rfcomm bnep bluetooth cuse nfnetlink_queue nfnetlink_log nfnetlink cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_conservative pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc uinput ext4 crc16 mbcache jbd2 fuse ecryptfs sbs sbshc joydev hdaps(O) tp_smapi(O) thinkpad_ec(O) loop firewire_sbp2 dm_crypt snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss x86_pkg_temp_thermal intel_powerclamp coretemp snd_pcm kvm_intel kvm snd_page_alloc iwldvm mac80211 microcode snd_seq_midi snd_seq_midi_event psmouse iwlwifi pcspkr serio_raw i2c_i801 snd_rawmidi lpc_ich mfd_core cfg80211 snd_seq snd_seq_device thinkpad_acpi snd_timer tpm_tis tpm battery tpm_bios nvram ac rfkill snd evdev soundcore processor btrfs xor raid6_pq libcrc32c md_mod dm_mirror dm_region_hash dm_log dm_mod sg sr_mod cdrom sd_mod crc_t10dif crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul ahci glue_helper sata_sil24 ablk_helper libahci cryptd sdhci_pci libata ehci_pci sdhci firewire_ohci ehci_hcd mmc_core firewire_core crc_itu_t scsi_mod usbcore e1000e usb_common ptp pps_c