NetWorker Blog

Commentary from a long term NetWorker consultant and Backup Theorist

  • This blog has moved!

    This blog has now moved to Please jump across to the new site for the latest articles (and all old archived articles).



  • Enterprise Systems Backup and Recovery

    If you find this blog interesting, and either have an interest in or work in data protection/backup and recovery environments, you should check out my book, Enterprise Systems Backup and Recovery: A Corporate Insurance Policy. Designed for system administrators and managers alike, it focuses on features, policies, procedures and the human element to ensuring that your company has a suitable and working backup system rather than just a bunch of copies made by unrelated software, hardware and processes.
  • This blog has moved!

    This blog has now moved to Please jump across to the new site for the latest articles (and all old archived articles).



  • Twitter

    Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Basics – Commands you should know

Posted by Preston on 2009-02-18

[This is something I’ll revisit from time to time and update.]

There are some commands you should always be aware of with NetWorker, regardless of whether you like the command line or not. Here’s some of them:

# nsrim -X

This does a check of the save sets against volumes – while the EMC documentation suggests you should only need to run this after a crash, here’s an alternate policy: you need to run this at least fortnightly, or preferably weekly. (If you are running low on media, or low on space on disk backup units, running nsrim -X can also in a pinch be used to force any recycling that may be ready but ordinarily wouldn’t be processed until around midnight.)

# nsrck -m

This performs another style of consistency check on the media database, and corrects errors when they occur. It actually does cumulative repairs, so when you need to run it, you should be prepared to run it up to 3 or 5 times before logging a support call. When do you run it? After a NetWorker crash – if your server does crash, you really, really need to run this command. It should give you no output – if it gives you output, it means there’s been issues, and you want to run again and see whether all issues have been corrected.

# nsrck -L3

This is a good mid-level check to run against the indices that can clear up redundant entries and act as a good sanity check against indices. It’s also a good starting point if you’re having intermittent backup issues that aren’t network/hardware related, and like nsrim -X, it’s a command I recommend running at least fortnightly, or even weekly.

(All of these commands should be run when there’s no backup activity.)


3 Responses to “Basics – Commands you should know”

  1. michael said

    On a very busy NetWorker server, sometimes nsrim -X doesn’t run. It can be a good idea to run this every few days if you’re noticing tapes or disk savesets hanging around when they should be recyclable…

  2. Preston said

    I recently had a PSE emphatically tell me that nsrim -X is never run automatically by NetWorker, but instead just a regular nsrim is run. I’m still not convinced I believe that, and for one key reason. In earlier releases of 7.x, I had some servers running Linux that would core dump and fail to complete an nsrim -X every time the command was run (nsrim by itself seemed fine though). Every morning a little past midnight though, a new nsrim coredump would be generated.

    So I sort of take what the PSE told me with a grain of salt, but agree with what you’re saying – if you’re scratching around for media or space, running nsrim -X can save the day.

  3. […] Basics – Commands you should know Part 2 February 27, 2009 Continuing the Commands you should know topic, here’s a single variant of nsrjb that you really, really should […]

Sorry, the comment form is closed at this time.

%d bloggers like this: