Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Bryan Hepworth <bryan.hepworth@newcastle.ac.uk>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: mdadm remove old md details reassemble working drives
Date: Thu, 26 May 2016 13:41:24 +0200	[thread overview]
Message-ID: <20160526114124.GA4028@metamorpher.de> (raw)
In-Reply-To: <DB5PR07MB1287BD3F72D4FA302118C075D5410@DB5PR07MB1287.eurprd07.prod.outlook.com>

On Thu, May 26, 2016 at 09:56:24AM +0000, Bryan Hepworth wrote:
> /etc/mdadm.conf
> 
> [root@inscribe5 etc]# cat mdadm.conf
> ARRAY /dev/md/inscribe5.ncl.ac.uk:130 level=raid5 num-devices=12 metadata=1.2 name=inscribe5.ncl.ac.uk:130 UUID=cb850648:d5b35007:dc6000f0:b48ab578
>    devices=/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh,/dev/sdi,/dev/sdj,/dev/sdk,/dev/sdl,/dev/sdm
> ARRAY /dev/md/igmimager.ncl.ac.uk:136 level=raid5 num-devices=12 metadata=1.2 name=igmimager.ncl.ac.uk:136 UUID=b4cb3aaf:e09885cb:6c0ea8bf:a4118a61
>    devices=/dev/sdn,/dev/sdo,/dev/sdp,/dev/sdq,/dev/sdr,/dev/sds,/dev/sdt,/dev/sdu,/dev/sdv,/dev/sdw,/dev/sdx,/dev/sdy

That looks a bit overengineered...

You can reduce the mdadm.conf to just use UUID and nothing else

ARRAY /dev/md0 UUID=cb850648:d5b35007:dc6000f0:b48ab578

Keep the /dev/md/name if you need it but everything else 
(num-devices, metadata, devices, level, ...) is part 
of the metadata, no need to duplicate it in the conf.

There doesn't seem to be a problem with the metadata itself 
(all clean, same update time, same event count) so unless 
the devices get detected late or something it should just work 
when assembling by UUID...

Regards
Andreas Klauer

  reply	other threads:[~2016-05-26 11:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-26  9:56 mdadm remove old md details reassemble working drives Bryan Hepworth
2016-05-26 11:41 ` Andreas Klauer [this message]
2016-05-26 14:21   ` Bryan Hepworth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160526114124.GA4028@metamorpher.de \
    --to=andreas.klauer@metamorpher.de \
    --cc=bryan.hepworth@newcastle.ac.uk \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox