cancel
Showing results for 
Search instead for 
Did you mean: 

I Can't import tape into the library

jpmichelino
Level 4
Partner

Hello!
I have installed NetBackup 7.5 on a Solaris server.
The tape library is a STK SL48.
I'm creating a Backup Offsite policy (without Vault licency).
I can make a backup and manualy take out the tape, but I can't import that same tape to library.
NetBackup give me the next log:

11/13/2013 15:19:38 - begin Import
11/13/2013 15:19:38 - Info bptm (pid=24811) start
11/13/2013 15:19:38 - started process bptm (pid=24811)
11/13/2013 15:19:38 - Info bptm (pid=24811) Waiting for mount of media id 0034L5 (copy 1) on server nbuserver.afascl.coop.
11/13/2013 15:19:38 - started process bptm (pid=24811)
11/13/2013 15:19:38 - mounting 0034L5
11/13/2013 15:19:38 - Info bptm (pid=24811) INF - Waiting for mount of media id 0034L5 on server nbuserver.afascl.coop for reading.
11/13/2013 15:19:38 - requesting resource 0034L5
11/13/2013 15:19:38 - granted resource  0034L5
11/13/2013 15:19:38 - granted resource  HP.ULTRIUM5-SCSI.000
11/13/2013 15:20:55 - mounted 0034L5; mount time: 0:01:17
11/13/2013 15:20:55 - Error bptm (pid=24811) read error on media id 0034L5, drive index 0, reading header block, I/O error
11/13/2013 15:20:55 - Info bptm (pid=24811) EXITING with status 85 <----------
11/13/2013 15:20:55 - Error bpimport (pid=24807) Status = media read error.
11/13/2013 15:20:55 - end Import; elapsed time 0:01:17
media read error  (85)

How I solve this problem?

27 REPLIES 27

Will_Restore
Level 6

Looks like the tape mounted but cannot be read.  Maybe a bad tape or bad drive.

 

Error bpimport (pid=24807) Status = media read error.

 

Are you running bpimport on the same tape that you just wrote?   Don't need to do that, only import images that have expired. 

mph999
Level 6
Employee Accredited
Edited my post as I can't read ... If a tape is removed from the library, there is no need to import it, unless. 1. It has expired 2. It is moved to a separate NBU environment I guess as you talk about offsite, you meet option 2 ... Looking at the log, it seems to mount, but then complains about the header block. It it mounts it has read the tape header, so I suspect it is the backup header it is failing on. I would try and read the headers outside NBU. Stick tape in drive and rewind mt -f rew Then run this command 5 times and post up the output od -c (Technically you should use dd and pipe into od -c , but above usually works) dd option would like this

Marianne
Level 6
Partner    VIP    Accredited Certified

Seems you are trying to import into NBU image catalog, not into a library, since the tape is already in the library and can be mounted, right?

Tell us more about the server that has written the tape:
OS, including kernel patch level.
HBA used for tape connection, including HBA driver version and firmware.

Server where you are trying to import:
OS, including kernel patch level.
HBA used for tape connection, including HBA driver version and firmware.

On Solaris, HBA info is logged in /var/adm/messages during boot up.

If both are Solaris - SPARC or x86?

We see these type of errors when the drivers on the 2nd system (st tape driver or HBA driver) is much older than the system where the tape was written, and then unable to read tape header.

Another possible factor is drive firmware - check firmware versions on tape drives at both sites.

Mark_Solutions
Level 6
Partner Accredited Certified

We need a little more info please...

The tape clearly cannot be read but where has the tape come from? Is it a new tape in a new system or has it been used somewhere else?

It may be that it has been encrypted or written with a block (buffer) size that the current server cannot cope with

As Marianne says we need more logs - the bptm log from the media server at the very least to start with

jpmichelino
Level 4
Partner

Thank for your help!
I trying import the tape into the same server and library that I made backups.
I put the tape into into the library manualy and next update the catalog with vmupdate command.

I give yoy more information:
The OS is Oracle Solaris 10 8/11 s10x_u10wos_17b X86

The HBA are Fibre Channel:
user@server # fcinfo hba-port
HBA Port WWN: 21000024ff026363
        OS Device Name: /dev/cfg/c4
        Manufacturer: QLogic Corp.
        Model: 371-4324-02
        Firmware Version: 05.04.03
        FCode/BIOS Version:  BIOS: 2.02; fcode: 2.03; EFI: 2.01;
        Serial Number: 0402L00-1136977865
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb
        Current Speed: 8Gb
        Node WWN: 20000024ff026363
HBA Port WWN: 21000024ff02318e
        OS Device Name: /dev/cfg/c5
        Manufacturer: QLogic Corp.
        Model: 371-4324-02
        Firmware Version: 05.04.03
        FCode/BIOS Version:  BIOS: 2.02; fcode: 2.03; EFI: 2.01;
        Serial Number: 0402L00-1131988032
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb
        Current Speed: 8Gb
        Node WWN: 20000024ff02318e


The library is a Oracle StorageTek SL45. Give you more info:
Library:
Product ID     MSL G3 Series
Currently Installed Library Firmware     G.70 / 3.10e
Bootcode Firmware Revision     0.80
Barcode Reader     SE625
Library Mode     Manual, Random
WWide Node Name     500143801605EE68
Library Controller Version     LCM 1.1

Drive Information     1 (LUN)
Vendor ID     HP
Product ID     Ultrium 5-SCSI
Firmware Revision     I5AW
Physical Drive Slot Number     1
Element Address     1
Library LUN Hosted By Drive     Yes
Data Compression     Yes
Interface Type     Fibre Channel
WWide Node Name     500143801605EE69
Port A     
   WWide Port Name     500143801605EE6A
   Port Type     Automatic
   Speed     Automatic
Port B     
   WWide Port Name     500143801605EE6B
   Port Type     Automatic
   Speed     Automatic

Drive Information     2
Vendor ID     HP
Product ID     Ultrium 5-SCSI
Firmware Revision     I5AW
Physical Drive Slot Number     3
Element Address     2
Library LUN Hosted By Drive     No
Data Compression     Yes
Interface Type     Fibre Channel
WWide Node Name     500143801605EE6F
Port A     
   WWide Port Name     500143801605EE70
   Port Type     Automatic
   Speed     Automatic
Port B     
   WWide Port Name     500143801605EE71
   Port Type     Automatic
   Speed     Automatic



user@server # cat /var/adm/messages  
Nov 12 15:37:40 nbuserver bpjava-msvc[24441]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 12 16:04:04 nbuserver bpjava-msvc[25936]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 12 16:05:32 nbuserver bpjava-msvc[26143]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 12 16:20:30 nbuserver bpjava-msvc[27138]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 12:24:37 nbuserver bpjava-msvc[16678]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 12:41:33 nbuserver bpjava-msvc[17518]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 12:52:18 nbuserver bpjava-msvc[18146]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 14:55:36 nbuserver bpjava-msvc[23619]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 15:02:46 nbuserver bpjava-msvc[23991]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 15:53:53 nbuserver bpjava-msvc[28763]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Nov 13 16:00:01 nbuserver tldcd[25445]: [ID 456744 daemon.error] External request already in progress on TLD(0), from host nbuserver.afascl.coop
Nov 14 10:47:07 nbuserver bpjava-msvc[13620]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.

Will_Restore
Level 6

You don't need to run bpimport on a tape that was created by the same server unless the images have expired; unlikely if this tape was recently cut.

 

An aside, your tape drive firmware is fairly out of date per  HP site link

Model
Active firmware versions
Released
Notes
LTO-5 Ultrium 3280 FC
I65W
May 2013
Current with this release
LTO-5 Ultrium 3280 FC
I5FW
December 2012
 
 
LTO-5 Ultrium 3280 FC
I5AW
December 2011
 

 

Mark_Solutions
Level 6
Partner Accredited Certified

Do you just mean inventory the library?

If so the easiest way if from the Admin Console

