Skip to contentSkip to conversation

dm target options

DISCUSSION Andy 3 participants 3 messages Mar 3, 2005 Device mapper

lore
Share & tools
lore

Andy

author
#0 lore raw

Is there any documentation that gives the format and options for the dm targets table? I'm trying to setup a mirror target, but can't find a lot of information about it, and what the options mean. Is dm-mirror good for production use, or should I just use md for mirroring?

Andy

#1 lore raw

I wouldn't use it until the user-land tools evolve

brassow

Quoted 13 lines · Andy

Is there any documentation that gives the format and options for the dm targets table? I'm trying to setup a mirror target, but can't find a lot of information about it, and what the options mean. Is dm-mirror good for production use, or should I just use md for mirroring?

Andy

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#2 lore raw
In reply to Andy

Hi Andy,

Quoted 4 lines · Andy

Is there any documentation that gives the format and options for the dm targets table? I'm trying to setup a mirror target, but can't find a lot of information about it, and what the options mean. Is dm-mirror good for production use, or should I just use md for mirroring?

There probably isn't any formal documents for the dm-mirror target. Looking at drivers/md/dm-raid1.c::mirror_ctr() in the kernel tree, the current table format is:

<start_lba> <size_in_sectors> mirror <log_type> <#_log_params> <log_params> \
<#_mirrors> [<mirror_path> <starting_lba>]{2,}

where <log_type> is "core" or "disk".
<#_log_params> is 0 for the "core" log, and thus there is no <log_params> entry.
<#_log_params> is 2 or 3, and the <log_params> is:
<log_device_path> <region_size> [<sync|nosync>]?

However, dm-mirror is primary used for pe-move in LVM2 and EVMS right now. There's still some improvements that will need to be made before it can be a full replacement for MD RAID-1. So if you're looking for something to use immediately, I'd stick with the MD driver for RAID functionality.

Signature · 4 lines
Kevin Corry
[email protected]
http://www.ibm.com/linux/ltc/
http://evms.sourceforge.net/