]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble array with write journal
authorSong Liu <songliubraving@fb.com>
Fri, 9 Oct 2015 05:51:44 +0000 (22:51 -0700)
committerNeilBrown <neilb@suse.com>
Mon, 19 Oct 2015 02:06:15 +0000 (13:06 +1100)
commit69a481166be6df468367378c16c02a2c5dbe5c24
tree8c2fac98db67a4fb465f2c594d83abd6112e75e7
parentcc1799c3ddc99454903a8591bb27f30505bcd2dc
Assemble array with write journal

Example output:

./mdadm --assemble /dev/md0 /dev/sd[c-f] /dev/sdb1
mdadm: /dev/md0 has been started with 4 drives and 1 journal.

mdadm checks superblock for journal devices. If the journal device
is missing or faulty, mdadm will show warning

./mdadm --assemble /dev/md0 /dev/sd[c-q] /dev/sdb1
mdadm: Not safe to assemble with missing or stale journal device, consider --force.

User can insist to start the array (read only) with --force

./mdadm --assemble /dev/md0 /dev/sd[c-q] /dev/sdb1 --force
mdadm: Journal is missing or stale, starting array read only.
mdadm: /dev/md0 has been started with 15 drives.

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