PDA

View Full Version : Newbie getting - could not read result from "/usr/lib/amanda/chg--disk"



lenhen
December 2nd, 2006, 10:56 AM
Hi!

I found Amanda on the net and installed on my old SuSE 9.0 machine. I found an excellent tutorial on http://network.zmanda.com/pdf/Amanda-Tutorial/Community-Edition-Tutorial.htm that I've been following. Everything went well until I was supposed to label my vtapes.

When trying to label a vtape I get the following result:

amandabackup@iserver:/backup/vtapes/test/slots> amlabel test Test-01 slot 1
amlabel: could not load slot "1": could not read result from "/usr/lib/amanda/chg--disk"

amanda.conf is in /etc/amanda/test/ and contains, among other parameters, the following parameter settings

tapedev "file:/backup/vtapes/test/slots"

labelstr "^Test-[0-9][0-9]*$"

The directory /backup/vtapes/test/slots is owned by amandabackup:disk and it has rwx permissions on the directory. The directory contains the following files:

lrwxrwxrwx 1 amandabackup disk 5 2006-12-02 17:11 data -> slot1
-rw------- 1 amandabackup disk 15 2006-12-02 17:16 info
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot1
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot10
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot11
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot12
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot13
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot14
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot15
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot16
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot17
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot18
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot19
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot2
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot20
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot3
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot4
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot5
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot6
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot7
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot8
drwxr-xr-x 2 amandabackup disk 48 2006-12-02 17:10 slot9

Any hints on what can be wrong?

Thanks in advance, Len...

lenhen
December 2nd, 2006, 11:08 AM
I also get the following results when trying the command amtape config show:

amandabackup@iserver:/etc/amanda/test> amtape test show
Changer problem: could not read result from "/usr/lib/amanda/chg--disk"

Seems to be related to my labelling problem.

/Len...

lenhen
December 2nd, 2006, 11:16 AM
It was a typo in the amanda.config file

tpchanger "chg--disk"

is now changed to

tpchanger "chg-disk"

and labelling works fine

amandabackup@iserver:/etc/amanda/test> amlabel test Test-01 slot 1
labeling tape in slot 1 (file:/backup/vtapes/test/slots):
rewinding, reading label, not an amanda tape (Read 0 bytes)
rewinding, writing label Test-01, checking label, done.

and testing works ok

amandabackup@iserver:/etc/amanda/test> amtape test show
amtape: scanning all 25 slots in tape-changer rack:
slot 1: date X label Test-01

Thanks for providing your forum. When defining a problem, you often solve it by yourself...

/Len...