Please clarify exactly where you are hitting the error as your original post indicates an I/O error on the drive

And as the others say there is no need to run an import (but that would be a bpimport command)

Please clarify where you are at with this as an I/O error points to hardware

If it had been working then either just something has failed or something may need a re-boot (library or server - if you reboot the library always reboot the server once the library shows back online)

jpmichelino
Level 4
Partner

I make a inventory with command line because I need do it before to run a backup job. I make the inventory using a pre-task script.
I have the problem that I can't restore a backup from a tape that I removed manualy  from the library and next put on again (Do you understand me?)
Do you think that if I upgrade the library' firmware, I'll solve the problem?
Thank.

mph999
Level 6
Employee Accredited
Can you confirm if 1. The inventory works 2. The tape actually mounts The seems to be some confusion as to what the problem is. Is the issue the media read error like you showed in the first post. If so, can you run the od -c command like I explained. If not, please make clear the details of the issue.

jpmichelino
Level 4
Partner

Hello mph999.

The inventory works.

The tapes media actually mount.

The problem is: When I make a backup to a tape media, next I remove the tape media from the library to carry it out the company. Time late I put the tape media in the same library and make a library's inventory. Next I tried to restore from a backup saved in that tape media, but I can't do it. (Neither NetBackup choose that tape media to do a new backup)

The backup isn't expired.

I hope explained it well.

Thanks.

 

 

jpmichelino
Level 4
Partner

mph999 I forgot to say you that prove the commands that you explained me. The output was:

user@server# mt -f /dev/rmt/0 rew
user@server# od -c

^C
user@server#


Null output... I had to cancel the task.

Greetings.

 

 

mph999
Level 6
Employee Accredited
Sorry the command appeared wrong in my post. It should be mt -d "device file" rew od -c "device file" (x5 times) Apologies, Safari on my ipad doesn't display the brackets I used. You say you cannot do the restore, is this when you see the 'media read error'. Or if not, what error do you see.

Marianne
Level 6
Partner    VIP    Accredited Certified

So, what happens if you run a backup, leave it in the robot, and then try to run a restore?

I am trying to find out if removing the tapes from the library has anything to do with the failure.

If restores also fail from tapes that were left in the library, you need to check tape drive and HBA firmware as well as drivers.

If restores only fail after tapes were removed from the library, you need to check the handling of the tapes. Has anyone dropped a batch of tapes? Tapes transported or left in a hot vehicle? Storage conditions where tapes are kept?

Will_Restore
Level 6

good points!

I'd give it a thumbs up but that feature was removed indecision

jim_dalton
Level 6

Media read error...look on the robots errlog (its a HP under the bonnet I think) or the servers msgs for more info on the read error and an error code.

Depending on the error, could be one of a number of things ...damaged media, drive in need of a clean, unstable environment. Try cleaning your drive, examine the tape physically (LTO5 - does it have a sprung window? Open the window and look inside.Dont touch!)

Remove netbackup from the picture: run tcopy. Man tcopy to find out what. This will summarise the media layout and prove if the tape is fully readable. If it bails then its probably a media issue and nothing related to NB, but could also be related fo firmware/blocking.

Jim

jpmichelino
Level 4
Partner

Thanks. I paste you the output of mt and od command:

root@nbuserver # mt -f /dev/rmt/0 rew
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000
root@nbuserver # od -c /dev/rmt/0
0000000


I can make a restore from a tape media that I had not remov from the library.
Except only one tape media (with backup expired), all other tape media with I have problem was removeed and next put in to the library.
Is ther any process to put out and put in the tape media into the library? May be I am making anything worg.
Let me chek the handling of the tapes. That task are made for a partner.
Thank.

jim_dalton
Level 6

I should add, to avoid further disappointment, make the tape write disabled when you run tcopy. For obvious reasons!

Jim

mph999
Level 6
Employee Accredited

You need to use the command :

 

od -c /dev/rmt/0cbn

Without the cbn the tape will auto-rewind ...

jpmichelino
Level 4
Partner

mph 99, with cbn I had the same response.
Greetings.