Re: [PATCH 2/2] DDF: new algorithm for subarray UUID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 09 Sep 2013 20:37:10 +0200 Martin Wilck <mwilck@xxxxxxxx> wrote:

> On 09/09/2013 03:20 AM, NeilBrown wrote:
> > On Sat, 07 Sep 2013 21:23:22 +0200 Martin Wilck <mwilck@xxxxxxxx> wrote:
> > 
> >> On 09/06/2013 11:26 PM, mwilck@xxxxxxxx wrote:
> >>> Some fake RAID BIOSes (in particular, LSI ones) change the
> >>> VD GUID at every boot. These GUIDs are not suitable for
> >>> identifying an array. Luckily the header GUID appears to
> >>> remain constant.
> >>>
> >>> We construct a pseudo-UUID from the header GUID and those
> >>> properties of the subarray that we expect to remain constant.
> >>
> >> Thinking about it once more, it may actually be better to construct the
> >> subarray UUID only from the container GUID and the member number (and
> >> name), because if we implement Grow or Reshape for DDF, the other
> >> properties might change.
> >>
> >> I'm open for comments and suggestions.
> >>
> >> Martin
> > 
> > I'd probably just base it on the container GUID and the member number.
> > Exclude even the name.
> 
> Why that? Does it make sense to expect the UUID to remain the same when
> the array name has changed?

I would rather the UUID only changed when it absolutely has too.
A name is just an attributed, not part of the core identity.


> 
> > It is unfortunate that this change will cause all existing DDF uuids to
> > change even for controllers where they are currently stable.
> 
> Only for "foreign" arrays not created by MD - but see below.
> 
> > Is it possible to detect whether a VD GUID is likely to change, and to only
> > use the new algorithm for those?
> 
> I am going to submit a new patch soon where I built in a vendor "black
> list". This list currently contains only LSI, so the UUIDs of all
> non-LSI arrays will stay the same, and for LSI, to the best of our
> current knowledge, the UUIDs aren't constant anyway. I don't know
> whether all LSI fake RAIDs behave like this, nor whether the Option ROMs
> of other vendors do. Perhaps other people on this list can supply data
> points on this.

Thanks.  I'm going with this patch for now.  I'm certainly keen to hear of
any other data points which might suggest some improvement might be possible.

Thanks.
NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux