Interesting I have 2 tape drives on the library...
./ltoTool -S
ltoTool V4.63 -- Copyright (c) 1996-2006, Exabyte Corp.
Scanning your system for tape devices...OK
Device | Address
------------------------+-----------------
IBM ULTRIUM-TD3 | /dev/rmt/0n
IBM ULTRIUM-TD3 | /dev/rmt/1n
Need to find out why the second tape isn't not working correctly.
However, I switched Amanda.conf to use /dev/rmt/0cn
Tried a amtape command and got this error
/opt/amanda/server/sbin/amtape Full update
amtape: scanning all 7 slots in tape-changer rack:
"/dev/rmt/0cn" uses deprecated device naming convention;
using "tape:/dev/rmt/0cn" instead.
Error reading 2097152 bytes from /dev/rmt/0cn: I/O error
Error reading Amanda header.
ld.so.1: amtape: fatal: relocation error: file
/usr/local/lib/amanda/libamanda-2.6.0p2.so: symbol g_strv_length:
referenced symbol not found
Killed
Logs
[/opt/amanda/debug/server/Full]#cat amtape.20081020155528.debug
1224536128.958313: amtape: pid 2233 ruid 30063 euid 30063: start at Mon
Oct 20 15:55:28 2008
1224536128.989125: amtape: pid 2233 ruid 30063 euid 30063: rename at Mon
Oct 20 15:55:28 2008
1224536133.944805: amtape: changer_query: changer return was 7 1 1
1224536133.944981: amtape: changer_query: searchable = 1
1224536133.945274: amtape: changer_find: looking for NULL changer is
searchable = 1
1224536138.795562: amtape: device_read_label; mode = 0
15:55:38 Config info:
firstslot = "2"
lastslot = "8"
cleanslot = "-1"
cleancycle = "120"
offline_before_unload = "0"
unloadpause = "0"
autoclean = "0"
autocleancount = "99"
havereader = "1"
driveslot = "0"
poll_drive_ready = "3"
initial_poll_delay = "0"
max_drive_wait = "120"
15:55:38 LOADSLOT -> load drive 0 (/dev/rmt/0cn) from slot current
15:55:38 STATUS -> currently loaded slot = 8
-> currently loaded barcode = "ON1006L3"
15:55:38 Exit (0) -> 8 /dev/rmt/0cn
1224536138.778996: chg-zd-mtx: pid 2607 finish time Mon Oct 20 15:55:38
2008
Anderson
-----Original Message-----
From: Jean-Louis Martineau [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2008 3:34 PM
To: Krahn, Anderson
Cc: [email protected]
Subject: Re: problems with amtape and amanda 2.6.0p2
Are you sure /dev/rmt/1cn is the device for the tape drive?
What's the output of:
mt -f /dev/rmt/1cn status
mt -f /dev/rmt/1cn rewind
Jean-Louis
Krahn, Anderson wrote:
>
> Trying to label my tapes and I get the following errors:
>
>
>
> ]#/opt/amanda/amanda-2.6.0p2/server-src/amtape Full update
>
> amtape: scanning all 7 slots in tape-changer rack:
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 2: Device error, or Volume error
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 3: Device error, or Volume error
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 4: Device error, or Volume error
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 5: Device error, or Volume error
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 6: Device error, or Volume error
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 7: Device error, or Volume error
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> amtape: slot 8: Device error, or Volume error
>
>
>
> server debug logs:
>
> 14:41:49 Return (0) -> 7 /dev/rmt/1cn
>
> 14:41:49 LOADSLOT -> loading tape from slot 8 to drive 0
(/dev/rmt/1cn)
>
> 14:41:50 Running: /usr/local/sbin/mtxRunning: loadRunning: 8Running: 0
>
> 14:42:31 Exit code: 0
>
> Stdout:
>
> Loading media from Storage Element 8 into drive 0...done
>
> 14:42:31 -> status 0, result "Loading" -> status media, result "from"
> -> status Storage, result "Element" -> status 8, result "into" ->
> status drive, result "0...done"
>
> 14:42:47 Exit (0) -> 8 /dev/rmt/1cn
>
> 1224531767.850148: chg-zd-mtx: pid 1479 finish time Mon Oct 20
> 14:42:47 2008
>
>
>
> Config debug logs:
>
>
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> 1224531422.139664: amtape: device_read_label; mode = 0
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> 1224531530.131799: amtape: device_read_label; mode = 0
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> 1224531646.317800: amtape: device_read_label; mode = 0
>
> "/dev/rmt/1cn" uses deprecated device naming convention;
>
> using "tape:/dev/rmt/1cn" instead.
>
> Error rewinding device /dev/rmt/1cn
>
> 1224531767.865606: amtape: device_read_label; mode = 0
>
> 1224531782.916559: amtape: pid 29419 finish time Mon Oct 20 14:43:02
2008
>
>
>
>
>
> For some reason it is not able to rewind the tape. Any ideas?
>
>
>
> Anderson
>