Hello, got a problem with a machine here. First question: how to run btrfsck on boot? adding fsck.mode=force as kernel parameter seems only to only to check boot partition. The rebooted system fails again after some minutes (see log at end of post) 2nd question. What happened? The system ran for weeks without problems, five days ago a reboot because of updates. Then a reset on the SATA bus occured, but the btrfs is running on a level 1 mdraid. btrfs failed and volumes get remount ro. This is what I found in the logs: [15233.444359] BTRFS info (device md2): relocating block group 62373494784 flags 34 [15234.994089] BTRFS info (device md2): relocating block group 63480791040 flags 34 [15236.060747] BTRFS info (device md2): relocating block group 63514345472 flags 34 [15237.072850] BTRFS info (device md2): relocating block group 63547899904 flags 34 [15238.148345] BTRFS info (device md2): relocating block group 63581454336 flags 34 [393168.772025] ata3.00: exception Emask 0x10 SAct 0x0 SErr 0x1810000 action 0xe frozen [393168.772030] ata3.00: irq_stat 0x00400000, PHY RDY changed [393168.772032] ata3: SError: { PHYRdyChg LinkSeq TrStaTrns } [393168.772036] ata3.00: failed command: FLUSH CACHE EXT [393168.772041] ata3.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 19 res 40/00:94:c0:26:9c/00:00:08:00:00/40 Emask 0x10 (ATA bus error) [393168.772043] ata3.00: status: { DRDY } [393168.772046] ata3: hard resetting link [393172.792055] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [393172.793691] ata3.00: configured for UDMA/100 [393172.793695] ata3.00: retrying FLUSH 0xea Emask 0x10 [393172.793889] ata3: EH complete [394038.449156] BTRFS error (device md2): parent transid verify failed on 51072286720 wanted 132076 found 86207 [394038.463093] BTRFS error (device md2): parent transid verify failed on 51072286720 wanted 132076 found 86207 [394038.463105] ------------[ cut here ]------------ [394038.463159] WARNING: CPU: 1 PID: 491 at ../fs/btrfs/extent-tree.c:2927 btrfs_run_delayed_refs+0x27a/0x2f0 [btrfs]() [394038.463159] BTRFS: Transaction aborted (error -5) [394038.463200] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace sunrpc fscache af_packet iscsi_ibft iscsi_boot_sysfs snd_hda_codec_realtek snd_hda_codec_generic ext4 crc16 jbd2 mbcache snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd soundcore pcspkr acpi_cpufreq fjes i2c_nforce2 coretemp forcedeth shpchp processor btrfs xor raid6_pq raid1 md_mod uas usb_storage sr_mod cdrom sd_mod ata_generic nouveau firewire_ohci ahci ohci_pci libahci pata_amd mxm_wmi video i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm serio_raw drm firewire_core crc_itu_t ehci_pci ohci_hcd ehci_hcd usbcore libata usb_common wmi button sg scsi_mod autofs4 [394038.463203] CPU: 1 PID: 491 Comm: btrfs-transacti Not tainted 4.4.36-8-default #1 [394038.463203] Hardware name: PACKARD BELL BV iMedia X1082/MCP73, BIOS PBDIEGMB.P15 07/10/2008 [394038.463206] 0000000000000000 ffffffff81327b17 ffff880035fd3d78 ffffffffa0595699 [394038.463208] ffffffff8107e841 ffff880095f649a0 ffff880035fd3dc8 ffff88002a160f80 [394038.463209] 0000000000000000 ffff88002a160e10 ffffffff8107e8bc ffffffffa0598470 [394038.463210] Call Trace: [394038.463223] [<ffffffff81019ea9>] dump_trace+0x59/0x320 [394038.463226] [<ffffffff8101a26a>] show_stack_log_lvl+0xfa/0x180 [394038.463229] [<ffffffff8101b011>] show_stack+0x21/0x40 [394038.463233] [<ffffffff81327b17>] dump_stack+0x5c/0x85 [394038.463237] [<ffffffff8107e841>] warn_slowpath_common+0x81/0xb0 [394038.463240] [<ffffffff8107e8bc>] warn_slowpath_fmt+0x4c/0x50 [394038.463256] [<ffffffffa04fffea>] btrfs_run_delayed_refs+0x27a/0x2f0 [btrfs] [394038.463282] [<ffffffffa0515b20>] btrfs_commit_transaction+0x40/0xaf0 [btrfs] [394038.463301] [<ffffffffa051062b>] transaction_kthread+0x21b/0x280 [btrfs] [394038.463305] [<ffffffff8109d308>] kthread+0xc8/0xe0 [394038.463311] [<ffffffff8160ac8f>] ret_from_fork+0x3f/0x70 [394038.464013] DWARF2 unwinder stuck at ret_from_fork+0x3f/0x70 [394038.464013] Leftover inexact backtrace: [394038.464013] [<ffffffff8109d240>] ? kthread_park+0x50/0x50 [394038.465233] ---[ end trace 558b3d028338b98f ]--- [394038.465237] BTRFS: error (device md2) in btrfs_run_delayed_refs:2927: errno=-5 IO failure [394038.465239] BTRFS info (device md2): forced readonly [394038.465490] pending csums is 4096 what confuses me twice is this: parent transid verify failed [...] 132076 found 86207 this difference of transaction ids is very huge?! that is what happens after a reboot: [ 329.623911] BTRFS error (device md2): parent transid verify failed on 51072483328 wanted 132076 found 117819 [ 329.629476] BTRFS error (device md2): parent transid verify failed on 51072483328 wanted 132076 found 117819 [ 329.629493] ------------[ cut here ]------------ [ 329.629560] WARNING: CPU: 0 PID: 303 at ../fs/btrfs/extent-tree.c:2927 btrfs_run_delayed_refs+0x27a/0x2f0 [btrfs]() [ 329.629561] BTRFS: Transaction aborted (error -5) [ 329.629602] Modules linked in: joydev rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace sunrpc fscache snd_hda_codec_realtek snd_hda_codec_generic af_packet iscsi_ibft iscsi_boot_sysfs ext4 crc16 jbd2 mbcache snd_hda_codec_hdmi coretemp snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep pcspkr snd_pcm snd_timer acpi_cpufreq snd forcedeth fjes shpchp soundcore processor i2c_nforce2 btrfs xor raid6_pq raid1 md_mod uas usb_storage sd_mod sr_mod cdrom ata_generic ahci libahci pata_amd firewire_ohci nouveau ohci_pci mxm_wmi video i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm firewire_core serio_raw crc_itu_t libata ehci_pci ohci_hcd ehci_hcd usbcore usb_common wmi button sg scsi_mod autofs4 [ 329.629605] CPU: 0 PID: 303 Comm: kworker/u8:3 Not tainted 4.4.36-8-default #1 [ 329.629606] Hardware name: PACKARD BELL BV iMedia X1082/MCP73, BIOS PBDIEGMB.P15 07/10/2008 [ 329.629625] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs] [ 329.629628] 0000000000000000 ffffffff81327b17 ffff8800351f3d28 ffffffffa05a9699 [ 329.629630] ffffffff8107e841 ffff8800bf5b0870 ffff8800351f3d78 ffff8800ba5611c0 [ 329.629631] 0000000000000020 ffff8800ba561050 ffffffff8107e8bc ffffffffa05ac470 [ 329.629632] Call Trace: [ 329.629651] [<ffffffff81019ea9>] dump_trace+0x59/0x320 [ 329.629655] [<ffffffff8101a26a>] show_stack_log_lvl+0xfa/0x180 [ 329.629658] [<ffffffff8101b011>] show_stack+0x21/0x40 [ 329.629662] [<ffffffff81327b17>] dump_stack+0x5c/0x85 [ 329.629667] [<ffffffff8107e841>] warn_slowpath_common+0x81/0xb0 [ 329.629670] [<ffffffff8107e8bc>] warn_slowpath_fmt+0x4c/0x50 [ 329.629686] [<ffffffffa0513fea>] btrfs_run_delayed_refs+0x27a/0x2f0 [btrfs] [ 329.629709] [<ffffffffa0514092>] delayed_ref_async_start+0x32/0x80 [btrfs] [ 329.629728] [<ffffffffa055a633>] normal_work_helper+0xc3/0x320 [btrfs] [ 329.629734] [<ffffffff810971e5>] process_one_work+0x155/0x440 [ 329.629737] [<ffffffff81097d26>] worker_thread+0x116/0x4b0 [ 329.629740] [<ffffffff8109d308>] kthread+0xc8/0xe0 [ 329.629746] [<ffffffff8160ac8f>] ret_from_fork+0x3f/0x70 [ 329.631628] DWARF2 unwinder stuck at ret_from_fork+0x3f/0x70 [ 329.631629] Leftover inexact backtrace: [ 329.631636] [<ffffffff8109d240>] ? kthread_park+0x50/0x50 [ 329.631638] ---[ end trace 92c71c247ee8d7b4 ]--- [ 329.631644] BTRFS: error (device md2) in btrfs_run_delayed_refs:2927: errno=-5 IO failure [ 329.631646] BTRFS info (device md2): forced readonly I am just looking for a blank DVD to start a live/rescue system. With other filesystems there was no such trouble, fsck was forced after unclean unmounts. Thanks a lot and happy christmas Paul -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org