A TAPE ERROR OCCURRED: Could not find a tape to use: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
No edit summary
m (add header, etc.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Troubleshooting Header}}
= Problem =
In my case problem was in that amtape was unable to change tape.
In my case problem was in that amtape was unable to change tape.


The symoptome is:
The symptom is:
<nowiki>
# amtape home-backup show
# amtape home-backup show
slot  1: time 20080916051516 label backup-01
slot  1: time 20080916051516 label backup-01
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
slot  2: time 20080917041356 label backup-02
....
</nowiki>
....


amcheck was repeating tapes/slots too.
amcheck was repeating tapes/slots too.
Line 16: Line 16:
The worst thing is that amanda doesn't report any useful error if tape changer (chg-multi in my case) can't load a slot
The worst thing is that amanda doesn't report any useful error if tape changer (chg-multi in my case) can't load a slot
( amtape home-backup slot 3 doesn't raise any alert in spite of error )
( amtape home-backup slot 3 doesn't raise any alert in spite of error )
 
= Solution =
So, in my case I just corrected permissions in changer state-file parent directory
So, in my case I just corrected permissions in changer state-file parent directory
(! First look at where your state-file resides, /var/amanda/changer-state may be specific to my setup)
(! First look at where your state-file resides, /var/amanda/changer-state may be specific to my setup)
<nowiki># chown amandabackup /var/amanda</nowiki>
# chown amandabackup /var/amanda

Latest revision as of 23:02, 17 September 2008

This article is a part of the Troubleshooting collection.

Problem

In my case problem was in that amtape was unable to change tape.

The symptom is:

# amtape home-backup show
slot   1: time 20080916051516 label backup-01
slot   2: time 20080917041356 label backup-02
slot   2: time 20080917041356 label backup-02
slot   2: time 20080917041356 label backup-02
slot   2: time 20080917041356 label backup-02
....

amcheck was repeating tapes/slots too.

The worst thing is that amanda doesn't report any useful error if tape changer (chg-multi in my case) can't load a slot ( amtape home-backup slot 3 doesn't raise any alert in spite of error )

Solution

So, in my case I just corrected permissions in changer state-file parent directory (! First look at where your state-file resides, /var/amanda/changer-state may be specific to my setup)

# chown amandabackup /var/amanda