ONTAP Discussions

Importing CIFS shares from 7mode to CDOT 9.3

Steve_Norrie
3,495 Views

Good morning

 

I am in the midst of a large 7mode transition of 37 arrays down into 6 new CDOT 9.3p5 arrays

 

31 of the migrations have worked or are working with the 7MTT, however 6 are not

 

The 6 arrays run 7 mode 8.0.2p6 and timeout in the 7mtt console when attempting to create the transition projects

 

I have been working with NetApp support on this, and have set up manual transition projects, using the guide https://library.netapp.com/ecm/ecm_download_file/ECMLP2494078

 

These have succesfully mirrored the data, however, when I cutover, I am left with all the data, and NTFS permissions, but no shares or share permissions

 

is there a way to import these shares? many of the projects have hundreds of shares and its not viable to manually recreate each share

 

Regards

Steve

1 ACCEPTED SOLUTION

mbeattie
3,479 Views

Hi Steve,

 

Yes it would certainly be possible to achieve this using the NetApp PSTK available here:

 

https://mysupport.netapp.com/tools/info/ECMLP2310788I.html?productID=61926

 

The PowerShell CmdLet's you would probably use are:

 

 

Connect-NaController #use the "-Vfiler" paramater when connecting to your 7-Mode controller if your intention is to migrate all CIFS shares on 7-Mode vFiler to to a vserver on cDOT
Get-NaCifsShare
Get-NaCifsShareAcl Connect-NcController #you can use the "-Vserver" paramater to connect to the target vserver, alternately omit this paramater and connect to the cluster and use the "-VserverContext" paramater in the cmdlets below (might be useful if you need to migrate shares from multiple vfilers to vservers) Add-NcCifsShare #use the "-VserverContext" paramater if you connected to the cluster without specifying the vserver Set-NcCifsShareAcl #use the "-VserverContext" paramater if you connected to the cluster without specifiy the vserver

 

 

Have you considered any additional configuration such DFS integration, Quotas, DNS CName aliases, SPN's etc that might need updating to ensure your migration is successful?

 

Hope this help

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

3 REPLIES 3

mbeattie
3,480 Views

Hi Steve,

 

Yes it would certainly be possible to achieve this using the NetApp PSTK available here:

 

https://mysupport.netapp.com/tools/info/ECMLP2310788I.html?productID=61926

 

The PowerShell CmdLet's you would probably use are:

 

 

Connect-NaController #use the "-Vfiler" paramater when connecting to your 7-Mode controller if your intention is to migrate all CIFS shares on 7-Mode vFiler to to a vserver on cDOT
Get-NaCifsShare
Get-NaCifsShareAcl Connect-NcController #you can use the "-Vserver" paramater to connect to the target vserver, alternately omit this paramater and connect to the cluster and use the "-VserverContext" paramater in the cmdlets below (might be useful if you need to migrate shares from multiple vfilers to vservers) Add-NcCifsShare #use the "-VserverContext" paramater if you connected to the cluster without specifying the vserver Set-NcCifsShareAcl #use the "-VserverContext" paramater if you connected to the cluster without specifiy the vserver

 

 

Have you considered any additional configuration such DFS integration, Quotas, DNS CName aliases, SPN's etc that might need updating to ensure your migration is successful?

 

Hope this help

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Steve_Norrie
3,474 Views

Matt

 

Thanks for that

 

I have used that to get the Filer, and the Share list, however Get-NaCifsShareAcl produces an error "unable to find API: cifs-share-acl-list-iter-start"

 

A google search found this. https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Support-for-Get-NaCifsShareACL/td-p/54987

 

is there a way around this? 

 

I would assume an Add-NcCifsShare command without the ACLs will just create all of the shares, with default "everyone Full Control" permissions?

mbeattie
3,434 Views

Hi Steve,

 

If the version of 7-Mode you are migrating from doesn't support the ZAPI used by the "Get-NcCifsShareAcl" cmdlet then you should be able to use the following CmdLet:

 

Invoke-NaSystemApi [-Request] <String> [-Controller <NaController>] [<CommonParameters>]

This will enable you invoke the SSH command via a ZAPI and parse the CLI output. I've posted an example here:

 

https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/td-p/138566/page/2

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public