I have a software RAID 5 with 6 devices and one of them needs to be rebuilt. Until now, everything is OK.
But, while the disk is rebuilt, it was found bad sectors on another disk and is being marked as faulty. I can reassemble the RAID making
mdadm --assemble --force /dev/sd[a-f].
So, I made an image of the faulty disk and filled the bad area with zeros. Then, I created a loop device with the command
When I try to assemble the RAID with loop device, I got an error issuing:
mdadm: failed to add /dev/loop0 to /dev/md/DATA: Invalid argument.
and a message in dmesg:
[ 3085.638028] mdadm: sending ioctl 1261 to a partition! [ 3085.638044] mdadm: sending ioctl 1261 to a partition! [ 3085.647487] md: loop0 does not have a valid v1.2 superblock, not importing! [ 3085.647516] md: md_import_device returned -22
Is there any solution to this problem?