Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 206069

Re: Adding multiple RDMs to a VM

$
0
0

Thanks LucD, I think I'm getting pretty close.  I actually used your script from the other thread to get a list of all LUNs on all hosts, and I was able to filter out this specific cluster to get a list of all of the LUN IDs and Canonical names in the order I need.  Next step is to use this info to add the RDMs to the VM.

 

We have what I think is a pretty unique setup here.  14 SQL instances per VM, all data drives on one controller, Logs on another, TempDB on the 3rd. So in adding the disks we need to add them in order.  What I'm looking to do is create SCSI ID 1:0 (2:0 and 3:0) manually, then script out adding 1:1 through 1:15 etc.  So 1:0 is added, and controller set to physical mode.  If I run:

 

get-vm MyVM | get-scsicontroller     I get this (sorry for the spacing):

 

Type                 BusSharingMode       UnitNumber

----                 --------------       ----------

VirtualLsiLogicSAS   NoSharing                     3

VirtualLsiLogicSAS   Physical                      4

VirtualLsiLogicSAS   NoSharing                     3

VirtualLsiLogicSAS   Physical                      4

 

Next, I run this short script for testing:

 

$devicename = "/vmfs/devices/disks/naa.60060160b01231001ca9bf91bec4e211"

$vm = "MyVM"

New-HardDisk -VM $vm -DeviceName $devicename -DiskType RawVirtual

 

This creates one disk at SCSI 0:1, then gives a "Invalid configuration for device '0'" error.  I assume this is because there are two SCSI controllers listed above for UnitNumber 4 (even though there's only one on the VM itself).

 

That brings us to this: how do I add this RDM to SCSI 1:1?  It seems that the -Controller switch in new-harddisk will not work with RDMs? 


Viewing all articles
Browse latest Browse all 206069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>