Method and device for supporting hot plug of cache disk
The invention discloses a method and a device for supporting hot plug of a cache disk. The method comprises the following steps of: after detecting that the cache _ dev disk of a block device used forcaching or the cached cache _ dev disk of a block device is pulled out, starting the cache _ dev dis...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
26.05.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a method and a device for supporting hot plug of a cache disk. The method comprises the following steps of: after detecting that the cache _ dev disk of a block device used forcaching or the cached cache _ dev disk of a block device is pulled out, starting the cache _ dev disk of the block device; maintaining an association relationship between a cache _ dev disk and a cache _ dev disk of the cache disk, and maintaining a dirty data state identifier in the cache _ dev disk; after detecting that the cache _ dev magnetic disk or the cache _ dev magnetic disk is inserted,starting the cache _ dev magnetic disk or the cache _ dev magnetic disk; and registering a cache _ dev disk and a cache _ dev disk of the cache disk, and recovering the cache disk according to the maintained association relationship and the dirty data state identifier in the cache _ dev disk. The hot plug of the bcache disk can be realized, that is, the cached data before plugging can still be obtained after the hot plug. |
---|---|
Bibliography: | Application Number: CN201911394304 |