Microsoft Virtualization Discussions
we have ONTAP 8.1.2p4 and Powershell Toolkit 2.4 installed. Now we have seen, that it is not possible to add cifs-shares anymore:
PS Y:\> Add-NaCifsShare -Share test -Path /vol/snapvault1 -Comment "test"
Add-NaCifsShare : Directory "/vol/snapvault1" does not exist.
Bei Zeile:1 Zeichen:16
+ Add-NaCifsShare <<<< -Share test -Path /vol/snapvault1 -Comment "test"
+ CategoryInfo : InvalidOperation: (vfiler_test:NaController) [Add-NaCifsShare], EONTAPI_EINVAL
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Cifs.AddNaCifsShare
Volume and Qtree exists on the vfiler vfiler_test:
snapvault1 snapvault_01 ntfs enabled normal
Does anyone have an idea, if this is a bug or a feature ;-)?
See The Solution
I tried to reproduce your problem, because we have also upgraded to ONTAP 8.1.2P4 and I have also Powershell Toolkit 2.4 installed.
But in my environment it works like expected.
Did you connect to the vfiler on which you want to create your cifs share?
This is what I have done:
add-nacifsshare -share test -path <volume_name_mapped_to_the_vfiler> -comment "test"
I hope it helps..
View solution in original post
Thanks for your feedback!
This is exactly what I did:
PS Y:\> Connect-NaController vfiler_test
Name Address Ontapi Version
---- ------- ------ -------
vfiler_test 192.168.14.13 1.19 NetApp Release 8.1.2P4 7-Mode: Fri Apr 26 19:57:25 PDT 2013
PS Y:\> Get-NaQtree snapvault1
Volume Qtree Status Security OpLocks
------ ----- ------ -------- -------
snapvault1 normal ntfs enabled
snapvault1 snapvault_01 normal ntfs enabled
PS Y:\> Add-NaCifsShare -Share test -Path /vol/snapvault1/snapvault_01
Add-NaCifsShare : Directory "/vol/snapvault1/snapvault_01" does not exist.
+ Add-NaCifsShare <<<< -Share test -Path /vol/snapvault1/snapvault_01
If I remove the volume from the vfiler_test to vfiler0, the command is working properly:
PS Y:\> Connect-NaController filer1
filer1 192.168.14.10 1.19 NetApp Release 8.1.2P4 7-Mode: Fri Apr 26 19:57:25 PDT 2013
PS Y:\> Add-NaCifsShare -Share test -Path "/vol/snapvault1/snapvault_01" -Comment "test"
MountPoint ShareName Description
---------- --------- -----------
/vol/snapvault1/snapvault_01 test test
Thanks for help,
I made one more test with a qtree exactly like you did. It was also successful.
I don't see any difference between your environment and ours. Maybe it has to do with SnapVault? We don't use SnapVault.
PS Y:\Scripts> get-naqtree volV5Test
Volume Qtree Status Security OpLocks------ ----- ------ -------- -------volV5Test normal ntfs enabledvolV5Test TestQtree normal ntfs enabled
PS Y:\Scripts> add-nacifsshare -share test -path /vol/volV5Test/TestQtree
MountPoint ShareName Description---------- --------- -----------/vol/volV5Test/TestQtree test
Sorry, that I can't help you.
We disabled snapvault, but it is still not working.
The problem was a bad entry in DNS for vfiler_test. So it was always connecting to vfiler0 instead of vfiler_test and the volume was not there. Now everything is working fine, thanks!
Live Chat, Watch Parties, and More!
Engage digitally throughout the sales process, from product discovery to conﬁguration, and handle all your post-purchase needs.