Amanda-Users

Re: Debugging amlabel?

2006-05-04 11:24:18
Subject: Re: Debugging amlabel?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Arnd <m_list AT eshine DOT de>
Date: Thu, 04 May 2006 17:19:14 +0200
On 2006-05-04 17:13, Arnd wrote:
Hello.

Is there a possibility to log the activities of amlabel? I can load any tape with amtape but amlabel doesn't work. After loading the tape from the first slot amlabel tries to label it but this seems to hang:

$ amlabel tapeBackup tapeBackup-01
labeling tape in slot 1 (/dev/nst0):
rewinding, reading label

This command now runs for more than 30 minutes without any debugging information. The drive seems to be in use so it might still be trying to rewind it?:

 $ mtx -f /dev/nst0 status
cannot open SCSI device '/dev/nst0' - Device or resource busy

Maybe the tapetype is misconfigured?:

define tapetype ULTRIUM2 {
    comment "Ultrium 2 HP Tape"
    length 200000 mbytes
}

I was running strace but couldn't find the reason why it hangs.

This seems to be a kernel or hardware error.

Any details in the system logs?  or dmesg?

From the description is seems like simply open() or read() hangs.

Normal scsi voodoo:  is the cable terminated?  Did you sacrifice
a chicken? ...

Can you read/write to the tape when not using amanda tools, e.g.
simple:   dd if=somefile bs=32k of=/dev/st0


--
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************


<Prev in Thread] Current Thread [Next in Thread>