|
Question:
mdadm: hot add failed for /dev/sdb1: No space left on deviceMy system is RAID 1 with two hard drives each with two partitions. One of my hard drives failed and I have replaced it. Then I created the partitions to be with the same size like they are on the other disk. But when I tried to rebuild the mirror with
I received the following error: What I've made wrong? I've done the same steps the other partition and there was no problem? How to fix this issue?
Even you created the partitions the same way as on /dev/sda with fdisk the size of partitions can differ from each other. First of all you should dump the disks with "fdisk -l" and observe the result:
Please note that I give example with two disks with same geometry and size. Note that sda1 size(2104514+) > sdb1 size(2104483+) which is like your problem. In your case sda1 and sdb1 may have exactly the same start and end blocks but the size is different which is your case in fact. That is why you receive this error "No space left". You should create partitions on /dev/sdb like this: and the result:And the above command will copy partitions from /dev/sda to /dev/sdb. Then you can run again fdisk to list your partitions. Result should be like this: Now sda1 size(2104514+) is equal to sdb1 size(2104514+). We can add the devices to the raid. Vote:
Now we add the devices like this:
Then watch the status of raid : Then you add the second partition: and watch the status: And now you finish the work with copying the boot sector from your healthy drive to the new one. It is still not bootable. You should make it bootable if drive A fails the drive B should be able to boot the system, so we copy MBR from drive A to drive B. But note you are only allowed to copy MBR if you have exactly the same partitions and same size harddrives. Thats all. Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
|
|