I’d like to use dm_mirror directly, rather than through LVM or MD, but I’ve had trouble finding clear documentation on the table format it expects. Is such a document available somewhere?
Note that I want to use this to mirror one partition to another while in use – I can’t add metadata to it, so using dm-raid1 probably isn’t going to work.
Based on examination of the source and experimentation, it seems to have this syntax:
Note that setting
num_featuresto 0 causes an OOPS in v3.0 – leave it out entirely unless passing thehandle_errorsfeature.The
param_ctin LOG_CONFIG counts the number of words in theBASE_LOG_CONFIGand (for disk logs)device_name. Set to 1 for core to leave sync/nosync on the default, for example.