NetWorker: How to delete Multiple or Individual SSIDs
Summary: This Article provides a full description on how to manually delete save sets to reclaim used space.
Instructions
E) is preferred for normal situations where space reclaim is required but the database integrity is not in question. Incorrect usage of this information can lead to data loss. Dell support cannot advise on which data should be deleted or delete any data from an environment. This NetWorker administrator must identify, validate, and perform the deletion with the approval of the sites storage and infrastructure management.
About the NetWorker save set life cycle.
- When a save set is first created, it is recorded in the database with its configured retention date (
clretent, inmminfo). This is the date after which the Administrator has elected to have the save set automatically removed by NetWorker. - When a save set is cloned, that clone also receives a record with its own retention date. The
mminfovaluessretentlists the last expiring copy of the save set in the entire data zone. - When
nsrimruns (either manually or daily using Server Protection > Server backup > Expiry Action), all save sets are checked whether they are past their individual retention (clretent). - If a save set is past its retention date, but has dependent save sets which have still not passed theirs (for Example: A full backup, and its dependent incremental backups), that save set is not marked as expired (as it is still needed by its dependents).
- If no dependencies precluding expiry are found, the save set is marked as Expired, and for disk volumes, NetWorker will immediately attempt to delete the datafile corresponding to the save set record.
- If deletion is successful: The record is also deleted.
- If deletion is attempted, but fails for any reason: The record is marked with both an Expired flag (
E) and Suspect flag (s) in the save set instance'sclflagsfield. The next timensrim/ Expiry runs, deletion will be reattempted, but even if it fails, the record is deleted anyway. - Because NetWorker deletes save set structures for a volume which have no record in the media database anyway, deleting the save set record skips the Expiry and retention calculation, and instead deletes files from the disk during the final phase of the Expiry action /
nsrimrun (space recovery).
- Once the files are deleted (by the Expiry or space recovery process), for a standard disk device, the space becomes available immediately. For a Data Domain-type device, the files are deleted, but the space is not reclaimed until Data Domain file system cleaning has been completed. The same is true for a DD Cloud Tier-type device; after NetWorker deletes the record, followed by the save set files, the space is still not reclaimed until Cloud cleaning has run.
For more information about save set flags, see: NetWorker: Understanding Save Set Flags
Best Practices before Proceeding
- If the NetWorker server is a Virtual Machine, create a snapshot of the NetWorker server.
- Disable cleaning on the Data Domain.
- Perform a NetWorker Server Protection backup. Once completed collect the latest bootstrap backup details.
mminfo -B
- If file system space permits, create a copy of the following NetWorker database folders (
res,mm,index).- These folders are in the
/nsrdirectory of the NetWorker install path. - The (
mm) can be exported to an.xdrcopy: How To Export the NetWorker Media Database Using nsrmmdbasm
- These folders are in the
- Rename the
nsrimbinary on the NetWorker server. This prevents accidental deletion. The process outlined in the KB involves renaming the binary back to default once ready to proceed with data deletion.- Windows:
C:\Program Files\EMC NetWorker\nsr\bin\nsrim.exe - Linux:
/usr/sbin/nsrim
- Windows:
How to delete Individual or Multiple SSIDs?
Prerequisite: This process can only be used for deleting save sets on Advanced File Type Devices (AFTD), File Type Devices (FTD), and Data Domain (ddboost) devices. Individual save sets cannot be deleted from a tape volume, even if that tape volume is on a Virtual Tape Library (VTL). The entire volume must be relabeled in order to reclaim space.
Examples of how to list SSIDs:
(quotes are needed around the query when using spaces or special characters):
- To display all save sets for a single media pool:
SYNTAX:
mminfo -avot -q pool=<mediapool>
EXAMPLE:
mminfo -avot -q pool=LinuxPool
- To display all save sets for a specific Client and two separate Volumes:
SYNTAX:
mminfo -avot -q client=<client_hostname>,volume=<vol1_name>,volume=<vol2_name>
EXAMPLE:
mminfo -avot -q client=linuxhost1,volume=LinuxPool.001,volume=LinuxPool.002
- To display all nonbrowsable Data Domain and
adv_filesave sets.
EXAMPLE:
mminfo -avot -q type=Data Domain,type=adv_file,recoverable
- To display all save sets created over 30 days ago:
EXAMPLE:
mminfo -avot -q sscreate<=30 days ago
- Display all save sets for a specific Group and Date range (quotes are needed when using special characters):
SYNTAX:
mminfo -avot -q group=<group_name>,sscreate>=<start_date>,sscreate<=<end_date>
EXAMPLE:
mminfo -avot -q group=WinBackup,sscreate>=1/1/2026,sscreate<=2/1/2026
The NetWorker Command Reference Guide also provides details on the mminfo command.
For INDIVIDUAL SSID deletion:
If a save set ID without the clone ID is specified, it deletes all instances of that save set, including the clones:
nsrmm -o recyclable -S <ssid> | nsrmm -o recyclable -S <ssid/cloneid>
nsrim executable back to its original name.
nsrim -X
The deletions are recorded in the daemon.raw:
-
- Linux:
/nsr/logs/daemon.raw - Windows (Default):
C:\Program Files\EMC NetWorker\nsr\logs\daemon.raw - NetWorker: How to use nsr_render_log to render .raw log files
- Linux:
If deletions against a specific volume are not occurring, verify that the operation is running:
nsrstage -C -V <volume name>
For MULTIPLE SSID deletion:
Deleting multiple save sets using batch or shell script commands.
1. First, append the mminfo output to only report the ssid/cloneid:
SYNTAX:
mminfo -r ssid,cloneid -xc/
EXAMPLE:
mminfo -avot -q client=linuxhost1 -r ssid,cloneid -xc/
2. Next, redirect the output to a text file to be ran in a batch command:
SYNTAX:
mminfo command -r ssid,cloneid -xc/> > ssid.txt
EXAMPLE:
mminfo -avot -q client=linuxhost1 -r ssid,cloneid -xc/ > ssid.txt
3. Once the save sets list is created, confirm it is formatted correctly, with a single ssid/cloneid pair per line, ensuring there are no spaces which may separate the two. You can use the -i option to delete save sets identified in the file:
nsrmm -dy -i ssid.txt
However, it is safer and preferred to mark each save set wanted for deletion as Expired. This requires a loop command to process each individually, and takes longer, but is safer as NetWorker can better calculate dependencies when running Expiry Action each day:
WINDOWS:
for /f %%A in (ssid.txt) do @nsrmm -o recyclable -y -S %%A
LINUX:
while read SID; do nsrmm -o recyclable -y -S ${SID}; echo ${SID}; done < ./ssid.lst
ssid.txt file is located. After the save sets have been marked recyclable, they will be deleted the next time nsrim is run (nsrim automatically runs during the expiration action of the Server Protection policy). To allow automatic expiration, rename the nsrim binary back to default.
4. Manually start nsrim to perform the deletion process in NetWorker:
nsrim executable back to its original name.
nsrim -X
5. The deletions are recorded in the server's daemon.raw.
-
- Linux:
/nsr/logs/daemon.raw - Windows (Default):
C:\Program Files\EMC NetWorker\nsr\logs\daemon.raw - NetWorker: How to use nsr_render_log to render .raw log files
- Linux:
If deletions are not occurring against a specific volume, verify that the operation is running:
nsrstage -C -V <volume_name>
NetApp
For NetApp AFTD devices, the space is not immediately reclaimed, depending on a couple of factors:
If snapshots are taken of the CIFS/NFS file system where the adv_file device resides, they must expire before any data becomes available for cleaning. If the filer is under heavy load, deletions may take an extended period because space reclamation is a low-priority background operation.
Data Domain
For Data Domain DD Boost devices, freeing up space requires the Data Domain Cleaning operation to run.
By default, Data Domain only operates disk cleaning once a week on Tuesday. The cleaning cycle can be initiated from the Data Domain Enterprise Manager user interface (Data Management > File System > Start Cleaning).
Additional Information
See Also:
- NetWorker: Data Domain capacity increasing to 100% full - NetWorker side Troubleshooting (user log in to Dell Support required to view article)
Browse and Retention:
-
NetWorker: How to change the Browse/Retention? (user log in to Dell Support required to view article)
-
NetWorker: Change Browse time and Retention of Multiple Saveset (user log in to Dell Support required to view article)