From: Corey Hickey <bugfood-ml@fatooh.org>
To: linux-bcache@vger.kernel.org
Subject: Re: bcache device stuck after backing device goes away, then comes back
Date: Wed, 5 Jul 2023 17:10:32 -0700 [thread overview]
Message-ID: <c0189513-9078-c039-fab3-ce9231b0b5ef@fatooh.org> (raw)
In-Reply-To: <04a56e2c-a89a-5cb5-4fc6-6d445f3ce471@fatooh.org>
On 2023-07-05 10:10, Corey Hickey wrote:
> At this point, using the backing device via bcache seems impossible
> without a reboot.
> * original bcache device is still active
> * can't stop the bcache device, since the backing device has a new name
> * the kernel won't give the backing device the old name
>
> Is there any way to recover from this situation without a reboot?
I found that there was still a dm-crypt device active on top of the
bcache device.
I did this:
$ sudo cryptsetup remove backup1
Device /dev/bcache1 does not exist or access denied.
Device /dev/bcache1 does not exist or access denied.
Device /dev/bcache1 does not exist or access denied.
$ echo $?
0
After that, power cycling the backing device allowed it to come back as
/dev/sdi and auto-register with bcache.
-Corey
prev parent reply other threads:[~2023-07-06 0:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-05 17:10 bcache device stuck after backing device goes away, then comes back Corey Hickey
2023-07-06 0:10 ` Corey Hickey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c0189513-9078-c039-fab3-ce9231b0b5ef@fatooh.org \
--to=bugfood-ml@fatooh.org \
--cc=linux-bcache@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).