When you schedule a Windows 2000 unattended backup by using a standalone tape drive (library), the first backup job completes successfully. However, after you change the media, the next scheduled backup job does not back up the desired folder and files. Also, you may receive one of the following error messages in the backup report log file:
The operation was not performed because no unused media was available.
Operation was not performed, because the specified media cannot be found.
This problem can occur if Removable Storage Manager (RSM) is not notified when the media on the standalone tape drive (library) is manually changed. Removable Storage Manager does not poll standalone libraries looking for media changes, and it is the responsibility of the RSM aware program to request that RSM detects if the media changed on standalone libraries. When this problem occurs, RSM updates the tape drives media contents in the RSM database. Usually, when Windows backup is running interactively, it requests that RSM polls the tape drive(s) periodically looking for media changes. When backup is not running, there is no mechanism to request RSM to detect media changes. Backup is unable to issue a mount of the new tape because RSM is not aware that the new tape exists, resulting in a backup job failure.
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
How to Obtain the Latest Windows 2000 Service Pack
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name
10/24/2000 6:20 PM 5.0.2195.2103 1,162,512 Ntbackup.exe
See the following Knowledge Base Article for more information on this hotfix:
Ntbackup Cannot Restore from Backup Sets Located on Second Tape
To work around this problem, use one or more of the following methods incrementally until you are able to perform reliable unattended backups. Note that some tape drives require methods 1 and 2 before reliable backups can be performed.
Leave a copy of the backup program running in the background. Backup should poll the tape drive periodically looking for media changes, and should help media changes be recognized prior to the real scheduled backup job running. You can use the Srvinstw.exe Microsoft Windows 2000 Resource Kit program to install the Srvany.exe tool, and then permit Ntbackup.exe to run as a service hidden from view.
Install the Srvany.exe Tool as a Service
- Copy the Srvany.exe tool included in the Windows 2000 Resource Kit to the %SystemRoot%\System32 folder on your computer.
- Start the Srvinstw.exe program.
- Click Install a service, and then click Next.
- Click Local Machine, and then click Next.
- Type srvany under Service name, and then click Next.
- Locate the %SystemRoot%\System32\Srvany.exe file, double-click the file name, and then click Next.
- Click Service in it's own process, and then click Next.
- Click System Account, and then click Next.
- Click Automatic, and then click Next.
- Click Finish.
Configure the Srvany Service to Run Ntbackup.exe as a Service
- Start Registry Editor (Regedt32.exe) to view the following key in the registry:
- On the Edit menu, click Add Key..., type Parameters for the key name, and then click OK.
- Click to select the Parameters key, and then click Add Value under the Edit menu. Enter Application for the value name, and use a data type of REG_SZ.
NOTE: Make sure you specify the full path to the NTBackup.exe file. Srvany.exe does not load the program if you use the %SystemRoot% variable in the path. For example:
Application: REG_SZ: C:\Winnt\System32\Ntbackup.exe
- Quit Regedt32.exe.
- After you shutdown and then restart your computer, backup starts as a background service. Ntbackup.exe should be running and be visible in Task Manager under the Processes tab, and permits backup to poll tapes looking for media changes.
Schedule the backup using a Backup.cmd file. You can copy the contents of the scheduled tasks RUN field and then paste them into the batch file. You can use the Rsm.exe refresh command to help recognize changed media. This can be added to the beginning of the backup batch file:
start /wait rsm.exe refresh /lf"library_name"
<Backup commands for unattended backup copied from scheduled task.....append the /um switch if desired.>NOTE
: Run the rsm view /tlibrary
command to extract the "library_name" to be used with the previously listed command.
Schedule a Backup.cmd batch file containing a short (one folder\file) backup job, followed by a regular full backup. The first (short) backup will fail because no media is recognized in the tape library, however, the next backup should run because the tape library is refreshed by the first failed backup attempt to find usable media.
Use the RSM GUI (Ntmsmgr.msc) to manually perform a Full inventory on the tape library after changing tapes and before the next backup job starts.NOTE
: If you use the Ntbackup /um switch, it is recommended that you not use the /n switch to label the media. Instead, permit backup to use the default date/time as the label name and description. This eliminates multiple tapes having the same label name which may cause RSM to request a manual tape mount and prevent backup from continuing or completing in unattended mode.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.
For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below
to view the article in the Microsoft Knowledge Base:
Installing Microsoft Windows 2000 and Windows 2000 Hotfixes
Additional related Knowledge Base Articles:
Scheduled backup jobs may not run as expected
Changed Parameters for Scheduled Backup Job May Not Be Saved