<!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.&nbsp; My configuration is as follows:<BR>
<BR>
1 HP EVA 8000 that is being presented to a blade bl 456c running Rhel 5.&nbsp; The kernel is basic 2.6.18 xen kernel.&nbsp; I can see the LUNS on the blade, by using multipath.&nbsp; 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>
&nbsp;\_ 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>
&nbsp;\_ 0:0:0:4&nbsp; sdd 8:48&nbsp; [active][undef]<BR>
<BR>
Now as you can see the devices are showing up under /dev/sd* and /dev/mapper/mpath*.&nbsp; I can mount the LUNS to&nbsp; blade without any problems. I now want these devices to be seen by the virtual machine created on the san.&nbsp; 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 = &quot;REDDISK&quot;<BR>
builder = &quot;hvm&quot;<BR>
memory = &quot;2000&quot;<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 = &quot;57ad8f41-cd50-5e89-985f-6462aa5a5f9b&quot;<BR>
device_model = &quot;/usr/lib64/xen/bin/qemu-dm&quot;<BR>
kernel = &quot;/usr/lib/xen/boot/hvmloader&quot;<BR>
vnc=1<BR>
vncunused=1<BR>
apic=1<BR>
acpi=1<BR>
pae=1<BR>
<BR>
vcpus=1<BR>
serial = &quot;pty&quot; # enable serial console<BR>
on_reboot&nbsp;&nbsp; = 'restart'<BR>
on_crash&nbsp;&nbsp;&nbsp; = '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>
&nbsp;&nbsp;&nbsp; (domid 20)<BR>
&nbsp;&nbsp;&nbsp; (uuid 57ad8f41-cd50-5e89-985f-6462aa5a5f9b)<BR>
&nbsp;&nbsp;&nbsp; (vcpus 1)<BR>
&nbsp;&nbsp;&nbsp; (cpu_weight 1.0)<BR>
&nbsp;&nbsp;&nbsp; (memory 2000)<BR>
&nbsp;&nbsp;&nbsp; (shadow_memory 9)<BR>
&nbsp;&nbsp;&nbsp; (maxmem 2000)<BR>
&nbsp;&nbsp;&nbsp; (features )<BR>
&nbsp;&nbsp;&nbsp; (name REDDISK)<BR>
&nbsp;&nbsp;&nbsp; (on_poweroff destroy)<BR>
&nbsp;&nbsp;&nbsp; (on_reboot restart)<BR>
&nbsp;&nbsp;&nbsp; (on_crash restart)<BR>
&nbsp;&nbsp;&nbsp; (image<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (hvm<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kernel /usr/lib/xen/boot/hvmloader)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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p;&nbsp;&nbsp;&nbsp;&nbsp; (vif<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (backend 0)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (script vif-bridge)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (bridge xenbr0)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (mac 00:16:3e:4d:d2:ea)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (type ioemu)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>
&nbsp;&nbsp;&nbsp; )<BR>
&nbsp;&nbsp;&nbsp; (device<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vbd (backend 0) (dev hda:disk) (uname <A HREF="file:/opt/reddiskd0">file:/opt/reddiskd0</A>) (mode w))<BR>
&nbsp;&nbsp;&nbsp; )<BR>
&nbsp;&nbsp;&nbsp; (device (vbd (backend 0) (dev sda:disk) (mode w)))<BR>
&nbsp;&nbsp;&nbsp; (device (vkbd (backend 0)))<BR>
&nbsp;&nbsp;&nbsp; (device<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vfb<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (backend 0)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (type vnc)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vncunused 1)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (display localhost:1003.0)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (xauthority /root/.xauthJl2aRE)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>
&nbsp;&nbsp;&nbsp; )<BR>
&nbsp;&nbsp;&nbsp; (state -b----)<BR>
&nbsp;&nbsp;&nbsp; (shutdown_reason poweroff)<BR>
&nbsp;&nbsp;&nbsp; (cpu_time 116.031996341)<BR>
&nbsp;&nbsp;&nbsp; (online_vcpus 1)<BR>
&nbsp;&nbsp;&nbsp; (up_time 3220.21273112)<BR>
&nbsp;&nbsp;&nbsp; (start_time 1186604696.56)<BR>
&nbsp;&nbsp;&nbsp; (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.&nbsp; 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.&nbsp; 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.&nbsp; 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>