All of lore.kernel.org
 help / color / mirror / Atom feed
* dm-cache failure semantics in write-back mode
@ 2015-02-17 12:15 Thanos Makatos
  2015-03-03 15:53 ` Thanos Makatos
  0 siblings, 1 reply; 7+ messages in thread
From: Thanos Makatos @ 2015-02-17 12:15 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 946 bytes --]

Hi,

I'm trying to understand the failure semantics of dm-cache in write-back
mode. In Documentation/device-mapper/cache.txt it is stated:

"On-disk metadata is committed every time a FLUSH or FUA bio is written.
If no such requests are made then commits will occur every second.  This
means the cache behaves like a physical disk that has a volatile write
cache.  If power is lost you may lose some recent writes.  The metadata
should always be consistent in spite of any crash."

Which I admit confuses me. Assumie that no FLUSH/FUA requerst is issued
(e.g. the user of the cached device is a Windows VM) and a failure occurs
(e.g. there is a power failure but both the HDD and the SSD are fine)
immediatelly after a write I/O request, but before on-disk metadata get
commited (e.g. the failure occurs less than a second after the write I/O
request was completed). After the hosts reboots, is this completed write
I/O request going to be lost?

[-- Attachment #1.2: Type: text/html, Size: 1119 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2015-03-05 14:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-17 12:15 dm-cache failure semantics in write-back mode Thanos Makatos
2015-03-03 15:53 ` Thanos Makatos
2015-03-03 16:19   ` Joe Thornber
2015-03-03 17:13     ` Thanos Makatos
2015-03-03 17:28       ` Joe Thornber
2015-03-03 21:58       ` Spelic
2015-03-05 14:06         ` Thanos Makatos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.