<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>LUN to VM</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi All,<BR>
<BR>
<BR>
I have some questions about presenting LUNS to a virtual machine. My configuration is as follows:<BR>
<BR>
1 HP EVA 8000 that is being presented to a blade bl 456c running Rhel 5. The kernel is basic 2.6.18 xen kernel. I can see the LUNS on the blade, by using multipath. Below is a snippet of mulitpath.<BR>
<BR>
mpath10 (3600508b4001069430001d000017d0000) dm-17 HP,HSV200<BR>
[size=100G][features=1 queue_if_no_path][hwhandler=0]<BR>
\_ round-robin 0 [prio=0][active]<BR>
\_ 0:0:0:11 sdk 8:160 [active][undef]<BR>
mpath3 (3600508b4001069430001d00001960000) dm-5 HP,HSV200<BR>
[size=250G][features=1 queue_if_no_path][hwhandler=0]<BR>
\_ round-robin 0 [prio=0][active]<BR>
\_ 0:0:0:4 sdd 8:48 [active][undef]<BR>
<BR>
Now as you can see the devices are showing up under /dev/sd* and /dev/mapper/mpath*. I can mount the LUNS to blade without any problems. I now want these devices to be seen by the virtual machine created on the san. Below is a my configuration that I have set up for one of my VM's.<BR>
<BR>
VM Config file:<BR>
<BR>
# Automatically generated xen config file<BR>
name = "REDDISK"<BR>
builder = "hvm"<BR>
memory = "2000"<BR>
disk = [ '<A HREF="file:/opt/reddiskd0,hda,w','phy:/dev/mapper/mpath0,sda1,w'">file:/opt/reddiskd0,hda,w','phy:/dev/mapper/mpath0,sda1,w'</A>, ]<BR>
vif = [ 'type=ioemu, mac=00:16:3e:4d:d2:ea, bridge=xenbr0', ]<BR>
uuid = "57ad8f41-cd50-5e89-985f-6462aa5a5f9b"<BR>
device_model = "/usr/lib64/xen/bin/qemu-dm"<BR>
kernel = "/usr/lib/xen/boot/hvmloader"<BR>
vnc=1<BR>
vncunused=1<BR>
apic=1<BR>
acpi=1<BR>
pae=1<BR>
<BR>
vcpus=1<BR>
serial = "pty" # enable serial console<BR>
on_reboot = 'restart'<BR>
on_crash = 'restart'<BR>
**************************************************************<BR>
<BR>
I can also run the following command from cli and see the output in my configuration file once I enter this command:<BR>
<BR>
command 1: xm block-attach TXWD_COURT /block/sda sda w<BR>
<BR>
command 2: xm list REDDISK --long | less<BR>
<BR>
results from command 2<BR>
<BR>
domain<BR>
(domid 20)<BR>
(uuid 57ad8f41-cd50-5e89-985f-6462aa5a5f9b)<BR>
(vcpus 1)<BR>
(cpu_weight 1.0)<BR>
(memory 2000)<BR>
(shadow_memory 9)<BR>
(maxmem 2000)<BR>
(features )<BR>
(name REDDISK)<BR>
(on_poweroff destroy)<BR>
(on_reboot restart)<BR>
(on_crash restart)<BR>
(image<BR>
(hvm<BR>
(kernel /usr/lib/xen/boot/hvmloader)<BR>
(device_model /usr/lib64/xen/bin/qemu-dm)<BR>
(pae 1)<BR>
(vcpus 1)<BR>
(boot c)<BR>
(serial pty)<BR>
(vnc 1)<BR>
(vncunused 1)<BR>
(display localhost:1003.0)<BR>
(xauthority /root/.xauthJl2aRE)<BR>
(acpi 1)<BR>
(apic 1)<BR>
(vncpasswd 'None')<BR>
)<BR>
)<BR>
(device<BR>
(vif<BR>
(backend 0)<BR>
(script vif-bridge)<BR>
(bridge xenbr0)<BR>
(mac 00:16:3e:4d:d2:ea)<BR>
(type ioemu)<BR>
)<BR>
)<BR>
(device<BR>
(vbd (backend 0) (dev hda:disk) (uname <A HREF="file:/opt/reddiskd0">file:/opt/reddiskd0</A>) (mode w))<BR>
)<BR>
(device (vbd (backend 0) (dev sda:disk) (mode w)))<BR>
(device (vkbd (backend 0)))<BR>
(device<BR>
(vfb<BR>
(backend 0)<BR>
(type vnc)<BR>
(vncunused 1)<BR>
(display localhost:1003.0)<BR>
(xauthority /root/.xauthJl2aRE)<BR>
)<BR>
)<BR>
(state -b----)<BR>
(shutdown_reason poweroff)<BR>
(cpu_time 116.031996341)<BR>
(online_vcpus 1)<BR>
(up_time 3220.21273112)<BR>
(start_time 1186604696.56)<BR>
(store_mfn 61791)<BR>
)<BR>
<BR>
This tells me that the command was ok an that it should be see as sda on my virtual machine ( i think)?<BR>
*************************************************************************<BR>
<BR>
So sum up all my questions:<BR>
<BR>
1. Is my configuration file correct to present LUNS to the VM's ?<BR>
disk = [ '<A HREF="file:/opt/reddiskd0,hda,w','phy:/dev/mapper/mpath0,sda1,w'">file:/opt/reddiskd0,hda,w','phy:/dev/mapper/mpath0,sda1,w'</A>, ]<BR>
<BR>
2. Do I need to create a scsi block device in order for this work?<BR>
ie mknod or MAKEDEV. Reason being none of the scsi partitions show up at all<BR>
I checked cat /proc/partitions and /dev<BR>
<BR>
<BR>
3.Am I presenting this information wrong to the VM?<BR>
<BR>
<BR>
<BR>
4. I have also explored setting up WWID inside the VM but if it can't see the SAN then it does me no good for right now.<BR>
<BR>
I know that this may see confusing but if you need me to clarify then I can do that.<BR>
<BR>
ANY IDEAS OR SUGGESTIONS ?<BR>
<BR>
<BR>
Thanks in advance,<BR>
<BR>
Tameika<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>