NetWorker: nsrstage failure using -d switch

Summary: This Article describes usage issues with nsrstage regarding inconsistencies in switch implementation between nsrclone and nsrstage.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

When attempting to use the nsrstage command with -d switch, receiving the error:

39096:nsrstage: Need to specify both -f and -d.
usage: nsrstage [-v] [-F] [-d] [-O] [-A action-parallelism] [-s server] [-J storage-node] [-b pool] [-y retention time] -m -S [-o]

When -d is used with nsrstage, the log shows it has been swapped for -R switch:

180169:nsrstage: Step (1 of 16): NSRCLONE_INIT_PHASE_ONE: nsrstage has been started on host 'hostname', with command 'nsrstage command_arguments -R destination_node command_arguments'.

nsrstage interprets -d as -R internally, meaning that if it is used with -d to attempt to designate the destination Storage Node, the command fails.

Cause

Although the two commands are similar, and nsrclone functionality covers all nsrstage functions, the current product has several subtle differences:

nsrstage usage nsrclone usage
-C Recover space. -P Recover space.
-V volume volume (for use with -C)  -W volume volume (for use with -P)
-d -S -f list_file Delete -f list_file after job. -d destination_node Designate the destination node
-R -S -f list_file Delete -f list_file after job. -R -S -f list_file Delete -f list_file after job.

 

Resolution

-R is not listed in nsrstage man page, although it is in nsrclone man page. 

nsrstage

-d Deletes the input file that specifies the save set identifiers to be staged. This option must always be specified with a -f option.

nsrclone

-d save storage node
              Specifies which host to use as the storage node for the saved part of the cloning process (see nsr_storage_node(5))

-R Removes the input file that specifies the volume names, save set or volume identifiers to be cloned. This option can only be specified with a -f option.

NOTE: Usage of either -R or -d switches in nsrstage is logged as -R when using nsrstage (that is: delete list_file following completion, requiring -S -f list_file as part of the command), and fails if a list file is not used.

Otherwise - the two commands are identical in function. Both commands require the -m switch in order to complete the job as a stage job (clone, followed by deletion of the source):

-m  Performs the migration (or stage) operation. For Block based backup save sets, this option does not migrate save sets to the new media volumes. For volumes that have a combination of Block based backup save sets and regular NetWorker save sets, nsrclone -m skips over the Block based backup save sets with an error. For Data Domain retention-locked save sets, this option does not migrate save sets to the new media volumes. For volumes that have a combination of Data Domain retention-locked save sets and regular NetWorker save sets, nsrclone -m skips over the Data Domain retention-locked save sets with an error.  Bootstrap save sets are cloned to target media. The source save set entry is removed from the media database, but the data remains on the source media.

-m  Performs the migration operation. For Block based backup save sets, this option does not migrate save sets to the new media volumes. For volumes that have a combination of Block based backup save sets and regular NetWorker save sets, nsrstage -m skips over the Block based backup save sets with an error. If migration is attempted on a save set copy with Data Domain Retention Lock (DDRL), the operation fails if the DDRL expiry time has not passed. If migration is attempted on a save set, not a specific copy, the operation fails if the save set has a Data Domain retention lock and the expiry time has not passed. For a volume that has a combination of Data Domain retention-locked save sets and regular NetWorker save sets, nsrstage -m skips the Data Domain retention-locked save sets on the volume and attempt to migrate the rest. Bootstrap save sets are cloned to target media. The source save set entry is removed from the media database, but the data remains on the source media.

Workaround:

Using nsrclone with -m provides the same functionality as nsrstage, along with other switches which are not supported or included with nsrstage - see man page of nsrclone for details. 

Administrators are recommended to use nsrclone -m for staging operations always to enable use of nsrclone's more advanced and robust set of command arguments, while still providing staging capability.

Additional Information

The nsrclone and nsrstage commands are detailed in the NetWorker Command Reference Guide, available through: https://www.dell.com/support/product-details/product/networker/docs

Affected Products

NetWorker
Article Properties
Article Number: 000300873
Article Type: Solution
Last Modified: 01 Apr 2025
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.