Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756571AbdCWVJK (ORCPT ); Thu, 23 Mar 2017 17:09:10 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:39934 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbdCWVJJ (ORCPT ); Thu, 23 Mar 2017 17:09:09 -0400 Date: Thu, 23 Mar 2017 17:09:08 -0400 To: Stephen Mueller Cc: linux-kernel@vger.kernel.org Subject: Re: RAID array is gone, please help Message-ID: <20170323210908.GQ14186@csclub.uwaterloo.ca> References: <20170323173721.GA14188@csclub.uwaterloo.ca> <87d1da5c-a39b-fd41-62a7-640b0eea5501@mueller.org> <20170323192726.GM14186@csclub.uwaterloo.ca> <9dcb25dc-52f3-f831-6115-6a7feb07de1c@mueller.org> <20170323195903.GO14186@csclub.uwaterloo.ca> <28c5f9ba-c312-0439-9d8a-78e06c3f00f0@mueller.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28c5f9ba-c312-0439-9d8a-78e06c3f00f0@mueller.org> User-Agent: Mutt/1.5.23 (2014-03-12) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1030 Lines: 31 On Thu, Mar 23, 2017 at 10:02:23PM +0100, Stephen Mueller wrote: > Looks like it worked! Thanks! Well at least you could backup the data, just in case. > I used: > > sudo mdadm --create /dev/md0 --assume-clean --verbose --level-10 > --raid-devices=4 /dev/sdc /dev/sdd /dev/sde /dev/sdf I wonder about the assume-clean, but I would think any data you wrote will have been duplicated at the time you wrote it, and only unused space might not have been synced yet. Maybe running a forced resync would be worthwhile. > And I got my instructions for creating the array here, and they > also don't use partitions... > > https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-16-04 Well it works, as long as you don't leave anything around to confuse it, in this case a GPT partition table that somehow came back to bite you. I wonder if mdadm could perhaps warn about the existing partition table when being asked to create a new device. Does it survive reboots now? -- Len Sorensen