VMware Cloud Community
mrzeeusa
Contributor
Contributor

Adding current multi disk from VM node1 to node2 and node3. multiwriter,egerzero,independent_persistent etc.

I check and found some similar post of "LucD" (Gru) Expert . I tweak his script according to my need but it is not worked for me specially adding to second node may be because of multiwriter and egarzeros option. it took more than 3hours to add in first node and fails for second and third node. I create new script to add all drives from Node1 to other nodes node2 and 3. See blow script. I am new to powerCLI about a mount but good in Bash scripts but it is totally different.  Thanks in advance for any help. 

The error I received.

Exception calling "ReconfigVM" with "1" argument(s): "Incompatible device backing specified for device '0'."

but.

Get-VM -Name node1 | Get-HardDisk | where{$_.Name -ne 'Hard disk 1'} | Select -ExpandProperty FileName

working fine and showing all 34 disks.

Tags (1)
Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Which is the original script (I have a few on here) are you using?

There are a few issues in your script.
But could you provide some more information?

What type of controller are you using?

How many disks on that controller? 16?

How are the harddisks configured on the 1st VM?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos