IBM Support

Tivoli Storage Manager server instance logs lin_tape errors

Technote (troubleshooting)


Problem(Abstract)

A Tivoli Storage Manager server instance runs on Linux and is configured with a library that contains different LTO tape drive generations and mixed media types. The Linux /var/log/messages log file contains lin_tape driver errors.

Symptom

For example, the /var/log/messages log file contains the following errors :


<timestamp> xxx kernel: Pid: 1234, comm: dsmserv Not tainted 2.6.32-358.14.1.el6.x86_64 #1
<timestamp> xxx kernel: Call Trace:
<timestamp> xxx kernel: ? __alloc_pages_nodemask+0x757/0x8d0
<timestamp> xxx kernel: ? alloc_pages_current+0xaa/0x110
<timestamp> xxx kernel: ? __get_free_pages+0xe/0x50
<timestamp> xxx kernel: ? erp_read_buffer+0x20b/0x560 [lin_tape]
<timestamp> xxx kernel: ? tape_send_erp_cmd+0x1a7/0x360 [lin_tape]
<timestamp> xxx kernel: ? read_dump+0x39/0x120 [lin_tape]
<timestamp> xxx kernel: ? tape_check_simmim_dump_logsense+0x58/0x70 [lin_tape]
<timestamp> xxx kernel: ? tape_send_scsi_cmd+0xc6/0x2c0 [lin_tape]
<timestamp> xxx kernel: ? tape_rewind+0xce/0x170 [lin_tape]
<timestamp> xxx kernel: ? lin_tape_flush+0xc8/0x280 [lin_tape]
<timestamp> xxx kernel: ? lin_tape_drive_close+0xc9/0x340 [lin_tape]
<timestamp> xxx kernel: ? lin_tape_close_drive+0x149/0x440 [lin_tape]
<timestamp> xxx kernel: ? lin_tape_close+0x82/0x110 [lin_tape]
<timestamp> xxx kernel: ? __fput+0xf5/0x210
<timestamp> xxx kernel: ? fput+0x25/0x30
<timestamp> xxx kernel: ? filp_close+0x5d/0x90
<timestamp> xxx kernel: ? sys_close+0xa5/0x100
<timestamp> xxx kernel: ? system_call_fastpath+0x16/0x1b


Cause

Incorrect Tivoli Storage Manager configuration with mixed media library


Diagnosing the problem

The /var/log/lin_tape.a file shows the following error :


---------------------------------------------------------------------
IBMtape5-----32978 Tue Oct 1 18:56:05 2013
Scsi Path : 00 00 04 00
CDB Command : 00 00 00 00 00 00
Status Code : 08 00 00 01
Sense Data : 71 00 03 00 00 00 00 1C 00 00 00 00 30 01 37 00
2C 0B 90 07 00 00 20 20 20 20 20 20 20 00 00 00
00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Description : Medium Error
---------------------------------------------------------------------

The Tivoli Storage Manager server activity log shows the following errors :

<timestamp> ANR8944E Hardware or media error on drive DRIVE05 (/dev/IBMtape5) with volume ABC123L3(OP=TESTREADY, Error Number= 5, CC=0, KEY=03, ASC=30, ASCQ=01, SENSE=70.00.03.00.00.00.00.1C.00.00.00.00.30.01.37.00.2C.0B.90.07.00.00.20.20.20.20.20.20.20.00.00.00.00.00.00.11, Description=An undetermined error has occurred). Refer to the Tivoli Storage Manager documentation on I/O error code descriptions. (PROCESS: 1234)
<timestamp> ANR8304E Time out error on drive DRVE05 (/dev/IBMtape5) in library IBM3584. (PROCESS: 1234)

The activity log shows an LTO-3 tape (ABC123L3) is mounted in drive DRIVE05 (/dev/IBMtape5).
The ANR8944E message shows ASC=30 and ASCQ=31 which translates to "MEDIA UNKNOWN FORMAT".
Run the "QUERY DRIVE F=D" command to examine the read and write capabilities of the drive. For example :

Library Name: IBM3584
Drive Name: DRIVE05
Device Type: LTO
On-Line: Yes
Read Formats: ULTRIUM2C,ULTRIUM2,ULTRIUMC,ULTRIUM
Write Formats: ULTRIUM2C,ULTRIUM2,ULTRIUMC,ULTRIUM
Element: 259
Drive State: EMPTY
...

In this case, it shows that drive DRIVE05 (/dev/IBMtape5) is an LTO-2 drive, which cannot read or write to an LTO-3 tape. This incompatibility is the cause of the error.


Resolving the problem

The lin_tape and activity log errors are a result of an incorrect Tivoli Storage Manager configuration. In this case, a single device class was configured for a library that contained a mix of LTO-2, LTO-3 and LTO-4 tape drives and media. For such a mix of drive and media types, you must configure multiple device classes. Refer to the "Mixing LTO drives and media in a library" section of the Tivoli Storage Manager Knowledge Center for more details.

Document information

More support for: Tivoli Storage Manager
Server

Software version: All Supported Versions

Operating system(s): Linux

Reference #: 1651995

Modified date: 26 July 2017


Translate this page: