Proper dm-cache shutdown

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

 



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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux