From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Turmel Subject: Re: Requesting assistance recovering RAID-5 array Date: Fri, 3 Apr 2020 14:34:16 -0400 Message-ID: <5985cc5b-a332-eb69-2d84-cb54f8f5b0fc@turmel.org> References: <1d6b3e00-e7dd-1b19-1379-afe665169d44@turmel.org> <061b695a-2406-fc00-dd6d-9198b85f3b1b@turmel.org> <5E8485DA.2050803@youngman.org.uk> <9a303b9b-52b8-f0c6-4288-120338c6572f@turmel.org> <1f4b8c74-4c38-6ea4-6868-b28f9e5c4a10@turmel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-raid-owner@vger.kernel.org To: Daniel Jones Cc: Wols Lists , linux-raid@vger.kernel.org List-Id: linux-raid.ids On 4/3/20 2:29 PM, Daniel Jones wrote: > Hello again, > >> Don't do the --add operation until you've copied anything critical in the array to external backups (while running with 3 of 4). > > Everything from the array has been backed up elsewhere. > > Up until now the only writes intentionally done to the physical drives > have been the new partition tables. Everything else has been through > the overlay. > > Now I think I'm ready to run a --create as follows on the physical drives: > mdadm --create /dev/md0 --assume-clean --data-offset=129536 --level=5 > --chunk=512K --raid-devices=4 missing /dev/sdc1 /dev/sdd1 /dev/sde1 > > After that I'd try to re-add the rejected drive? > mdadm --manage /dev/md0 --add /dev/sdb1 > > Part of me wonders about just rebuilding the whole thing and then > copying the data back, but I don't know that would be any better then > this path. Sounds like a risk-free decision. mdadm --create --assume-clean followed by a proper fsck will be lots faster than mdadm --create, mkfs, and copying. I'd go fast. Phil