This is a continuation of my previous post. I have working code to add 45 RDMs to node A in a cluster. I'm now trying to add the RDMs to node B. This is the code I have that *should* work but doesn't:
$sc = Get-ScsiController -VM VM2 | where {$_.Extensiondata.BusNumber -eq 1}
$v = Get-VM VM2 | new-harddisk -controller $sc -diskpath "[Datastore-01] VM2/VM2_2.vmdk"
I've also tried LucD's script Add-Delete-HD-vSphere-annotated.ps1 from this thread: http://communities.vmware.com/thread/229937
Both times I get the error in the subject line. The error using LucD's script has slightly different wording, but is generally the same error. This of course works just fine doing it manually in the GUI.
To get around SCSI controller issues, I've already created the disk at SCSI 1:0 and set the SCSI controller to Physical bus sharing. I did this manually to avoid any potential script induced issues. I checked the LUN IDs and both hosts see the LUN the same way, same ID, same Canonical name, etc.
I'm at a loss here. Any ideas? This should be pretty easy to do but flat out isn't working and I'm out of ideas. Thanks!