From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Goryachev Subject: Re: unable to assemble (mostly?) clean array Date: Mon, 09 Dec 2013 11:02:37 +1100 Message-ID: <52A5089D.3080109@websitemanagers.com.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-raid-owner@vger.kernel.org To: Christopher Hoover , linux-raid@vger.kernel.org List-Id: linux-raid.ids On 09/12/13 10:32, Christopher Hoover wrote: > hi folks, > > what's the safest way to get this array back into r/o mode? > > thanks, > -ch > ch@murgatroid.com > > > ch@snaggle:~$ sudo mdadm --examine /dev/sd[defg]1 | egrep 'Event|^/dev/sd' > > /dev/sdd1: > > Events : 286024 > > /dev/sde1: > > Events : 286011 > > /dev/sdf1: > > Events : 286024 > > /dev/sdg1: > > Events : 286024 > > ch@snaggle:~$ sudo mdadm --assemble --force /dev/md0 /dev/sdd1 > /dev/sde1 /sdg1 > > mdadm: cannot open device /sdg1: No such file or directory > > mdadm: /sdg1 has no superblock - assembly aborted > I'm no expert on this, but two questions: Did you mean /dev/sdg1 ? Why not use sdd1, sdf1 and sdg1 since they have the correct event counts? Then add sde1 and allow to resync? sudo mdadm --manage /dev/md0 --stop sudo mdadm --assemble /dev/md0 /dev/sd[dfg]1 sudo mdadm --manage /dev/md0 --run Try that, and provide any output PS, it seems you would only need a minimum of 2 drives, and you have three with matching event counts, so it should be fine. Regards, Adam -- Adam Goryachev Website Managers P: +61 2 8304 0000 adam@websitemanagers.com.au F: +61 2 8304 0001 www.websitemanagers.com.au