Amanda-Users

Re: amlabel problem with backup to disk config

2003-05-11 21:04:48
Subject: Re: amlabel problem with backup to disk config
From: Jon LaBadie <jon AT jgcomp DOT com>
To: Amanda Users Listserve <amanda-users AT amanda DOT org>
Date: Sun, 11 May 2003 21:02:23 -0400
On Mon, May 12, 2003 at 09:54:51AM +1000, shaun wrote:
> hi wojciech,
> 
> thanks for taking the time to reply to my question.
> i tried what you suggested and made a soft link from
> /var/lib/amanda/DailySet1 to /etc/amanda/DailySet1.
> however i unfortunately get the same error, although the path of the
> tapelist parse error has changed to the linked /etc path.
> 
> amlabel still gives the same error
> 
> [amanda@william DailySet1]$ amlabel DailySet1 tape-01
> amlabel: could not load tapelist "/etc/amanda/DailySet1/tapelist"
> 
> amcheck info:
> 
> Amanda Tape Server Host Check
> -----------------------------
> ERROR: tape list /etc/amanda/DailySet1/tapelist: parse error

It sounds to me like one of these:
 a) non-existant tapelist file
 b) incorrect ownership/permissions
 c) scrambled contents

As the amanda user, do you get a reasonable path if you do:

    $ amgetconf DailySet1 tapelist
    /usr/local/etc/amanda/DailySet1/tapelist

Do you get reasonable ownership and permissions when you do:

    $ ls -l `amgetconf DailySet1 tapelist`
    -rw-r--r--  1 amanda  backup  396 May 11 20:44 /usr/local/.../tapelist

Does tapelist have reasonable contents, either empty or three column like:

    $ cat `amgetconf DailySet1 tapelist`
    20030509 DS1-12 reuse
    20030508 DS1-11 reuse
      ...
    20030417 DS1-14 reuse
    20030416 DS1-13 reuse

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)