Amanda-Users

Re: Run and dump cycle recommendations?

2002-08-15 19:20:47
Subject: Re: Run and dump cycle recommendations?
From: Charlie Bebber <charlie.bebber AT digitalmed DOT com>
To: Jon LaBadie <jon AT jgcomp DOT com>
Date: 15 Aug 2002 16:06:35 -0700
On Thu, 2002-08-15 at 14:16, Jon LaBadie wrote:
>
> Start off with no changer, just a tapedev.  Simpler for cutting your teeth.

Ok, so I commented that out and have gotten a little further (or so it
seems).  Perhaps I'm getting ahead of myself.

With the tapdev set to /dev/sg0 , when I run 'amcheck -s DailySet1', I
get the following:

---
Holding disk /backup/amanda: 12891648 KB disk space available, using
7771648 KB
ERROR: /dev/sg0: rewinding tape: Permission denied
       (expecting a new tape)
NOTE: skipping tape-writable test
NOTE: info dir /var/lib/amanda/DailySet1/curinfo: does not exist
NOTE: it will be created on the next run
NOTE: index dir /var/lib/amanda/DailySet1/index/localhost: does not
exist
Server check took 30.107 seconds
---

After seeing that /dev/sg0 is a rewinding device and reading in INSTALL
that it needs to point to a non-rewinding device, I changed it to point
to /dev/nst0 which is supposedly it in linux.  However, when 'amcheck -s
DailySet' is run again, I get this:

---
Holding disk /backup/amanda: 12891648 KB disk space available, using
7771648 KB
ERROR: /dev/nst0: rewinding tape: No medium found
       (expecting a new tape)
NOTE: skipping tape-writable test
NOTE: info dir /var/lib/amanda/DailySet1/curinfo: does not exist
NOTE: it will be created on the next run
NOTE: index dir /var/lib/amanda/DailySet1/index/localhost: does not
exist
Server check took 30.246 seconds
---

At least with /dev/sg0, it had found a medium.  And I'm not too sure
what's going on with the permission denied error either.  Here's the
'id' of the amanda user:

uid=33(amanda) gid=6(disk) groups=6(disk)

And the perms for /dev/sg0 are:

crw-rw----    1 root     disk      21,   0 Aug 30  2001 /dev/sg0

So that should be fine, shouldn't it?  Doesn't it just need for the
group's read and write bits to be set?  I've even set it to 4777 and
still get the "permission denied" error.  Any ideas on this one?

Do you need to label the tapes before running 'amcheck'?

> As I suggested above, work with no changer for now or jump right in to
> your final changer config.

I figured I'd play with the final changer config once I'd gotten amanda
to work at all, but just out of curiosity, does anyone have any idea as
to what I might use with this external ultra160 SCSI Compaq eight
cassette autoloader in linux?  I'm presuming chg-scsi, but I haven't had
much luck with my presumptions recently.

Thanks again, everyone (especially Jon).

-Charlie



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