What is the version of the ESX holding this VM, VM hardware version and the size of the RDM LUN?
I have the same report if I try to create a RDM with an existing scsiDisk and vm:
device = (vim.vm.device.VirtualDisk) {
--> dynamicType = <unset>,
--> key = -1,
--> deviceInfo = (vim.Description) null,
--> backing = (vim.vm.device.VirtualDisk.RawDiskMappingVer1BackingInfo) {
--> dynamicType = <unset>,
--> fileName = "[]/vmfs/volumes/527bd124-983c665a-6ad1-0010187a630c/SLES 11.2 source/SLES 11.2 source ix3227.vmdk",
--> datastore = <unset>,
--> backingObjectId = <unset>,
--> lunUuid = "0200030000600507680281065dd000000000000c1b323134352020",
--> deviceName = "vml.0200030000600507680281065dd000000000000c1b323134352020",
--> compatibilityMode = "physicalMode",
--> diskMode = "independent_persistent",
--> uuid = <unset>,
--> contentId = <unset>,
--> changeId = <unset>,
--> parent = (vim.vm.device.VirtualDisk.RawDiskMappingVer1BackingInfo) null,
--> deltaDiskFormat = <unset>,
--> deltaGrainSize = <unset>,
--> },
--> connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {
--> dynamicType = <unset>,
--> startConnected = true,
--> allowGuestControl = false,
--> connected = true,
--> status = <unset>,
--> },
--> slotInfo = (vim.vm.device.VirtualDevice.BusSlotInfo) null,
--> controllerKey = 1000,
--> unitNumber = 3,
--> capacityInKB = 2147483,
--> capacityInBytes = <unset>,
--> shares = (vim.SharesInfo) null,
--> storageIOAllocation = (vim.StorageResourceManager.IOAllocationInfo) null,
--> diskObjectId = <unset>,
--> vFlashCacheConfigInfo = (vim.vm.device.VirtualDisk.VFlashCacheConfigInfo) null,
--> },
ESXi 5.5
client code base for WSDL version 4.0
sizeof LUN is 2GB
file "/vmfs/volumes/527bd124-983c665a-6ad1-0010187a630c/SLES 11.2 source/SLES 11.2 source ix3227.vmdk", does not exist on host
deviceName was wrong!
If I use the deviceName of the HostScsiDisk creating RDM is successful!