linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Moving a backing device between 2 cachesets
@ 2014-01-28 21:59 Patrick Zwahlen
  2014-01-28 22:35 ` matthew patton
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Patrick Zwahlen @ 2014-01-28 21:59 UTC (permalink / raw)
  To: linux-bcache@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]

Hi,

We're working on a 2-nodes pacemaker cluster that provides iSCSI LUNs via
SCST. The LUNs are either software RAID arrays located in a shared JBOD, or
DRBD ressources (active/passive).

We are adding bcache to the game with local SSDs (ie not shared, but
dedicated to each cluster node).

We are using write-through.

I need to evaluate the risk when moving a backing device (md) from cacheset1
(on node #1) to cacheset2 (on node #2) and then back to cacheset #1.

Scenario
- md attached to cacheset1 and working (on node 1)
- md detached from cacheset1
- md stopped on node 1
- md started on node 2
- md attached to cacheset2 on node 2

At this point, cacheset1 is attached to nothing, but still has valid blocks
"linked" to the backing md device

- md detached from cacheset2
- md stopped on node 2
- md started on node 1
- md RE-attached to cacheset1 on node 1

At this point, I need to make sure that bcache will not serve "old" blocks
that were linked to the backing device.

My understanding is that as we have attached the backing device to a new
cacheset (#2) in-between, this will be "recorded" in the bcache headers and
all the blocks that used to be valid in the first place won't be served.

Can you please validate if this is safe or if we need to take special care
about invalidating the original cacheset ?

Thanks a lot, - Patrick -


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6043 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-01-29 18:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 21:59 Moving a backing device between 2 cachesets Patrick Zwahlen
2014-01-28 22:35 ` matthew patton
2014-01-29  7:49   ` Patrick Zwahlen
2014-01-29 10:42 ` Gabriel de Perthuis
2014-01-29 15:55   ` Patrick Zwahlen
2014-01-29 17:50     ` matthew patton
2014-01-29 18:07       ` Patrick Zwahlen
2014-01-29 18:42         ` matthew patton
     [not found] ` < lcalu5$iek$1@ger.gmane.org>
     [not found]   ` <56b62eb646f94bbe868ae6b2f26d94e8@navex1. navixia.local>
2014-01-29 17:01     ` Gabriel de Perthuis

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 NNTP newsgroup(s).