Re: safe segmenting of conflicting changes (was: Two degraded mirror segments recombined out of sync for massive data loss)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

After some more testing it seems the problems with --incremental are
more deep and general.  I have found two steps that both appear to do
the wrong thing:

mdadm /dev/md0 --fail /dev/sdb
mdadm /dev/md0 --remove /dev/sdb

At this point mdadm -E /dev/sda shows that sdb has been removed, but
mdadm -E of /dev/sdb shows both disks are active and in sync still.  The
metadata of sdb should be updated when failed or removed if possible.

mdadm --incremental /dev/sdb

This goes ahead and adds the disk back to the array, despite the fact
that it has been explicitly removed.

Whether or not the superblock on sdb is updated when it is removed,
--incremental should NOT use it as long as mdadm -D /dev/md0 says that
disk is removed, at least not use it in /dev/md0.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
safe segmenting of conflicting changes (was: Two degraded ..., Christian Gatzemeier, (Fri Apr 23, 6:42 am)
Re: safe segmenting of conflicting changes (was: Two degra ..., Phillip Susi, (Fri Apr 23, 11:18 am)
Re: safe segmenting of conflicting changes, and hot-pluggi ..., Christian Gatzemeier, (Fri Apr 23, 2:04 pm)
Re: safe segmenting of conflicting changes, and hot-pluggi ..., Christian Gatzemeier, (Sat Apr 24, 1:10 am)
Re: safe segmenting of conflicting changes, Doug Ledford, (Mon Apr 26, 9:59 am)
Re: safe segmenting of conflicting changes, Phillip Susi, (Mon Apr 26, 10:48 am)
Re: safe segmenting of conflicting changes, Doug Ledford, (Mon Apr 26, 11:05 am)
Re: safe segmenting of conflicting changes, Phillip Susi, (Mon Apr 26, 11:43 am)
Re: safe segmenting of conflicting changes, Doug Ledford, (Mon Apr 26, 12:07 pm)
Re: safe segmenting of conflicting changes, Phillip Susi, (Mon Apr 26, 12:38 pm)
Re: safe segmenting of conflicting changes, and hot-pluggi ..., Christian Gatzemeier, (Mon Apr 26, 2:10 pm)
Re: safe segmenting of conflicting changes, Doug Ledford, (Mon Apr 26, 4:33 pm)
Re: safe segmenting of conflicting changes, Phillip Susi, (Tue Apr 27, 9:20 am)
Re: safe segmenting of conflicting changes, Doug Ledford, (Tue Apr 27, 10:27 am)
Re: safe segmenting of conflicting changes, Phillip Susi, (Tue Apr 27, 11:04 am)
Re: safe segmenting of conflicting changes, Doug Ledford, (Tue Apr 27, 12:29 pm)
Re: safe segmenting of conflicting changes, Phillip Susi, (Wed Apr 28, 6:22 am)
detecting segmentation / conflicting changes, Christian Gatzemeier, (Wed May 5, 4:28 am)