You are not logged in.

#1 2016-09-14 07:32:39

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

BTRFS errors on write

Something appears to be broken with my BTRFS file system. Mounts without problems, everyhting seems fine, but shortly after any write (I actually noticed it on a delete operation but confirmed now it is deletes or writes) it gets remounted as read only.

Unmounting and remounting gives no errors but fails again on next write.

Looking in the journal gives me this:

Sep 14 16:27:32 f4hy kernel: ------------[ cut here ]------------
Sep 14 16:27:32 f4hy kernel: WARNING: CPU: 1 PID: 9611 at fs/btrfs/extent-tree.c:2963 btrfs_run_delayed_refs+0x28c/0x2c0 [btrfs]
Sep 14 16:27:32 f4hy kernel: BTRFS: Transaction aborted (error -17)
Sep 14 16:27:32 f4hy kernel: Modules linked in: fuse cfg80211 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media mousedev input_leds btrfs snd_hda_codec_hdmi joydev hid_dr hid_generic ff_memless
Sep 14 16:27:32 f4hy kernel:  psmouse snd_hda_core serio_raw snd_hwdep i2c_i801 snd_pcm snd_timer snd r8169 soundcore mei_me mii mei lpc_ich ie31200_edac edac_core shpchp fan thermal fjes battery video wmi button tpm_tis tpm sch_fq_
Sep 14 16:27:32 f4hy kernel: CPU: 1 PID: 9611 Comm: sync Tainted: P        W  O    4.7.2-1-ARCH #1
Sep 14 16:27:32 f4hy kernel: Hardware name: System manufacturer System Product Name/P8Z77-V LK, BIOS 1402 03/21/2014
Sep 14 16:27:32 f4hy kernel:  0000000000000286 000000002a6e5635 ffff8801fd0c7d20 ffffffff812eb132
Sep 14 16:27:32 f4hy kernel:  ffff8801fd0c7d70 0000000000000000 ffff8801fd0c7d60 ffffffff8107a3ab
Sep 14 16:27:32 f4hy kernel:  00000b93df1db800 ffffffffa14bce15 ffff8802021ac000 0000000000000000
Sep 14 16:27:32 f4hy kernel: Call Trace:
Sep 14 16:27:32 f4hy kernel:  [<ffffffff812eb132>] dump_stack+0x63/0x81
Sep 14 16:27:32 f4hy kernel:  [<ffffffff8107a3ab>] __warn+0xcb/0xf0
Sep 14 16:27:32 f4hy kernel:  [<ffffffff8107a42f>] warn_slowpath_fmt+0x5f/0x80
Sep 14 16:27:32 f4hy kernel:  [<ffffffffa141ec5c>] btrfs_run_delayed_refs+0x28c/0x2c0 [btrfs]
Sep 14 16:27:32 f4hy kernel:  [<ffffffffa14346b2>] btrfs_commit_transaction+0x52/0xae0 [btrfs]
Sep 14 16:27:32 f4hy kernel:  [<ffffffffa1401b56>] btrfs_sync_fs+0x66/0x140 [btrfs]
Sep 14 16:27:32 f4hy kernel:  [<ffffffff8122dc60>] ? do_fsync+0x70/0x70
Sep 14 16:27:32 f4hy kernel:  [<ffffffff8122dc80>] sync_fs_one_sb+0x20/0x30
Sep 14 16:27:32 f4hy kernel:  [<ffffffff811fdfd4>] iterate_supers+0xb4/0x110
Sep 14 16:27:32 f4hy kernel:  [<ffffffff8122dd94>] sys_sync+0x64/0xb0
Sep 14 16:27:32 f4hy kernel:  [<ffffffff815de7b2>] entry_SYSCALL_64_fastpath+0x1a/0xa4
Sep 14 16:27:32 f4hy kernel: ---[ end trace 06cc6272aa8ce77b ]---
Sep 14 16:27:32 f4hy kernel: BTRFS: error (device sdc1) in btrfs_run_delayed_refs:2963: errno=-17 Object already exists
Sep 14 16:27:32 f4hy kernel: BTRFS info (device sdc1): forced readonly

Any ideas of what might be the issue? It seems like there are no problems reading when it is in read only so I guess it should be possible for me to recover, I just don't have the free space to take everything off that drive at the moment.

Offline

#2 2016-09-14 09:44:37

Starfish
Member
From: Germany
Registered: 2015-10-21
Posts: 134

Re: BTRFS errors on write

What do you use this partition for (root, boot, home, ... -directory)?
Is it an external hard disc?
Do you mount as ordinary user or root?
Do you write on it as ordinary user or root?
What's the output of

ls -la <mount point>

?

Last edited by Starfish (2016-09-14 09:52:39)


"Yesterday is history, tomorrow is a mystery, but today is a gift. That is why it is called the present." - Master Oogway

Offline

Board footer

Powered by FluxBB