Hi,
Can you disable ATS Heartbeat per VMFS datastore? Trying to figure out how to set it via Get-esxcli -V2, LockingMode ATS => ATS+SCSI.
BR,
Pertti
You can do something like this
$dsName = 'MyDS'
$esxcli = Get-EsxCli -VMHost $esxName -V2
$hash1 = @{
volumelabel = $dsName
}
Write-Host "Before"
$esxcli.storage.vmfs.lockmode.list.Invoke($hash1)
$hash2 = @{
scsi = $true
volumelabel = $dsName
}
$esxcli.storage.vmfs.lockmode.set.Invoke($hash2)
$hash1 = @{
volumelabel = $dsName
}
Write-Host "After"
$esxcli.storage.vmfs.lockmode.list.Invoke($hash1)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can follow this KB VMware Knowledge Base
You can do something like this
$dsName = 'MyDS'
$esxcli = Get-EsxCli -VMHost $esxName -V2
$hash1 = @{
volumelabel = $dsName
}
Write-Host "Before"
$esxcli.storage.vmfs.lockmode.list.Invoke($hash1)
$hash2 = @{
scsi = $true
volumelabel = $dsName
}
$esxcli.storage.vmfs.lockmode.set.Invoke($hash2)
$hash1 = @{
volumelabel = $dsName
}
Write-Host "After"
$esxcli.storage.vmfs.lockmode.list.Invoke($hash1)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
This is doing job in my home "lab":
$clusterName = "Lab"
foreach ($esx in (Get-Cluster -Name $clusterName | Get-VMHost)) {
$esxcli = Get-EsxCli -vmhost $esx -V2
$arguments = $esxcli.storage.vmfs.lockmode.set.CreateArgs()
$arguments.scsi = 1
$arguments.volumelabel = "dungeon_0"
$esxcli.storage.vmfs.lockmode.set.Invoke($arguments)
}
$esxcli.storage.vmfs.lockmode.set.Help() command opened my eyes..
br, Pertti
Thank you LucD again