On 11/21/2017 09:19 AM, Per Jessen wrote:
Sorry, I don't think I made myself clear. If the old disk was swapped out and copied, then the old disk is "clean". If this disk gets back into the same machine as the raid array, and the machine is rebooted, mdadm IS GOING TO GET CONFUSED. Yes, but Andrei is using an HP Smart Array Controller, not software raid.
I've also been bitten by hidden RAID metadata on individual disks. I've been using a very simple/dumb script to make sure all the metadata is gone. It blasts the MBR, partition table, and any other cruft at the start of the disk too. Call with the /dev/sdx as the argument. Use at your own risk! #!/bin/bash dd if=/dev/zero of=$1 bs=512 count=2018 dd if=/dev/zero of=$1 bs=512 seek=$(( $(blockdev --getsz $1) - 1024 )) count=1024 exit BTW, I've also seen software raid (mdadm) get confused by disks out of a hardware raid controller. Regards, Lew "When in doubt, zero it out!" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org