Amanda-Users

Can't label tapes. slot 1: not an amanda tape (Read 0 bytes) [SOLVED]

2009-01-07 18:09:30
Subject: Can't label tapes. slot 1: not an amanda tape (Read 0 bytes) [SOLVED]
From: Muhammad Nuzaihan Kamalluddin <zaihan AT unrealasia DOT net>
To: amanda-users AT amanda DOT org
Date: Thu, 8 Jan 2009 06:51:58 +0800
Hi all, i am having this error, couldn't find the solution even through google and mail achives, and found the solution by trial and error.

Just in case someone else has this error and since this mailing list is archived it's nice to have it in here. :-) and sorry for being rude on the test mail. i just subscribed, and majordomo is slow to reply.

As "amanda" user, just do this to recreate and relabel your slots:
cd /space/vtapes/DailySet1/slots


mkdir -p /space/vtapes/DailySet1/slots

for ((i=1; $i<=25; i++)); do mkdir  slot$i;done

ln -s slot1 data



/usr/sbin/ammt -f file:/space/vtapes/DailySet1/slots status

rm /etc/amanda/DailySet1/tapelist

touch /etc/amanda/DailySet1/tapelist

chown amanda:disk /etc/amanda/DailySet1/tapelist*

for ((i=1; $i<=9;i++)); do /usr/sbin/amlabel DailySet1 DailySet1-0$i slot $i; done
/usr/sbin/amtape DailySet1 reset


BEFORE:
-bash-3.2$ /usr/sbin/amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
Holding disk /dumps/amanda: 107930892 KB disk space available, using 107828492 KB
slot 15: not an amanda tape (Read 0 bytes)
slot 16: not an amanda tape (Read 0 bytes)
slot 17: not an amanda tape (Read 0 bytes)
slot 18: not an amanda tape (Read 0 bytes)
slot 19: not an amanda tape (Read 0 bytes)
slot 20: not an amanda tape (Read 0 bytes)
slot 21: not an amanda tape (Read 0 bytes)
slot 22: not an amanda tape (Read 0 bytes)
slot 23: not an amanda tape (Read 0 bytes)
slot 24: not an amanda tape (Read 0 bytes)
slot 25: not an amanda tape (Read 0 bytes)
slot 1: not an amanda tape (Read 0 bytes)
slot 2: not an amanda tape (Read 0 bytes)
slot 3: not an amanda tape (Read 0 bytes)
slot 4: not an amanda tape (Read 0 bytes)
slot 5: not an amanda tape (Read 0 bytes)
slot 6: not an amanda tape (Read 0 bytes)
slot 7: not an amanda tape (Read 0 bytes)
slot 8: not an amanda tape (Read 0 bytes)
slot 9: not an amanda tape (Read 0 bytes)
slot 10: not an amanda tape (Read 0 bytes)
slot 11: not an amanda tape (Read 0 bytes)
slot 12: not an amanda tape (Read 0 bytes)
slot 13: not an amanda tape (Read 0 bytes)
slot 14: not an amanda tape (Read 0 bytes)

       (expecting a new tape)
Server check took 0.540 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.041 seconds, 0 problems found

(brought to you by Amanda 2.5.0p2)

----------------

AFTER:
bash-3.2$ /usr/sbin/amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
Holding disk /dumps/amanda: 103540220 KB disk space available, using 103437820 KB
slot 3: read label `DailySet1-03', date `20090108'
slot 4: read label `DailySet1-04', date `X'

NOTE: skipping tape-writable test
Tape DailySet1-04 label ok
Server check took 0.255 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.126 seconds, 0 problems found

(brought to you by Amanda 2.5.0p2)
--------

Regards,
Zaihan

<Prev in Thread] Current Thread [Next in Thread>
  • Can't label tapes. slot 1: not an amanda tape (Read 0 bytes) [SOLVED], Muhammad Nuzaihan Kamalluddin <=