Re: generating a Linux WWN?

Michael Reed
2007-10-08T15:41:11Z

David Miller wrote:
> From: James Bottomley <James.Bottomley@SteelEye.com>
> Date: Sat, 06 Oct 2007 10:04:55 -0500
>
>> If you remember Rusty's guide to interfaces, this is a level 14 easy to
>> misuse interface: "The obvious use is wrong"; since the obvious use is
>> to put it in module parameters and have the problem go away (for
>> now ...). Actually, I could be harsher and say it's level 17 "There's
>> no correct use" because statistically every time you use it, you expose
>> yourself to potential duplicate WWNs.
>
> Every time you use GIT you expose yourself to potential duplicate SHAs
> which will corrupt the tree.
>
> This argument borders on lunacy, give it up :-)

As long as two systems on the same SAN are quite unlikely to wind up with
the same WWN. override_wwn=5000000000000001 comes to mind. Two months
later, another admin does the same thing to another system. As Jeff has
pointed out, there really should be some method in place that allows for
some randomness in the wwn. (Other than fixing the broken hardware. :)
Handing the admins the rope doesn't mean we want to see it around their necks!

And, while I'm thinking about it, whatever implementation is chosen, doesn't
it need to allow for the targeting of a particular sas host adapter and
perhaps even a particular sas port on the adapter?

Mike