Amanda-Users

/usr/lib/amanda/chg-disk:: tape_rdlabel: tape open: line 146: [: -le: unary operator expected

2007-12-05 13:53:10
Subject: /usr/lib/amanda/chg-disk:: tape_rdlabel: tape open: line 146: [: -le: unary operator expected
From: "Dennis Ortsen" <dortsen AT gmail DOT com>
To: amanda-users AT amanda DOT org
Date: Wed, 5 Dec 2007 19:47:34 +0100
Hi all,

I've just hit a 100% full root filesystem (as in /  )(ouch). I managed
to get it a bit larger (using LVM on RHEL5). After the root file
system had space left again, I thought I could check the upcoming
backup with AMANDA again. So I ran a "amcheck jobname -a" and got the
following result mailed to me:

Amanda Tape Server Host Check
-----------------------------
Holding disk /amhold2: 95485 MB disk space available, using 92413 MB
slot /usr/lib/amanda/chg-disk:: tape_rdlabel: tape open: line 146: [:
-le: unary operator expected: No such file or directory

       (expecting tape DPF-03 or a new tape) Server check took 0.738 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 27 hosts checked in 0.106 seconds, 0 problems found

(brought to you by Amanda 2.5.0p2)

What does that error on lin 146 mean? I don't understand where this
comes from. I opened /usr/lib/amanda/chg-disk and checked line 146. It
all looks fine to me. The /bin/sh (referred to in the first line)
exists and is executable (it's actually a symlink to /bin/bash, RedHat
default). I've got the idea that when my root filesystem was up to
100% full, some kind of flag got messed up with amanda's virtual tape
(chg-disk) settings. Is that possible? only my /usr/lib/amanda
(binaries) and the /etc/amanda (config files and the changer* files)
could have had a problem with that.

Is this recoverable? the server hasn't been updated, no new things
have happened, I don't know where this comes from.

OS: RHEL5
AMANDA version: 2.5.0p2
I'm using the chg-disk (virtual tapes on disk) configuration

Thanks in advance,

Br.

Dennis

<Prev in Thread] Current Thread [Next in Thread>