EMC NetWorker 7.6
EMC NetWorker 8.x
Command to get the ssid list:
mminfo -avot -q "volume=name_volume" -r "ssid,savetime,nsavetime,volume,name,ssbrowse,ssretent"
If you want ssid and its clone id use the below command:
mminfo -avot -q " volume=name_volume " -r "ssid,cloneid,savetime,nsavetime,volume"
For individual SSID deletion you can use:
nsrmm -d -S SSID
nsrim -X or nsrstage -C -V <volume name>
Run the following commands to recycle a single SSID from a Data Domain or adv_file volume:
nsrmm -e [todays_date] -w [yesterdays_date] -o recyclable -y -S [ssid]
nsrim "X -V [volume_name]
nsrstage -C -V [volume_name]
Above commands free up the space of deleted savesets for AFTD or file device. For Data Domain DDBoost device, freeing up space requires Data Domain Cleaning operation. By default, Data Domain only operates disk cleaning once a week on Tuesday. You can run Cleaning operation on Data Domain web GUI under Data Management > File System > Start Cleaning.
For deletion of multiple SSID's you can follow the procedure below for Windows:
- Put all the ssid into file called ssid.txt
- Create bat file with this line:
For /F %%a in (ssid.txt) do nsrmm -d -y -S %%a
- Run the batch file to complete the saveset deletion.
To free up the space by deleting savesets from a Data Domain or adv_file device.
(Deleting multiple savesets using batch/shell script commands)
- Using MMINFO, display a list of savesets that you would like to expire, below are common Command Syntax examples:
- To display all savesets for a specific Client and two separate Volumes:
mminfo -avot -q client=[client_hostname],volume=[volume1_name],volume=[volume2_name]
- To display all non-browsable Data Domain and adv_file savesets (quotes are needed when using spaces):
mminfo -avot -q type=Data Domain,type=adv_file,recoverable
- To display all savesets for a specific Group and Date range (quotes are needed when using special characters):
mminfo -avot -q "group=[group_name],sscreate>=[start_date],sscreate<=[end_date]"
- To delete the savesets you have listed, you need to first pipe the output to a text file using -r ssid -xcl > ssid.lst :
mminfo -avot -q type=Data Domain,type=adv_file,recoverable -r ssid -xcl > ssid.lst
** this will create a file ssid.lst in the current directory.
- Once you have the savesets piped to a text file, you can now run a batch/shell script command to recycle them:
WINDOWS SYNTAX: for /f %A in (ssid.lst) do @nsrmm -e [todays_date] -w [yesterdays_date] -o recyclable -y -S %A
WINDOWS EXAMPLE: for /f %A in (ssid.lst) do @nsrmm -e 01/18/13 -w 01/17/13 -o recyclable -y -S %A
LINUX SYNTAX: for x in `cat ./ssid.lst`; do nsrmm -e [todays_date] -w [yesterdays_date] -o recyclable -y -S $x; echo $x; done
LINUX EXAMPLE: for x in `cat ./ssid.lst`; do nsrmm -e 01/18/13 -w 01/17/13 -o recyclable -y -S $x; echo $x; done
** This command must be ran in the same directory where the ssid.lst is located.
After the savesets have been marked recyclable, NetWorker will automatically delete them over time (generally 24-48 hours).
To manually scan disk volumes for change and delete recyclable savesets, perform the following commands:
Create a list of Data Domain and adv_file volumes:
mminfo -q "type=data domain,type=adv_file" -r volume -xcl > volume.lst
- Tell NetWorker to scan the volumes for change:
WINDOWS EXAMPLE: for /f %A in (volume.lst) do @nsrim -X -V %A
LINUX EXAMPLE for x in `cat ./volume.lst`; do nsrim -X -V $x; echo $x; done
- Tell NetWorker to start the saveset deletion process:
WINDOWS EXAMPLE: for /f %A in (volume.lst) do @nsrstage -C -V %A
LINUX EXAMPLE for x in `cat ./volume.lst`; do nsrstage -C -V $x; echo $x; done
For NetApp, the space will not immediately become available, depending on a couple of factors:
Snapshot policy, if snapshots are being taken of the CIFS/NFS file system where the adv_file device resides.
The performance of the filer, because space is reclaimed in a low priority background operation.
For Data Domain DDBoost device, freeing up space requires the Data Domain Cleaning operation to run.
By default, Data Domain only operates disk cleaning once a week on Tuesday.
You can manually start the process from the Data Domain Enterprise Manager GUI. Go to: Data Management > File System > Start Cleaning.
It is not recommended that you manually clean a Data Domain very often but rather let its weekly schedule clean it to preserve optimal de-duplication.
EMC Support Solution Number: 95470