]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Check write journal in incremental
authorSong Liu <songliubraving@fb.com>
Fri, 9 Oct 2015 05:51:45 +0000 (22:51 -0700)
committerNeilBrown <neilb@suse.com>
Mon, 19 Oct 2015 02:06:18 +0000 (13:06 +1100)
commit5c6ad211505fcd8b1ae341e7c7535bd58c639fb8
tree2092afce7913a87372a99bda9ae430ed63aa7492
parent69a481166be6df468367378c16c02a2c5dbe5c24
Check write journal in incremental

If journal device is missing, do not start the array, and shows:

./mdadm -I /dev/sdf
mdadm: journal device is missing, not safe to start yet.

The array will be started when the journal device is attached with -I

./mdadm -I /dev/sdb1
mdadm: /dev/sdb1 attached to /dev/md/0_0, which has been started.

To force start without journal device:

./mdadm -I /dev/sdf --run
mdadm: Trying to run with missing journal device
mdadm: /dev/sdf attached to /dev/md/0_0, which has been started.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Incremental.c