[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] Proper dm-cache shutdown



Hi,

What is the proper shutdown sequence for dm-cache?  Should I be
disassembling the dm device everytime?

There is a section in Documentation/device-mapper/cache.txt that
suggests that I should:

    The 'dirty' state for a cache block changes far too frequently for us
    to keep updating it on the fly.  So we treat it as a hint.  In normal
    operation it will be written when the dm device is suspended.  If the
    system crashes all cache blocks will be assumed dirty when restarted.

Right now I'm using the following:

    (wait for standard init system to unmount the filesystem)
    dmsetup suspend home-cached
    dmsetup remove home-cached
    dmsetup remove ssd-blocks
    dmsetup remove ssd-metadata

I assume the suspend will accomplish the syncing of the metadata
according to the Docs.  Is tearing down the dm nodes under it of any
value during a shutdown or reboot?

Thanks,
- Kyle



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]