mdadm: unrecognized option '--replace'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to replace a (still working) disks with a bigger one on
mdadm 3.1.4 but "--replace" is not reconized:

# mdadm /dev/md0 --add /dev/sdd1 --replace /dev/sda1 --with /dev/sdd1
mdadm: unrecognized option '--replace'
Usage: mdadm --help
  for help

which version is needed for "--replace" ? Any workaround ? Currently,
i've solved with:

mdadm /dev/md0 --fail /dev/sda1
mdadm /dev/md0 --add /dev/sdd1
mdadm /dev/md0 --remove /dev/sda1

but is not the same as i'll loose part of redundancy (it's a 3-way mirror)

Probably, would be better to add the new disks, grow to 4-way mirror
and when done, remove the old disk and then shrink to a 3-way mirror.

Any way to do this automatically, like with --replace, that should
remove the failed disk only when replacement is done successfully?
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux