About DPVM
Port VSAN membership on the switch is assigned on a port-by-port basis. By default each port belongs to the default VSAN.
You can dynamically assign VSAN membership to ports by assigning VSANs based on the device WWN. This method is referred to as Dynamic Port VSAN Membership (DPVM). DPVM offers flexibility and eliminates the need to reconfigure the port VSAN membership to maintain fabric topology when a host or storage device connection is moved between two Cisco MDS switches or two ports within a switch. It retains the configured VSAN regardless of where a device is connected or moved. To assign VSANs statically, see Creating Dynamic VSANs .
DPVM configurations are based on port world wide name (pWWN) and node world wide name (nWWN) assignments. DPVM contains mapping information for each device pWWN/nWWN assignment and the corresponding VSAN. The Cisco NX-OS software checks DPVM active configuration during a device FLOGI and obtains the required VSAN details.
The pWWN identifies the host or device and the nWWN identifies a node consisting of multiple devices. You can assign any one of these identifiers or any combination of these identifiers to configure DPVM mapping. If you assign a combination, then preference is given to the pWWN.
DPVM uses the Cisco Fabric Services (CFS) infrastructure to allow efficient database management and distribution. DPVM uses the application driven, coordinated distribution mode and the fabric-wide distribution scope (for information about CFS, refer to the Cisco MDS 9000 Series NX-OS System Management Configuration Guide .
Note |
DPVM does not cause any changes to device addressing. DPVM only pertains to the VSAN membership of the device, ensuring that the host gets the same VSAN membership on any port on the switch. For example, if a port on the switch has a hardware failure, you can move the host connection to another port on the switch and you do not need to update the VSAN membership manually. |
Note |
DPVM is not supported on FL ports. DPVM is supported only on F ports. |
This section describes DPVM and includes the following topics:
About DPVM Configuration
To use the DPVM feature as designed, be sure to verify the following requirements:
-
The interface through which the dynamic device connects to the Cisco MDS 9000 Series switch must be configured as an F port.
-
The static port VSAN of the F port should be valid (not isolated, not suspended, and in existence).
-
The dynamic VSAN configured for the device in the DPVM database should be valid (not isolated, not suspended, and in existence).
-
Device-alias must be in enhanced mode.
Note |
The DPVM feature overrides any existing static port VSAN membership configuration. If the VSAN corresponding to the dynamic port is deleted or suspended, the port is shut down. |
Enabling DPVM
To begin configuring DPVM, you must explicitly enable DPVM on the required switches in the fabric. By default, this feature is disabled in all switches in the Cisco MDS 9000 Family.
The configuration and verification commands for DPVM are only available when DPVM is enabled on a switch. When you disable this feature, all related configurations are automatically discarded.
To enable DPVM on any participating switch, follow these steps:
Procedure
Step 1 |
switch# config t Enters configuration mode. |
||
Step 2 |
switch(config)# feature dpvm Enables DPVM on that switch. |
||
Step 3 |
switch(config)# no feature dpvm Disables (default) DPVM on that switch.
|
DPVM Device Configuration (Static)
The DPVM device configuration consists of a series of device mapping entries. Each entry consists of a device pWWN or nWWN assignment along with the dynamic VSAN to be assigned. You can configure a maximum of 16,000 DPVM entries in the DPVM database. This database is global to the whole switch (and fabric) and is not maintained for each VSAN.
Configuring DPVM
To configure DPVM, follow these steps:
Procedure
Step 1 |
switch# configure terminal Enters configuration mode. |
Step 2 |
switch(config)# device-alias mode enhanced switch(config)# device-alias commit Enables enhanced device alias mode. |
Step 3 |
switch(config)# dpvm database Creates the DPVM config database. |
Step 4 |
switch(config)# no dpvm database (Optional) Deletes the DPVM config database. |
Step 5 |
switch(config-dpvm-db)# pwwn 12:33:56:78:90:12:34:56 vsan 100 Maps the specified device pWWN to VSAN 100. |
Step 6 |
switch(config-dpvm-db)# no pwwn 12:33:56:78:90:12:34:56 vsan 101 (Optional) Removes the specified device pWWN mapping from the DPVM config database. |
Step 7 |
switch(config-dpvm-db)# nwwn 14:21:30:12:63:39:72:81 vsan 101 Maps the specified device nWWN to VSAN 101. |
Step 8 |
switch(config-dpvm-db)# no nwwn 14:21:30:12:63:39:72:80 vsan 101 (Optional) Removes the specified device nWWN mapping from the DPVM config database. |
Step 9 |
switch(config-dpvm-db)# device-alias device1 vsan 102 Maps the specified device-alias to VSAN 102. |
Step 10 |
switch(config-dpvm-db)# no device-alias device1 vsan 102 (Optional) Removes the specified device-alias mapping from the DPVM config database. |
Step 11 |
switch(config-dpvm-db)# show dpvm pending (Optional) When DPVM distribute is enabled (enabled by default when the feature is enabled) all configuration changes are held until they are committed. The list of pending changes can be seen at any time using this command. |
Step 12 |
switch(config-dpvm-db)# dpvm commit (Optional) When DPVM distribute is enabled (enabled by default when the feature is enabled) this command is required to commit the configuration changes. |
Step 13 |
switch(config-dpvm-db)# show dpvm database (Optional) Displays DPVM static device configuration. |
Activating DPVM
Activating DPVM enforces the DPVM configuration. Activation may fail if there are conflicts between the already active configuration and the configuration to be activated. Activation can be forced to override the conflicting entries.
DPVM configuration can also be deactivated by issuing the no dpvm activate command.
To activate DPVM, follow these steps:
Procedure
Step 1 |
switch# configure terminal Enters configuration mode. |
Step 2 |
switch(config)# dpvm activate Activates the DPVM configuration. |
Step 3 |
switch(config)# no dpvm activate Deactivates the currently active DPVM configuration. |
Step 4 |
switch(config)# dpvm activate force Forcefully activates the DPVM configuration and overrides the conflicting entries. |
Step 5 |
switch(config)# dpvm commit When DPVM distribute is enabled (enabled by default when the feature is enabled) this command is required to commit the configuration changes. |
Step 6 |
switch(config)# show dpvm database active (Optional) Displays the enforced DPVM device configuration. |
DPVM Autolearn
DPVM can be configured to automatically learn (autolearn) new devices within each VSAN. DPVM autolearn can be enabled or disabled at any time. Learned entries are created by populating device pWWNs and VSANs and can be using the show dpvm database active . DPVM should be activated before autolearn can be enabled.
Auto learned entries can also be manually deleted. The auto learned entries become permanent when DPVM auto learn is disabled.
Note |
Autolearn is only supported for devices connected to F ports. Devices connected to FL ports are not entered into the DPVM database because DPVM is not supported on FL ports. |
The following conditions apply to learned entries:
-
If a device logs out while autolearn is enabled, the corresponding autolearn entry is automatically deleted.
-
If the same device logs multiple times into the switch through different ports, then the VSAN corresponding to last login is remembered.
-
Learned entries do not override previously configured and activated entries.
-
Learning is a two-part process—Enabling autolearning followed by disabling autolearning. When the auto-learn option is enabled, the following applies:
-
Learning currently logged-in devices—Occurs from the time learning is enabled.
-
Learning new device logins— Occurs as and when new devices log in to the switch.
-
Enabling Autolearn
To enable autolearn, follow these steps:
Procedure
Step 1 |
switch# configure terminal Enters configuration mode. |
Step 2 |
switch(config)# dpvm auto-learn Enables autolearn on the switch. |
Step 3 |
switch(config)# no dpvm auto-learn Disables (default) autolearn on the switch. |
Step 4 |
switch(config)# clear dpvm auto-learn Clears the list of autolearned entries. |
Step 5 |
switch(config)# clear dpvm auto-learn pwwn pwwn Clears the list of autolearned pWWN entries in the distributed DPVM database. |
Step 6 |
switch(config)# dpvm commit When DPVM distribute is enabled (enabled by default when feature is enabled) any change to DPVM autolearn has to be committed before it can take effect locally and in the fabric. |
Clearing Learned Entries
You can clear DPVM entries from the active DPVM database (if autolearn is still enabled) using one of two methods.
-
To clear a single autolearn entry, use the clear dpvm auto-learn pwwn command.
switch# clear dpvm auto-learn pwwn 55:22:33:44:55:66:77:88
-
To clear all autolearn entries, use the clear dpvm auto-learn command.
switch# clear dpvm auto-learn
Note |
These two commands do not start a session and can only be issued in the local switch. |
Disabling Autolearn
To disable autolearn, follow these steps:
Procedure
Step 1 |
switch# configure terminal Enters configuration mode. |
||
Step 2 |
switch(config)# no dpvm auto-learn Disables autolearn on the switch.
|