[dm-devel] help: device mapper table syntax for mirror option

Alasdair G Kergon agk at uk.sistina.com
Thu Jul 24 07:01:01 UTC 2003


On Thu, Jul 24, 2003 at 01:32:25PM +0530, kiran dalvi wrote:
> But i don't know
>    the syntax of mirror to put in device mapper table. 

[see comments in source code]

start size mirror log_type #log_params [log_params]* #mirrors [device offset]+

Only an in-core mirror log is available so far, so the mirror gets
rebuilt from the first listed device each time you activate it.
[OK for pvmove; but not good for permanent mirrors]

log_type: core
1 log_param: region_size

Example:
0 24576 mirror core 1 1024 2 /dev/loop6 49536 /dev/loop4 384

Alasdair
-- 
agk at uk.sistina.com




More information about the dm-devel mailing list