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? > 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. Martin > > Thanks, > NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html