On Wed, Mar 08 2017, Gandalf Corvotempesta wrote: > 2017-03-08 19:17 GMT+01:00 Wols Lists <antlists@xxxxxxxxxxxxxxx>: >> Do you mean you remove an old disk, and put a new blank disk in? > > Yes > >> If that's what you mean, then no, it's not possible. mdadm doesn't have >> a clue about disks, what it sees is "block devices". > > Ok but mdadm.conf man page seems to say the opposite: > https://linux.die.net/man/5/mdadm.conf > > "POLICY > This is used to specify what automatic behavior is allowed on devices > newly appearing in the system and provides a way of marking spares > that can be moved to other arrays as well as the migration domains. > > action=include, re-add, spare, spare-same-slot, or force-spare > auto= yes, no, or homehost. > > The action item determines the automatic behavior allowed for devices > matching the path and type in the same line. If a device matches > several lines with different actions then the most permissive will > apply. The ordering of policy lines is irrelevant to the end result. > > includeallows adding a disk to an array if metadata on that disk > matches that arrayre-addwill include the device in the array if it > appears to be a current member or a member that was recently > removedspareas above and additionally: if the device is bare it can > become a spare if there is any array that it is a candidate for based > on domains and metadata.spare-same-slotas above and additionally if > given slot was used by an array that went degraded recently and the > device plugged in has no metadata then it will be automatically added > to that array (or it's container)force-spareas above and the disk will > become a spare in remaining cases > " Clearly you have read the documentation - excellent! What exactly are you asking? Presumably you have tried something and it didn't work. What (exactly) did you try? NeilBrown
Attachment:
signature.asc
Description: PGP signature