VSAN membership can be assigned based on the device WWN. This is referred to as Dynamic Port VSAN Membership (DPVM) and it eliminates the need to reconfigure when a device is moved to another port on a local or remote switch. DPVM uses CFS to distribute the VSAN information across the fabric. A test configuration is outlined below.
To start off, I removed VSAN 10 (my testing VSAN) from both MDS's. VSAN 10 is still allowed on the port-channel between the two Switches though.
Enable the feature
MDS1(config)# dpvm enable
Activate and commit the changes to prepare for auto learning
MDS1(config)# dpvm activate
Successful. Commit should follow for command to take effect.
MDS1(config)# dpvm commit
I can't test any further since the guide says that the only port type supported is an F port. My disk shelves are FL (FC-AL). I do see my HBA that is a type F in the database as auto learnt.
MDS1# sh dpvm da active
pwwn 10:00:00:00:c9:6e:b6:21 vsan 10(*)
[Total 1 entries]
* is auto-learnt entry