On Mon, Sep 14, 2009 at 08:24:39AM +0200, Hannes Reinecke wrote: > Benjamin Marzinski wrote: >> Instead of using the Target port's Asymmetric Access State to determine >> priority, some users what to use the preferred port bit. This patch makes >> a new prioritizer, based off the ALUA prioritizer, but using the preferred >> port bit instead. >> > Please, no. > > This would mean that 'tpg_pref' would evaluate the PREF bit _only_, > with total disregard to the other settings. > The PREF bit isn't static. It can change whenever the AAS status changes. I'd like to think that most devices do something sane like removing the PREF bit from offline and unavailable ports. Perhaps that is hoping for too much. So making sure that the preferred port is a sane choice makes sense. I'm not sure what you patch does, but I got the feeling that people wanted to choose, for instance, a preferred standby port over a non-preferred active port. If you have a patch that does that, I'm all for it. Otherwise, I can add some logic to make sure that the preferred port is a reasonable one (not unavailable or offline). How does that sound? -Ben > We should be updating the existing 'alua' prioritizer to evaluate > the PREF bit together with the existing AAS status; then we could > be using it for all scenarios. > > I think I got a patch somewhere ... > > Cheers, > > Hannes > -- > Dr. Hannes Reinecke zSeries & Storage > hare@xxxxxxx +49 911 74053 688 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg > GF: Markus Rex, HRB 16746 (AG Nürnberg) > > -- > dm-devel mailing list > dm-devel@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/dm-devel -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel