Amanda-Users

Re: debugging chg-scsi

2004-11-04 16:45:04
Subject: Re: debugging chg-scsi
From: Frank Smith <fsmith AT hoovers DOT com>
To: Erik Anderson <erikerik AT gmail DOT com>, Amanda Users <amanda-users AT amanda DOT org>
Date: Thu, 04 Nov 2004 15:36:05 -0600
--On Thursday, November 04, 2004 14:51:54 -0600 Erik Anderson <erikerik AT 
gmail DOT com> wrote:

> On Thu, 04 Nov 2004 20:37:13 +0100, Christoph Scheeder
> <christoph.scheeder AT scheeder DOT de> wrote:
>> Hi again,
>> you need WRITE-permisions on the sg-device-nodes to issue commands to
>> the devices, but your listing only shows read and execute permisions.
>> mine look like
> 
> Okay - here's the deal.  My /dev/sg* entries are symlins.  They're
> pointing as follows:
> 
> /dev/sg0 -> scsi/host0/bus0/target0/lun0/generic
> /dev/sg1 -> scsi/host1/bus0/target1/lun0/generic
> /dev/sg2 -> scsi/host1/bus0/target3/lun0/generic
> 
> The permissions on the symlinks are 555, but the permissions on the
> targets are 660, which is correct.

Maybe, mabe not.  Depends on the user/group of the devices and the
user/group Amanda runs as.
Also, while sg is the proper device to use to control the changer,
it doesn't understand tape commands like rewind, so make sure your
tape device is referencing an st device (of course, your kernel
also needs scsi tape support compiled in or the module loaded or you
won't have any st devices).

Frank

-- 
Frank Smith                                      fsmith AT hoovers DOT com
Sr. Systems Administrator                       Voice: 512-374-4673
Hoover's Online                                   Fax: 512-374-4501


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