


Resolving Snapshot Difference problems
You can perform faster incremental backups of N-Series and NetApp filer volumes if you use the NetApp Snapshot Difference application programming interface (API).
Prerequisites
To use the Snapshot Difference feature, you must first set
up a NetApp user ID and password on the client. The user ID and password are necessary for IBM Spectrum Protect™ to connect to the filer. Set up a user ID/password
with root authority on AIX® and Linux, or one with administrative authority on Windows. Set the authority level to be the same as the authority level used
when you map or mount the filer volume. Ensure that you use the fully qualified host name or the
dotted IP address format for the filer name. Issue the backup-archive client SET
PASSWORD command to save this user ID/password information.
The Snapshot Difference feature compares two snapshots (base and differential)
and returns a list of files that were modified, deleted, or added between the two. IBM
Spectrum Protect backs up this list of files instead of scanning the
file system for changes. Remember: The
DSMC SET PASSWORD command is extended to save "filer" type
passwords.
The Snapshot Difference feature supports the following features, which
are only applicable at the volume level:
- NetApp/N-Series filers that are running Data ONTAP release 7.3 or later
Common internet files system-attached (CIFS) volumes- Both traditional and FlexVol filer volumes
- Java™ and web client GUI

Network file system (NFS) attached volumes
- SAN-attached NetApp/N-Series volumes
- QTrees or subdirectories
- VFiler volumes with a filer that is running ONTAP V8.1.0 or earlier are not supported. Vfiler volumes with a filer that is running ONTAP V8.1.1 or later are supported.

Verifying the filer volume type
IBM Spectrum Protect expects the Common Internet Files System-attached (CIFS) security type to be New Technology File System (NTFS). Use the NetApp FilerView and make sure that the CIFS security type is set to "ntfs."
Snapshot Difference restrictions
The lack
of Unicode support from NetApp prevents IBM
Spectrum Protect from processing
any files that use characters that are not in the 7-bit ASCII range. IBM
Spectrum Protect can back
up only names that contain ASCII characters. Two Snapshot Difference
behaviors were noted when testing with Unicode characters:
- Snapshot Difference incremental command ends with return code 13001. This return code happens with the 'specials' and 'surrogate' ranges of Unicode for Snapshot Difference filer volumes that are created with the UTF8 flag. This Snapshot Difference error happens more frequently without the UTF8 flag. IBM Spectrum Protect ends with error message ANS5283E "The operation was unsuccessful." No files are backed up.
- Snapshot Difference application programming interface (API) does not fail, but returns characters that are not part of the real name. IBM Spectrum Protect inspects the string to see whether any character is outside of the 7-bit ASCII range. If so, IBM Spectrum Protect skips the file and logs the error to the dsmerror.log file.
The following are situations under which files and directories might not get backed up and no errors are reported:
- You exclude a file by adding an exclude rule in the include/exclude file. IBM Spectrum Protect performs a backup of the current snapshot with that exclude rule in effect. You did not change the file, but do remove the rule that excluded the file. A snapshot-assisted incremental backup command with the snapdiff option does not detect this incl/excl change because it detects file changes only between two snapshots. The files themselves must be changed in order for the Snapshot Difference API to detect the change and for IBM Spectrum Protect to back up the file.
- You added an include statement to the options file. This include statement takes effect only if the file is detected to have changed by the Snapshot Difference API. The files might not get backed up because IBM Spectrum Protect is not inspecting each file on the volume during the backup operation.
- You explicitly delete a file from IBM Spectrum Protect inventory by issuing the DSMC DELETE BACKUP command. The Snapshot Difference API does not detect that a file was manually deleted from IBM Spectrum Protect by you. Therefore, the file remains unprotected in storage. The file is unprotected until it is changed on the volume and the change is detected by the Snapshot Difference API. After the change is detected, the Snapshot Difference API signals IBM Spectrum Protect to back up the file again.
- Policy changes such as changing the policy from Mode=modified to mode=absolute are not detected. The entire file space is deleted from inventory. The undetected policies cause IBM Spectrum Protect to create a snapshot to use as the source (base) and a full incremental backup is performed.
You can use the
following trace flags for Snapshot Difference processing:
- enter
- exit
- general
- snapshot
- hci
- hci_detail
- diskmap
- diskmap_detail
- hdw
- hdw_detail
- bacache
- snapdiffdb

Set up a user ID and password for root
on the filer myFiler.ibm.com. dsmc set password -type=filer myFiler.ibm.com root
Please enter password for user id "root@myFiler.ibm.com": ********
Re-enter the password for verification:********
ANS0302I Successfully done.

Set up a user ID and password for root
on the filer myFiler.ibm.com.dsmc set password -type=filer myFiler.ibm.com root secret