Setting the NOTSCAN flag on a volume in NetWorker

I've seen recently that nsrim is unable to remove expired savesets which prevents data domain from performing it's housekeeping and not removing any data from the volumes, which then requires you to manually force this action.

Possible causes include:

  • The AFTD/DD volumes are unmounted;
  • The AFTD/DD volumes do not have the notscan flag set;
  • The DD volumes are flagged with the message “scan needed”.

The only solution I have found is to:

  1. Run nsrim —X to check the consistency of the data structures of the save set with the data structures of the volume;
  2. Unmount the volumes in question, using the nsrmm —u vol_name command; NOTE: Also unmount the volume if mounted against storage nodes
  3. Run nsrmm —o notscan vol_name command to set the desired flag again the volume;
  4. Mount the volumes again, using the nsrmm —m vol_name command; NOTE: Also mount the volumes of the storage nodes (if applicable)
  5. Run nsrim —X command again to check the consistency of the data structures of the save set with the data structures of the volume.

Note: The results may not be visible immediately; Space may not be reclaimed until after both NetWorker and DataDomain housekeeping tasks have completed.