Comment 2 for bug 2003654

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

It seems like this might be fixable by having get_path_to_storage_volume() function check *all* of the IDs its been given, not just the first one that works. If they all point to the same disk, then it's good. If one or more points to a different disk (i.e., the WWN points to /dev/sdb and the serial points to /dev/sda), then a preferred ID should be used as the correct one (serial in this case). This should be relatively simple to implement (I hope) and at least more accurate than what we have currently.

The tricky question with this solution is which ID should be preferred in each circumstance. Obviously it looks like serial number should be preferred over WWN, but is there something else that should be preferred over even the serial number?

Of course this solution then raises the question of what happens if you have two drives with the same serial number but different WWNs somehow, so perhaps this needs to be combined with a way of storing previously seen drives and using duplicate checking, or something similar.