Re: Replacing a member disk in RAID0

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

 





On 4/15/19 5:04 PM, Roman Mamedov wrote:
Hello,

I have a 2-device RAID0 with mdadm. I would like to replace one disk with
a new one, while keeping the array online.

I expected I would be able to do --add, then --replace, which would copy all
the stripes from one member to the new spare, then switch the old member
status to faulty, as can be done with other RAID types.

But apparently even --add is not supported for RAID0:

# mdadm --add /dev/md0 /dev/sdm3
mdadm: add new device failed for /dev/sdm3 as 2: Invalid argument

[76424.968457] md0: personality does not support diskops!
[76424.974941] md0: personality does not support diskops!
[76424.983688] md0: personality does not support diskops!

Is there any fundamental reason why this is not supported? If not, then please
count this as a feature request to implement, if possible.


You can refer to the URL.

https://serverfault.com/questions/611270/mdadm-remove-disk-from-raid0

HTH,
Guoqing



[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