Following a reboot, the scheduled nightly backup aborts with a 2-byte
logfile and the following entries in the system log:
23:00:14 / 7035 / Service Control Manager / The Removable Storage
Service was successfully sent a start control.
23:00:14 / 7036 / Service Control Manager / The Removable Storage
Service entered the running state.
23:33:46 / 98 / Removable Storage Service / RSM was stopped.
23:33:46 / 7036 / Service Control Manager / The Removable Storage
Service entered the stopped state.
- in the Services control panel applet, the Removable Storage Service
is shown as stopped
- the recovery options for the Removable Storage Service are all set
to "restart the service" (this makes no difference)
- the backup log (created by the script which runs the backup)
reports the backup failed 33:33 minutes into the job (it's not always
exactly 33 minutes, but it usually is)
- in the MMC, under removable storage / libraries, the tape drive is
listed, but it has a red X on it
- within approx 10 seconds, and without user interaction, the red X
disappears
- in the Services control panel applet, the Removable Storage Service
is now shown as started
- this situation will recur nightly until the system is kicked
somehow* or until the fix is applied
- NOTE: some users may report the logfile size as 1Kb, however that
is Windows Explorer mis-reporting the actual size, which is 2 bytes
* try right-clicking the tape drive in the MMC
THE CAUSE:
This behaviour occurs when the backup job encounters incorrect media
in the drive. NTBACKUP shows an "insert correct media" dialog box
when this happens, BUT the dialog box closes AUTOMATICALLY (eg. times
out) after approx 33 minutes!!!!!!!!!! If the job is scheduled to run
unattended, the operator will never see this error. As nothing is
written anywhere in the logs to indicate the problem, the operator
will not be able to use the logs to see the error. The only way for
the operator to see the error is to watch it run. The actual message
is:
"pending operator request" (title of dialog box), "place media
'xxxxx' into drive or library unit" (text of dialog box), with two
buttons, "Complete" or "Refuse".
This dialog box is obscuring another dialog box, which says:
"mount waiting" (title of dialog box), "The library is unable to load
the media at this time because the drive is in use. [...] Please
wait for the drive to become available. You may cancel this request
at any time." (text of dialog box), with one button, "Cancel"
- if we leave the dialogs alone, they both automatically cancel after
approx 33 mins, and we get a 2-byte logfile
- if we click "Complete", the message reappears
- if we click "Refuse", the job aborts, and we get a 2-byte logfile
- if we click "Cancel", the job aborts, and we get a 2-byte logfile
Note that these dialogs may appear even when the /UM (unmanaged)
switch is used. With /UM, NTBACKUP is meant to ignore the tape label
and make a backup irrespective of which particular tape is in the
drive. Crucially, NTBACKUP does NOT do this after a tape change
following a reboot.
The dialogs can be observed by placing a PAUSE in the backup script,
immediately before NTBACKUP is called. The job will wait for you to
press a key, you do that and NTBACKUP will start, then you'll see the
dialogs. If you ignore them for approx 33 minutes, they will
disappear, and a 2-byte logfile will be created.
THE SOLUTION:
In your backup script, use RSM REFRESH /lf "tape drive name" before
starting NTBACKUP, and use RSM EJECT /lf"tape drive name" afterwards,
eg:
This makes the /UM switch work as advertised. Why this works is not
known.
RSM BACKGROUNDER:
RSM.EXE is the Removable Storage Manager Command Line Interface
RSM.EXE and several other parts of RSS are not visible to the user,
even in when logged in as Administrator! The only way to see/run
C:\WINDOWS\SYSTEM32\RSM.EXE under Windows 2003 is to be running with
SYSTEM privs at the time (this can be done by scheduling a command
shell). (OK so there is another way, that involves scheduling a
command shell, then using the resulting shell (which has SYSTEM
privs) to copy C:\WINDOWS\SYSTEM32\RSM.EXE to a different directory,
then it can be seen/run as Administrator, anytime, without any more
scheduled command shells).
Force RSM to update its internal database, such that it matches the
actual tape in the drive:
3
6
Media created 16/06/2006 at 14:14 - 1
Media created 21/08/2006 at 15:28 - 1
Media created 09/07/2007 at 16:38 - 1
C:/system state created 16/04/2008 at 16:33 - 1
Media created 05/07/2008 at 03:39 - 1
Media created 08/07/2008 at 02:24 - 1
Media created 09/07/2008 at 03:41 - 1
Media created 10/07/2008 at 03:43 - 1
Media created 11/07/2008 at 03:11 - 1
Media created 12/07/2008 at 18:32 - 1
Media created 01/07/2008 at 02:17 - 1
Media created 16/07/2008 at 05:08 - 1
Media created 16/07/2008 at 23:34 - 1
[2K3, has the 33-minute problem, no fix]
http://www.tech- archive.net/Archive/Windows/microsoft.public.windows.server.active_dir
ectory/2005-01/1677.html
[2K3: The NTBackup tool may not run as expected when you scheduled an
NTBackup task in Windows Server 2003 - says incompatible with RDP]
http://support.microsoft.com/kb/927073/
PARTIAL SOLUTION:
(this guy stops and starts RSS beforehand, does a refresh, and also
seems to use some kind of SLEEP command, BUT he
doesn't do an eject afterwards)
net start "Removable Storage"
rem **** EXPECTED 30 seconds ****
Waiting 30
net stop "Removable Storage"
rem **** EXPECTED 30 seconds ****
Waiting 30
Refreshed rem *** on the tape drive
rsm refresh / lf "Hewlett Packard DDS4 drive"
rem **** EXPECTED 30 seconds ****
Waiting 30
....
ntbackup ......
Thank you Microsoft for wasting 50+ hours of my time on this problem.
Now I'm holding your hand every backup, you work fine. You call
yourself an OS? You are a joke, a toy, a superficial, bug-ridden
leper. At least you don't need 64-bit drivers just to be a print
server! Oh wait, you do...