SUSE Conversations


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



By: brsuma

October 9, 2008 4:40 pm

Reads:604

Comments:0

Rating:0

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: 
    20:00:00:1B:32:12:A6:B5:21:00:00:1B:32:12:A6:B5

     

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.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: , ,
Categories: SUSE Linux Enterprise Server, Technical Solutions, Virtualization

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

Comment

RSS