Bug 1922485
Summary: | Outdated bcache-tools package results in R/O bcache devices under Linux Kernel >=5.10.8 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mitja Lužar <luzar.mitja> |
Component: | bcache-tools | Assignee: | Rolf Fokkens <rolf> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 33 | CC: | igor.raits, jreznik, rolf, tomek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | bcache-tools-1.1-0.fc33 bcache-tools-1.1-0.fc32 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-02-03 01:55:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mitja Lužar
2021-01-29 21:43:18 UTC
Thanks, will look into it. I'm wondering though about existing systems. I'm running 5.10.8-100 myself (have just been upgrading for years), using bcache. No issue though. Yep, you're right. I hit this when I booted into 5.10.10. Before that on 5.10.8 and 5.10.9 my bcache setup worked fine in R/W mode. FEDORA-2021-520b8b2830 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-520b8b2830 Built a new bcache-tools (1.1), updating bcache-tools was about time anyway. However, while running kernel-5.10.10-200.fc33 does not reproduce the issue: bash-5.0$ cat /proc/version Linux version 5.10.10-200.fc33.x86_64 (mockbuild.fedoraproject.org) (gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9), GNU ld version 2.35-18.fc33) #1 SMP Sun Jan 24 19:58:54 UTC 2021 bash-5.0$ dmesg -T | grep bch [Sat Jan 30 21:07:00 2021] bcache: bch_journal_replay() journal replay done, 2316 keys in 139 entries, seq 27381981 [Sat Jan 30 21:07:00 2021] bcache: bch_cached_dev_attach() Caching sda2 as bcache0 on set ea4f255f-ef68-4ae4-ab88-f2c5441074a6 bash-5.0$ FEDORA-2021-520b8b2830 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-520b8b2830` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-520b8b2830 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. So after nearly three days after I updated bcache-tools and recreated the cache device, this happened again: Feb 01 17:18:16 Aurelian kernel: bcache: bch_journal_replay() journal replay done, 166 keys in 17 entries, seq 96643 Feb 01 17:18:16 Aurelian kernel: bcache: run_cache_set() Detect obsoleted large bucket layout, all attached bcache device will be read-only Feb 01 17:18:16 Aurelian kernel: bcache: register_cache() registered cache device sdb7 Feb 01 17:18:16 Aurelian kernel: bcache: register_bdev() registered backing device sda1 Feb 01 17:18:16 Aurelian kernel: bcache: bch_cached_dev_attach() The obsoleted large bucket layout is unsupported, set the bcache device into read-only Feb 01 17:18:16 Aurelian kernel: bcache: bch_cached_dev_attach() Please update to the latest bcache-tools to create the cache device Feb 01 17:18:16 Aurelian kernel: bcache: bch_cached_dev_attach() Caching sda1 as bcache0 on set 6a5c5432-851d-4f8c-9c73-760c494c9e27 The bcache setup was set to writeback mode during this time, and it went through at least 10 mount/dismount cycles and reboots. I generated around 400GB of I/O, a 60/40 split between reads and writes. And now it's stuck in RO mode again. The filesystem in question is BTRFS, no errors reported during check, no I/O erorrs. This combination has worked solid for me for the past year and a half, until last week when this started. So it looks like I opened up this bug report in error, something else is going haywire. I'm sorry. I have no idea what to try next at this point, maybe recreate the backing device as well? Hell, it's going to take an entire day to sync my backups and send the data back. Might as well stop now and hope that BTRFS eventually supports tiered storage. Although not for you, in general I feel a sense of relief. Glad that not all bcache installations will run into this, which could make systems unable to boot. As a positive side affect it's a good thing that bcache-tools has been upgraded. FEDORA-2021-b6dddd3cf8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b6dddd3cf8 FEDORA-2021-b6dddd3cf8 has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-b6dddd3cf8 \*` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b6dddd3cf8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-520b8b2830 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. Erm, my server got hit by it. Do we have steps to recover when system is unbootable (preferably to be run from dracut emergency shell)? I left quit an elobrate comment, but because bugzilla does no no this link, my comment was lost: https://marc.info/?l=linux-bcache&m=161261224608874&w=1 So long story short: I cannot reproduce, the answer may be provided here: https://marc.info/?l=linux-bcache&m=161261224608874&w=1 From the mail list: -------- Forwarded Message -------- Subject: Re: bch_cached_dev_attach() The obsoleted large bucket layout is unsupported, set the bcache device into read-only Date: Sun, 7 Feb 2021 23:29:34 +0800 From: Coly Li <colyli> To: Rolf Fokkens <rolf>, linux-bcache.org This is a regression and fixed in 5.11-rc6 by commit 0df28cad06eb ("bcache: only check feature sets when sb->version >= BCACHE_SB_VERSION_CDEV_WITH_FEATURES"). Also the fix has been in stable kernels already last week. The fix should go into distribution very soon IMHO. Thanks. Coly Li FWIW the patch fixing regression got included in 5.10.13. FEDORA-2021-b6dddd3cf8 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |