Configuring SAN and Creating VMs connected to SAN using NPIV on SLES10 SP2 | SUSE Communities

Configuring SAN and Creating VMs connected to SAN using NPIV on SLES10 SP2


Author: Suma B R

This article helps to create a npiv setup on SLES10 SP2 with XEN as hypervisor. This has been tried on Dell PowerEdge servers.

a) Configure VM Host to SAN

  1. Retrieve the node name (wwnn) and port name (wwpn) from the server to be configured as below:


Click to view.

  1. Log on to SAN configuration center and configure a connection for the server by providing the node name and port name. Separate every two digits of node and port name with “:” Eg: If node name is 0x2000001B3212A6B5 and port name is 0x2100001B3212A6B5 then Initiator should be: 


Click to view.


  1. Create a Virtual disk for the connection created in Step 2.


Click to view.

b) Configure VM to SAN

Follow the same steps as Step a) Configure VM host to SAN.

Note: Here the node name and port name can be any random. Just replace the last few digits or characters of the server node name and port names to get a unique wwnn and wwpn.
Eg: 20:00:00:00:C9:77:DE:AD:20:00:00:00:C9:77:FA:CE


c) Create VMs Connected to SAN

  1. Open VM manager, the command is virt-manager.
  2. Select the desired OS time and move to the “Summary” page. Select the “Disks” section to add npiv storage disk.


Click to view.

  1. In the “Virtual Disk” page, for “Source” provide a link for the storage disk in the format, npiv:<san id>-<wwpn>-<wwnn>-<target id>-<lun>. 
    Eg. npiv:100000051e09e3da-20000000c977fbce-20000000c977dead-500601604ba00d11-0


Click to view.

  1. Continue the VM installation by providing the installation source and complete process.
  2. After the installation, the vm file under /etc/xen/vm should look like the following:

Click to view.

(Visited 1 times, 1 visits today)

Leave a Reply

Your email address will not be published.

No comments yet