From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Karsten_R=F6mke?= Subject: Re: Re: misunderstanding of spare and raid devices? Date: Thu, 30 Jun 2011 15:09:39 +0200 Message-ID: <4E0C7593.7090304@gmx.de> References: <4E0C5539.4030000@gmx.de> <20110630105840.GA27551@cthulhu.home.robinhill.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20110630105840.GA27551@cthulhu.home.robinhill.me.uk> Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org List-Id: linux-raid.ids Hello, I suppose it works now. After mdadm -w /dev/md0 it starts synching. md0 : active raid5 sdd5[4] sde5[5](S) sdc5[2] sdb2[1] sda3[0] 13759296 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_] [=3D>...................] recovery =3D 6.2% (286656/4586432) f= inish=3D0.9min speed=3D71664K/sec thanks to both of you. Karsten Am 30.06.2011 12:58, schrieb Robin Hill: > On Thu Jun 30, 2011 at 12:51:37 +0200, Karsten R=F6mke wrote: > >> Hello, >> I'm searching some hours / minutes to create a raid5 device with 4 >> disks and 1 spare: >> I tried first with the opensuse tool but no success as I want, so I >> tried mdadm >> >> Try: >> mdadm --create /dev/md0 --level=3D5 --raid-devices=3D4 --spare-de= vices=3D1 >> /dev/sda3 /dev/sdb2 /dev/sdc5 /dev/sdd5 /dev/sde5 >> >> leads to >> Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] >> md0 : active (auto-read-only) raid5 sdd5[5](S) sde5[4](S) sdc5[2] sd= b2[1] sda3[0] >> 13759296 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_] >> >> 2 spares - I don't understand that. >> > That's perfectly normal. The RAID5 array is created in degraded mode, > then recovered onto the final disk. That way it becomes available for > use immediately, rather than requiring all the parity to be calculate= d > before the array is ready. As it's been started in auto-read-only mod= e > (not sure why though) then it hasn't started recovery yet. Running > "mdadm -w /dev/md0" or mounting the array will kick it into read-writ= e > mode and start the recovery process. > > HTH, > Robin -- To unsubscribe from this list: send the line "unsubscribe linux-raid" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html