PRB: Dumping to a DLT Tape Drive May Fail to Span TapesLast reviewed: September 30, 1997Article ID: Q174483 |
The information in this article applies to:
SYMPTOMSA database dump may fail to span more than one tape if you are using a DLT tape drive. The first tape may become full and you will be prompted to respond to the following message:
End of tape has been reached, remove tape 'SQ0001' and mount next tape for dump of database 'dbname'.The light on the tape unit will not turn green, so you will be unable to change the tape. You will then receive the following message:
Msg 3202, Level 16, State 1, Server SERVERNAME, Line 1 Write on dump device '\\.\TAPE0' failed, vsn=0 return=-2 status=-2. Please consult the SQL Server error log for more details.The corresponding message in the errorlog is:
tbswritecheck: Not enough space is left in the device to initiate this dump CAUSEThe DLT tape unit does not physically eject the tape, so SQL Server always detects a tape in the drive, and attempts to keep writing to it even when it is full.
WORKAROUNDTo avoid this problem, do any of the following:
MORE INFORMATIONThis section provides an example of what the command prompt will look like when using the CONSOLE application to dump or load a database that spans two DLT tapes. In this example, comments on how to respond to these messages are given in square brackets.
Option I. Use the DUMP DATABASE or LOAD DATABASE commandMicrosoft(R) Windows NT(TM) (C) Copyright 1985-1996 Microsoft Corp. C:\>console [Execute the DUMP DATABASE or LOAD DATABASE command from a SQL query window.] Mount first tape SQ0001. Press ENTER when mounted, or press 0 to abort [Press ENTER when the first tape is in the drive. The dump or load will continue until the end of the tape is reached and the tape drive light will turn green.] Change tapes and mount SQ0002. Press ENTER when mounted, or press 0 to abort [Press ENTER when the second tape is in the drive. The dump or load will finish on this tape.] Remove the tape. Press ENTER when removed.
Option II. Use SQL Enterprise ManagerWhen using the SQL Enterprise Manager Backup/Restore function to start the dump or load, the technique is the same as that described in Option I above. However, the messages will be slightly different from those noted above. This is because the server will run a LOAD HEADERONLY command which, when completed, returns the following message to the CONSOLE: Remove the diskette. Press ENTER when removed. When the dump or load has completed, press CTRL+C to quit the CONSOLE application.
|
Additional query words: spanning hit
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |