Configuring SDV
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
To configure a virtual device and commit it to the fabric configuration, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 2
switch(config)# feature sdv
Step 3
switch(config)# sdv virtual-device name
vdev1 vsan 2
Step 4
switch(config-sdv-virt-dev)# pwwn
21:00:00:04:cf:cf:45:40 primary
switch(config-sdv-virt-dev)# pwwn
21:00:00:04:cf:cf:38:d6
Step 5
switch(config-sdv-virt-dev)# attribute
failover auto
switch(config-sdv-virt-dev)# attribute
failover auto fallback
Step 6
switch(config-sdv-virt-dev)# exit
Step 7
switch(config)# sdv commit vsan 2
Step 8
switch(config)# exit
switch# show device-alias database
Step 9
switch# show fcns database vsan vsan 2
As of MDS NX-OS Release 4.1(1a), the following conditions must be considered when configuring the
virtual device failover attributes:
•
•
•
This example shows the virtual device status without automatic failover configurations:
switch# show sdv database
sdv virtual-device name vdev1 vsan 1
[ WWN:50:00:53:04:48:3c:01 FCID:0x42000c Real-FCID:0xeb0001 ]
* device-alias dev1 primary
Cisco MDS 9000 Family CLI Configuration Guide
21-6
The attribute configuration is supported only with MDS NX-OS Release 4.1(1a) and later. In a
mixed mode fabric where earlier releases are combined, the attribute configuration will fail.
When the failover attribute is configured, if the primary device is offline then the secondary device
becomes active.
When the failover attribute is deleted after the primary device failover to the secondary device, then
the primary becomes active if the primary device is online. If the primary device is not online, then
the SDV virtual device is shut down.
device-alias dev2
Chapter 21
Purpose
Enters configuration mode.
Enables the SDV feature.
If you do not have the Cisco MDS 9000
Note
Family Enterprise package license
(ENTERPRISE_PKG) installed, this
command will fail.
Configures a virtual device alias name (vdev1).
Enters SDV manager configuration submode.
Maps primary virtual device to the pWWN of real
devices.
Maps secondary virtual device to pWWN of a real
device.
(Optional) Automatically fails over from primary
device to the secondary device.
(Optional) Automatically fails over, and then falls
back to the primary device when the primary
device comes online.
Exits SDV manager configuration submode.
Commits the VSAN configuration to the fabric.
Verifies that the virtualized device is registered in
the device alias database.
If the primary device is online, verifies that the
virtual device appears in the name server database
and has the correct FC4 type (Fibre Channel
Layer 4).
OL-18084-01, Cisco MDS NX-OS Release 4.x
SAN Device Virtualization