#19216: BTRFS unreliable on TL-WR842ND
------------------------------------+----------------------------------
Reporter: Just4pLeisure | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Keywords: btrfs, nfs, TL-WR842ND |
------------------------------------+----------------------------------
I hope raising a ticket here is the right thing to, I apologise if not :-(
I have been using my router as a simple NFS NAS for around 2 years with an
ext3 formatted Western Digital 2.5" USB Passport disk. I have also been
slowly moving to BTRFS and thought it about time to convert this disk too
but unfortunately BTRFS is unreliable on my router :-(. It doesn't take
much for an error to happen causing a 'ro' remount. However the disk is
unreadable after the remount, both over NFS and locally. Rebooting the
router seems to be the only way to access the disk again.
My TP-Link router has been upgraded to have 64 MB RAM and I have a 1 GB
swap partition on the disk (btrfs doesn't support swap files). No problems
are found when I use my laptop to check and scrub the disk (i.e. with the
disk connected directly to my laptop).
This is a snippet of from the system log (Chaos Calmer r44555):
[11156.330000] usb 1-1: new high-speed USB device number 2 using ehci-
platform
[11156.490000] usb-storage 1-1:1.0: USB Mass Storage device detected
[11156.490000] scsi0 : usb-storage 1-1:1.0
[11157.500000] scsi 0:0:0:0: Direct-Access WD My Passport 0748
1015 PQ: 0 ANSI: 6
[11157.510000] scsi 0:0:0:1: Enclosure WD SES Device
1015 PQ: 0 ANSI: 6
[11157.520000] sd 0:0:0:0: [sda] Spinning up disk...
[11158.540000] ......ready
[11163.590000] sd 0:0:0:0: [sda] 3906963456 512-byte logical blocks: (2.00
TB/1.81 TiB)
[11163.600000] sd 0:0:0:0: [sda] Write Protect is off
[11163.600000] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[11163.610000] sd 0:0:0:0: [sda] No Caching mode page found
[11163.610000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[11163.620000] sd 0:0:0:0: [sda] No Caching mode page found
[11163.630000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[11163.650000] sda: sda1 sda2
[11163.660000] sd 0:0:0:0: [sda] No Caching mode page found
[11163.670000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[11163.670000] sd 0:0:0:0: [sda] Attached SCSI disk
[11210.890000] Adding 1047548k swap on /dev/sda2. Priority:-1 extents:1
across:1047548k
[11234.190000] BTRFS: device label Media Share devid 1 transid 13976
/dev/sda1
[11234.200000] BTRFS info (device sda1): disk space caching is enabled
[11409.700000] nfsd: last server has exited, flushing export cache
[11409.860000] svc: failed to register lockdv1 RPC service (errno 124).
[11563.240000] ------------[ cut here ]------------
[11563.250000] WARNING: CPU: 0 PID: 5648 at fs/btrfs/super.c:257
__btrfs_abort_transaction+0x74/0x150 [btrfs]()
[11563.260000] BTRFS: Transaction aborted (error -17)
[11563.260000] Modules linked in: ath9k ath9k_common pppoe ppp_async
iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6
nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp
xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack
xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_nat_irc nf_nat_ftp
nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_irc
nf_conntrack_ftp nf_conntrack libcrc32c iptable_raw iptable_mangle
iptable_filter ipt_REJECT ip_tables crc_ccitt compat ledtrig_usbdev
ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables
x_tables nfsd nfsv3 nfs lockd sunrpc dns_resolver ipv6 arc4
crypto_blkcipher usb_storage sd_mod scsi_mod ext4 crc16 jbd2 mbcache btrfs
zlib_inflate zlib_deflate xor raid6_pq lzo_decompress lzo_compress
exportfs crc32c crypto_hash ohci_platform ohci_hcd ehci_platform ehci_hcd
gpio_button_hotplug usbcore nls_base usb_common
[11563.350000] CPU: 0 PID: 5648 Comm: btrfs-transacti Not tainted 3.14.32
#1
[11563.360000] Stack : 00000006 00000000 00000000 00000000 00000000
00000000 803dd8fe 0000003d
[11563.360000] 82107ba0 83623000 8031ff74 8036be03 00001610 803d3b60
82107ba0 83623000
[11563.360000] 832aeb44 8035f790 832b0000 802b5ea4 00000003 80215c18
00000101 83623000
[11563.360000] 8032314c 81861d34 00000000 00000000 00000000 00000000
00000000 00000000
[11563.360000] 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
[11563.360000] ...
[11563.390000] Call Trace:
[11563.390000] [<802596dc>] show_stack+0x48/0x70
[11563.400000] [<802c68dc>] warn_slowpath_common+0x84/0xb4
[11563.400000] [<802c6938>] warn_slowpath_fmt+0x2c/0x38
[11563.410000] [<83201ad4>] __btrfs_abort_transaction+0x74/0x150 [btrfs]
[11563.420000] [<8321f704>] btrfs_run_delayed_refs+0xac/0x258 [btrfs]
[11563.420000] [<83230148>] btrfs_commit_transaction+0x390/0xe30 [btrfs]
[11563.430000] [<8322c984>] btrfs_cleanup_one_transaction+0xae8/0xb98
[btrfs]
[11563.440000] [<80244610>] schedule_tail+0x1c/0x60
[11563.440000] [<80060878>] ret_from_kernel_thread+0x14/0x1c
[11563.450000]
[11563.450000] ---[ end trace 26f362792e02ead6 ]---
[11563.450000] BTRFS: error (device sda1) in btrfs_run_delayed_refs:2714:
errno=-17 Object already exists
[11563.460000] BTRFS info (device sda1): forced readonly
[11563.470000] BTRFS warning (device sda1): Skipping commit of aborted
transaction.
[11563.470000] BTRFS: error (device sda1) in cleanup_transaction:1545:
errno=-17 Object already exists
Thanks in advance,
Sophie x
--
Ticket URL: <https://dev.openwrt.org/ticket/19216>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets