Symptoms
Tape erase operation fails with the following error:
The parameter is incorrect
Example of error log: click to expand
Windows error: (0x80070057) The parameter is incorrect
DATE AND TIMEJul 07, 2020, 11:39:38
CODE4
MODULE309
MESSAGETOL: Failed to execute the command. Wiping media
Additional info:------------------------
Error code: 22
Module: 309
LineInfo: 0x8D165E86FB819597
Fields: {"CommandID":"41C69E17-ED81-4A8D-97CA-D3D2E3A96391","$module":"storage_server_vsa64_16327"}
Message: TOL: Failed to execute the command. Wiping media
------------------------
Error code: 22
Module: 309
LineInfo: 0x8D165E86FB819597
Fields: {"CommandID":"41C69E17-ED81-4A8D-97CA-D3D2E3A96391","$module":"rsm_commands_addon_vsa64_16327"}
Message: TOL: Failed to execute the command. Wiping media
------------------------
Error code: 22
Module: 309
LineInfo: 0x8D165E86FB819597
Fields: {"CommandID":"41C69E17-ED81-4A8D-97CA-D3D2E3A96391","$module":"arsm_service_vsa64_16327"}
Message: TOL: Failed to execute the command. Wiping media
------------------------
Error code: 22
Module: 309
LineInfo: 0x8D165E86FB819597
Fields: {"CommandID":"41C69E17-ED81-4A8D-97CA-D3D2E3A96391","$module":"rsm_commands_addon_vsa64_16327"}
Message: TOL: Failed to execute the command. Wiping media
------------------------
Error code: 5
Module: 336
LineInfo: 0xE2F3E31DE6156F34
Fields: {"$module":"arsm_service_vsa64_16327"}
Message: Failed to erase the tape.
------------------------
Error code: 112
Module: 336
LineInfo: 0x48475F2F2B161046
Fields: {"barcode":"078AAFL8","$module":"arsm_service_vsa64_16327","serialNumber":"7200107236","label":"Additional info: label: Online, status: BDFB7162-E342-4CC1-BDF3-A04A6C0C815C, slot ID: {3}","id":"6BE28A60-285F-4C51-B050-19BA9EE2146C"}
Message: Failed to erase tape '{0}'.
------------------------
Error code: 8
Module: 483
LineInfo: 0xFF7AB02B13DFB1A2
Fields: {"$module":"scsi_vsa64_16327"}
Message: SCSI command failed on device '\\?\scsi#sequential&ven_ibm&prod_ult3580-hh8#5&8e76abe&0&000300#{53f5630b-b6bf-11d0-94f2-00a0c91efb8b}':
Operation: ERASE
OperationCode: 0x19
Long: 0x00
Immediate: 0x00
Reserved1: 0x00
LogicalUnitNumber: 0x00
Vcm: 0x00
Smd: 0x00
Reserved2: 0x00
Method: 0x00
Reserved3: 0x00
Reserved4[2]: [0x00 0x00 ]
Control: 0x00
RawData:
------------------------
Error code: 2
Module: 483
LineInfo: 0x8EB95FC810F9FB1E
Fields: {"$module":"scsi_vsa64_16327"}
Message: Cannot execute the command.
------------------------
Error code: 65520
Module: 0
LineInfo: 0xBD28FDBD64EDB8F8
Fields: {"$module":"scsi_vsa64_16327","code":"2147942487"}
Message: The parameter is incorrect
Cause
Issue in the product.
Solution
If the tape erase operation is required to reuse the tape on the same server then it can be overwritten automatically:
open Acronis Console -> Settings -> Tape Management -> Tape pool where the tape is located;
choose the tape and use "Move to pool"
choose to move to the Free Tapes pool;
edit the tape pool where the backups are stored and check that the option Take tapes from the 'Free tapes' pool automatically is enabled.
When the next backup operation is started and new tape is required the software will automatically move the tape from Free Tapes pool and overwrite it.
If the tape should be cleaned up to remove it from this environment and is not going to be reused then it can be erased using sptd.exe utility:
Download the sptd.exe utility from the Tape Detection Tools article and unpack it;
open Acronis Console -> Settings -> Tape Management -> Tape pool where the tape is located;
use Move to Slot option to move the tape to Drive 1. If there is no tape library then check that the proper tape is attached to Drive1. It is recommended to remove the tapes from other tape drives if there are several drives in the environment
After the tape is moved, open Command Prompt (Start -> Run -> CMD)
Execute the following commands:
# cd <Folder_Where_sptd.exe_utility_is_unpacked>
# sptd.exe erase --device_path="\\.\Tape0 "
(!) Note that this operation will erase the tape and the data
After the tape is erased, remove it from the tape drive/tape library and remove the tape from Acronis using Tape Remove option