LUN to VM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: LUN to VM

Hi All,


I have some questions about presenting LUNS to a virtual machine.  My configuration is as follows:

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.

mpath10 (3600508b4001069430001d000017d0000) dm-17 HP,HSV200
[size=100G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=0][active]
 \_ 0:0:0:11 sdk 8:160 [active][undef]
mpath3 (3600508b4001069430001d00001960000) dm-5 HP,HSV200
[size=250G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=0][active]
 \_ 0:0:0:4  sdd 8:48  [active][undef]

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.

VM Config file:

# Automatically generated xen config file
name = "REDDISK"
builder = "hvm"
memory = "2000"
disk = [ 'file:/opt/reddiskd0,hda,w','phy:/dev/mapper/mpath0,sda1,w', ]
vif = [ 'type=ioemu, mac=00:16:3e:4d:d2:ea, bridge=xenbr0', ]
uuid = "57ad8f41-cd50-5e89-985f-6462aa5a5f9b"
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
vncunused=1
apic=1
acpi=1
pae=1

vcpus=1
serial = "pty" # enable serial console
on_reboot   = 'restart'
on_crash    = 'restart'
**************************************************************

I can also run the following command from cli and see the output in my configuration file once I enter this command:

command 1: xm block-attach TXWD_COURT /block/sda sda w

command 2: xm list REDDISK --long | less

results from command 2

domain
    (domid 20)
    (uuid 57ad8f41-cd50-5e89-985f-6462aa5a5f9b)
    (vcpus 1)
    (cpu_weight 1.0)
    (memory 2000)
    (shadow_memory 9)
    (maxmem 2000)
    (features )
    (name REDDISK)
    (on_poweroff destroy)
    (on_reboot restart)
    (on_crash restart)
    (image
        (hvm
            (kernel /usr/lib/xen/boot/hvmloader)
            (device_model /usr/lib64/xen/bin/qemu-dm)
            (pae 1)
            (vcpus 1)
            (boot c)
            (serial pty)
            (vnc 1)
            (vncunused 1)
            (display localhost:1003.0)
            (xauthority /root/.xauthJl2aRE)
            (acpi 1)
            (apic 1)
            (vncpasswd 'None')
        )
    )
    (device
        (vif
            (backend 0)
            (script vif-bridge)
            (bridge xenbr0)
            (mac 00:16:3e:4d:d2:ea)
            (type ioemu)
        )
    )
    (device
        (vbd (backend 0) (dev hda:disk) (uname file:/opt/reddiskd0) (mode w))
    )
    (device (vbd (backend 0) (dev sda:disk) (mode w)))
    (device (vkbd (backend 0)))
    (device
        (vfb
            (backend 0)
            (type vnc)
            (vncunused 1)
            (display localhost:1003.0)
            (xauthority /root/.xauthJl2aRE)
        )
    )
    (state -b----)
    (shutdown_reason poweroff)
    (cpu_time 116.031996341)
    (online_vcpus 1)
    (up_time 3220.21273112)
    (start_time 1186604696.56)
    (store_mfn 61791)
)

This tells me that the command was ok an that it should be see as sda on my virtual machine ( i think)?
*************************************************************************

So sum up all my questions:

1.  Is my configuration file correct to present LUNS to the VM's ?
disk = [ 'file:/opt/reddiskd0,hda,w','phy:/dev/mapper/mpath0,sda1,w', ]

2.  Do I need to create a scsi block device in order for this work?
ie mknod or MAKEDEV. Reason being none of the scsi partitions show up at all
I checked cat /proc/partitions and /dev


3.Am I presenting this information wrong to the VM?



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.

I know that this may see confusing but if you need me to clarify then I can do that.

ANY IDEAS OR SUGGESTIONS ?


Thanks in advance,

Tameika


--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux