VMware Cloud Community
BenFB
Virtuoso
Virtuoso
Jump to solution

Unable to retrieve hard disk sharing configuration

We have a few clustered VMs that use shared VMDK (Oracle RAC) with the hard disk sharing set to "Multi-writer". We are finding that we can only locate these VMs by looking at the VMX file but we don't want to grant permission to download the VMX files. Is there another way that we are missing?

We tried these two approaches and they do not return the expected "scsi0:2.sharing = "multi-writer"".

1.

$vm = Get-VM RAC01

Get-AdvancedSetting -Entity $vm | Sort-Object Name | FT -AutoSize

2.

$vm = Get-VM RAC01

$vmView = Get-View -VIObject $vm

$vmView.Config.ExtraConfig

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

0 Kudos
11 Replies
LucD
Leadership
Leadership
Jump to solution

Did you try the code in Re: need to check multiwriter is enabled in VM


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

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

I was hoping you would reply. Your example on the second page works (Re: need to check multiwriter is enabled in VM).

VM            : Test
Name          : Hard disk 1
StorageFormat : Thin
Filename      : [datastore1] Test/Test.vmdk
Multi-Writer  : sharingNone

VM            : Test
Name          : Hard disk 2
StorageFormat : EagerZeroedThick
Filename      : [datastore1] Test/Test_1.vmdk
Multi-Writer  : sharingMultiWriter

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Yes, should have mentioned that 6.5 apparently behaves differently.

Sorry about that


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

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

So some good news and bad news. This is working on our test machine where we added a new hard disk with the sharing set to multi-writer. However, on our existing Oracle RAC servers it just returns a blank value. When we look in the vSphere Client "Sharing" is set to "Unspecified". We looked at the VMX and confirmed that it's configured.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Is there a difference in the disks (VMFS version, different provider...)?


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

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

The Oracle RAC VMs are currently using VMDK on both VMFS 5.58 and 5.61. The test I did was on 5.61.

I think this might be a bug since it used to display properly in the Web Client. The hosts are due for patching which will require a power off/on of the VMs so I'll see if that makes a difference.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

So those RAC VMs do not show the multi-writer info, neither via the Advanced Settings, nor via the esxcli command?
Perhaps worth to open a SR for this?


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

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

That's correct, I filled an SR.Thanks for your help!

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

LucD​ The engineer confirmed that this is a know issue with two PR associated with it (1653950 and 1500135).

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Thanks for sharing that Smiley Happy


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

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

We've done a few rounds of patching but I forgot to test this. I can confirm that on ESXi 6.0 Express Patch 19 (10719132) we no longer see this and it correctly returns.

Multi-Writer  : sharingMultiWriter

0 Kudos