#How to create RDM LUNs for vSphere?

1 messages · Page 1 of 1 (latest)

jovial pebble
#

Hi Team.

I want to connect RDM LUNs to a VM in vSphere, but the usual method of creating LUNs with "lun create" doesn't seem to work. Is there a different process for creating RDM LUNs in VMware? Do I need to use a different program or tool to achieve this? I'm curious about any relevant TR programs or methods.

Thanks and regards!

chilly hemlock
#

an RDM LUN is just a regular LUN, there is no difference (well except the OS type). You can create it with lun create just as you would create any other LUN. However you need to map it to the ESX hosts instead of the end-VMs, and you have to use the OS-type of the target OS (not vmware)

jovial pebble
#

So if I want to attach RDM LUNs to WINDOWS created on the VM, do I group type Windows?

We don't specify "os" when we create "Lun create"

chilly hemlock
#

You have to specify an OS type, otherwise you cannot create a LUN:

cl1::> lun create -vserver luntest -path /vol/luns/test.lun -size 10g
Error: command failed: "ostype" is a required field

So, yes, specify "windows_2008" or "linux" as LUN type if you use the LUN as RDM (depending on your guest OS). Do not use "windows", "windows_gpt" or "vmware"

jovial pebble
#

ahhhhhh Thanks i will try tommorw!!!

chilly hemlock
#

Maybe you can elaborate a bit on the " the usual method of creating LUNs with 'lun create' doesn't seem to work" part. What exactly doesn't work? Do you get an error? what commands did you use? Are you using FCP or ISCSI, etc.

jovial pebble
#

No, the example you provided seems correct. I think I remembered it incorrectly. So, creating a LUN in Windows format, mapping it to the VMware igroup, and then mounting the Windows LUN as RDM in the VMware ESXi for the VM should work!

I completely understand your response. Thank you!

chilly hemlock
#

yes, that should work

jovial pebble
#

Thanks!!

jovial pebble
#

@chilly hemlock

I just create a single windows lun and mapped vmware
but, when i create a vm still got problem.

#

anything should i've checkd?

rocky shore
#

It was mentioned not to use lun type of windows. Your image clearly shows a type of windows. Take the lun offline and change to Windows_2008 and set space allocation to true. Allows SCSI UNMAP from host