Bug 197313
Summary: | BTRFS: Transaction aborted (error -95) btrfs-endio-write 0xc00000000034ffb0 on ppc64 | ||
---|---|---|---|
Product: | File System | Reporter: | Erhard F. (erhard_f) |
Component: | btrfs | Assignee: | Josef Bacik (josef) |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | bghome, whitefossa |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.13.7 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Creash log from dmesg output |
Description
Erhard F.
2017-10-18 14:27:55 UTC
Created attachment 260407 [details]
Creash log from dmesg output
I experienced the same error with kernel 4.13.8. Furthermore this or a related bug corrupted the filesystem, making my files read-only. Fortunately the command "btrfsck --repair <partition>" fixed the damage. (Although btrfsck stuck in an infinite loop as I saw the same block ID printed on the screen over and over again.)
The partition is mounted with options:
rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag
Kernel is compiled with these configuration settings:
CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
My problem is different than what's originally reported in this issue. Turned out that btrfs run out of disk space due to chunk fragmentation. The command below indicated that almost all space is used: sudo btrfs filesystem show However df -h / showed about 25% free space. First I had to make free space by deleting data (I deleted old snapshots, but attaching a new device to the filesystem could have helped too.). After that I run the balance command multiple times to relocate and squash chunks, in order to free up disk space. btrfs balance start -dusage=0 / btrfs balance start -dusage=5 / btrfs balance start -dusage=10 / btrfs balance start -dusage=25 / btrfs balance start -dusage=50 / Since then I haven't seen any error. As of kernel 4.14.x and btrfs-progs 4.14 I converted again an ext4 partition to btrfs on my ppc64-machine. I've been runnig it since then from the btrfs partition without problems. Thus I'll mark this bug as obsolete. If it reappears somehow I'll file a new one. Just got this bug on Debian 9.9 (kernel 4.9.0-9-amd64) in the same case - converted ext4 to btrfs. I guess this is fixed in recent 4.9.x or 4.14.x stable series. Have not seen this in a long time. |