]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Enable create array with write journal (--write-journal DEVICE).
authorSong Liu <songliubraving@fb.com>
Fri, 9 Oct 2015 05:51:43 +0000 (22:51 -0700)
committerNeilBrown <neilb@suse.com>
Mon, 19 Oct 2015 02:06:12 +0000 (13:06 +1100)
commitcc1799c3ddc99454903a8591bb27f30505bcd2dc
treee2d8332ade6e60db64854c474d95379d0fc4461a
parented94976d84768b2ef648c3af1d81f1a36de9f9e2
Enable create array with write journal (--write-journal DEVICE).

Specify the write journal device with --write-journal DEVICE

./mdadm --create -f /dev/md0 --assume-clean -c 32 --raid-devices=4 --level=5 /dev/sd[c-f] --write-journal /dev/sdb1
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.

Only one journal device is allowed. If multiple --write-journal
are given, mdadm will use the first and ignore others

./mdadm --create -f /dev/md0 --assume-clean -c 32 --raid-devices=4 --level=5 /dev/sd[c-f] --write-journal /dev/sdb1 --write-journal /dev/sdx
mdadm: Please specify only one journal device for the array.
mdadm: Ignoring --write-journal /dev/sdx...
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Create.c
ReadMe.c
md_p.h
mdadm.c
mdadm.h
super1.c