Asset ID: |
1-71-1533020.1 |
Update Date: | 2018-03-07 |
Keywords: | |
Solution Type
Technical Instruction Sure
Solution
1533020.1
:
Oracle ZFS Storage Appliance: How to migrate SMB/CIFS NTFS data with permissions intact
Related Items |
- Sun ZFS Storage 7420
- Oracle ZFS Storage ZS5-2
- Oracle ZFS Storage ZS3-2
- Sun ZFS Backup Appliance
- Oracle ZFS Storage ZS4-4
- Oracle ZFS Storage ZS5-4
- Oracle ZFS Storage ZS3-4
- Sun ZFS Storage 7120
- Sun ZFS Storage 7320
- Oracle ZFS Storage ZS3-BA
|
Related Categories |
- PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: 7xxx NAS
|
In this Document
Applies to:
Sun ZFS Storage 7320 - Version All Versions and later
Sun ZFS Storage 7420 - Version All Versions and later
Sun ZFS Storage 7120 - Version All Versions and later
Sun ZFS Backup Appliance - Version All Versions and later
Oracle ZFS Storage ZS3-4 - Version All Versions and later
7000 Appliance OS (Fishworks)
Goal
This MOS Document focuses on migrating SMB/CIFS data to the ZFS Storage Appliance with the NTFS permissions intact.
For our purposes we focus on migrating from a Netapp storage system, but these tools and processes should be able to be used with any Windows NTFS file system such as Windows File servers and other NAS providers such as EMC Celer.
Solution
- Prerequisites:
- Both the Netapp and the ZFSSA were connected to the same Windows Active Directory server Domain.
- All of the migration and work below was done on a Windows PC that was a member of the Domain with the Domain Administrator account.
- The tools used for the migration are free and included in both Windows 7 and Windows 2008 R2.
- Robocopy is used for the data migration.
http://technet.microsoft.com/en-us/library/cc733145(v=ws.10).aspx
- ICACLS is used for the NTFS permissions migration.
http://technet.microsoft.com/en-us/library/cc753525(v=ws.10).aspx
- For our Windows migration box we mapped the following drives:
- z:\ (is the mounted Netapp share (marsico) on our PC
- y:\ is the mounted Oracle ZFSSA share (migration) on our PC

- Share permissions are set to Full Control on both storage systems

- Sample permissions on Netapp directories before copy are below. The NTFS permissions are extremely complex, including read only on some directories and full control on sub directories of the read only directory. With normal robocopy migration methods, with the NTFS permissions included, would cause issues with the migration. Read Only on the root directory/folder below would not allow any sub directories to be written and therefore the migration would stop and never finish. We need a way to first migrate the data with no permissions and then later backup and update the permissions on the migrated data.

- First you do the initial FULL Robocopy with mirror command which does not copy any NTFS security.
- c:\>robocopy z:\ y:\ /MIR

- These are what the permissions look like on ZFSSA after the initial mirror versus the Netapp above on #3. Everything inherits the EVERYONE=Full control permissions from the share level.
- Now you can continue to update the copy with changed files and new directories only. No permissions are copied yet as we are still just updating the data until we are ready to completely cut over to the new ZFS Storage Appliance. Below you can see that I changed a single file named “New Text Document.txt”. It is the only file copied and updated with robocopy with the /e option.
- c:\>robocopy z:\ y:\ /e

- Final migration and Cutover
- Before we do our final migration and cutover we want to disconnect all clients from the Netapp and make it Read Only.
- To make the Netapp read only go to the Manage computers MMC console and connect to the Netapp. Then find the share you’re going to migrate and uncheck Full Control and Change permissions from the Share Permissions tab like below.

- Do your final robocopy now just like #5 above
- c:\>robocopy z:\ y:\ /e
- Permissions Backup:
- Next you want to backup all permissions
- First lets backup the Netapp permissions using the ICACLS tool built into Windows. We are saving the permissions to a local file called netappperms.txt with the /t /c options.
- c:\>icacls z:\* /save c:\netappperms.txt /t /c

- Next let’s backup the ZFSSA empty permissions just in case we need to revert for some reason.
- c:\>icacls y:\* /save c:\zfssaemptyperms.txt /t /c
- Permissions Restore
- Next we restore the original Netapp permissions to the ZFSSA share.
- c:\>icacls y:\ /restore c:\netappperms.txt
- Now ZFSSA has all the correct permissions and all data is migrated
- Mount all your clients to the ZFSSA and resume business as usual.
- We suggest you run tests and utilize snapshots on the ZFSSA to tests your permissions migrations before your final cut over.
- This document does not cover updating DNS or Client mount options for migrated data. The focus of this document is migrating SMB file shares with NTFS permissions intact to a ZFS Storage Appliance.
References
<NOTE:1408716.1> - Sun Storage 7000 Unified Storage System: How to Troubleshoot SMB (CIFS) Problems
Attachments
This solution has no attachment