From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Schinagl Subject: Re: md RAID5: Disk wrongly marked "spare", need to force re-add it Date: Sun, 14 Apr 2013 20:16:32 +0200 Message-ID: <516AF280.8020907@schinagl.nl> References: <516869D2.9030506@bucksch.org> <516B3077.9020507@schinagl.nl> <516B590C.5060807@bucksch.org> <516AE7A0.4070504@schinagl.nl> <516BD5E0.4040007@bucksch.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <516BD5E0.4040007@bucksch.org> Sender: linux-raid-owner@vger.kernel.org To: Ben Bucksch Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids On 15-04-13 12:26, Ben Bucksch wrote: > Oliver Schinagl wrote, On 14.04.2013 19:30: >> mdadm --assemble --run --force /dev/md0 /dev/sd[1-7]. >> Make sure to mdadm --stop /dev/md0 before trying to assemble it. > # mdadm --stop /dev/md0 > mdadm: stopped /dev/md0 > # mdadm --assemble --run --force /dev/md0 /dev/sd[jlmnopq] > mdadm: failed to RUN_ARRAY /dev/md0: Input/output error > mdadm: Not enough devices to start the array. > # cat /proc/mdstat > md0 : inactive sdj[0] sdq[7] sdn[6] sdp[5] sdo[4] sdm[3] > 5860574976 blocks > (Note that sdl is not even listed) > # mdadm --re-add /dev/md0 /dev/sdl > mdadm: re-added /dev/sdl That can't work I don't think. You want to create a degraded raid5 array, e.g. 7 disks. It tried (and failed) to create a 6 disk array. Re-adding sdl will make it won't to resync. How you can force that however I don't know. I hoped for you that the above command would actually do that. > # cat /proc/mdstat > md0 : inactive sdl[8](S) sdj[0] sdq[7] sdn[6] sdp[5] sdo[4] sdm[3] > 6837337472 blocks > > Now, sdl is listed, but as spare. I need it to be treated not as > spare, but as good drive with correct data (well, almost, 2 events off > only). How do I do that? > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html