VMware Cloud Community
Sunshine_S
Enthusiast
Enthusiast

How can we change the disk sharing mode to multi-writer for existing disks using PowerCLI?


There are 20 disks already connected to the VM. I have to change the sharing mode to "Multi-writer" for each of them.

I did this for one disk and captured the code.

Code capture shows 145 lines.

The one of interest is:

$spec.DeviceChange[0].Device.Backing.Sharing = 'sharingMultiWriter'

But I don't know how to put that in a script.

I need to this for 20 disks using a script.

Thanks!

Labels (3)
Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

You can have a look at Solved: Re: Multiwriter Disk - VMware Technology Network VMTN


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

Reply
0 Kudos