Welcome to the VMware VMTN Communities.
In PowerCLI you can try:
$esxcli = Get-EsxCli -VMHost "YourHost" $esxcli.storage.vmfs.snapshot.mount.invoke("DATASTORE")
Tks for welcome RvdNieuwendijk....
So, I run this command. But, show an error in the argument. Do you know what the argument correct?
PowerCLI C:\> $esxcli = Get-EsxCli -VMHost "srvvmrackc01.cccsp.com.br"
PowerCLI C:\> $esxcli.storage.vmfs.snapshot.mount.invoke("TESTE-DATASTORE")
Exception calling "Invoke" with "1" argument(s): "A specified parameter was not correct. argument"
At line:1 char:43
+ $esxcli.storage.vmfs.snapshot.mount.invoke <<<< ("TESTE-DATASTORE")
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Which vSphere version are you running ?
The esxcli commands changed between vSphere 4 & 5
He is probably running vSphere 5 because there is no $esxcli.storage property in v4.
I am using VShere 5.0...
While looking better at the mount method, I see that it needs three parameters:
boolean mount(boolean nopersist, string volumelabel, string volumeuuid)
Can you try again with the following commands:
$esxcli = Get-EsxCli -VMHost "YourHost" $esxcli.storage.vmfs.snapshot.mount($false,"TESTE-DATASTORE",$null)
Message was edited by: RvdNieuwendijk
Tks ALL.... for answer...
It's correct arguments...
Your question inspired me to create a blog post about how I came to the answer. The blog post also shows all the possible PowerCLI ESXCLI commands for vSphere 4 and vSphere 5. And it shows a PowerCLI function that generates the lists of PowerCLI ESXCLI commands. You can find the blog post here:
Congratulations for the article.
Hope you can help many people!!!