On 2007-02-22 00:01, FL wrote:
> 
> On 2/21/07, *Stefan G. Weichinger* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     FL schrieb:
>     > A host check reports no slots available, when there are slots
>     available.
>     > What causes this, and what is the remedy? Thanks.
>     >
>     > Changer problem: no slots available
> 
>     In my case it helped to change the group of the used changer-device:
> 
>     # chgrp tape /dev/sg2
> 
>     when the amanda-user is member of the group tape.
> 
>     # ll /dev/sg2
>     crw-rw---- 1 root tape 21, 2 16. Feb 11:35 /dev/sg2
> 
>     After that you can try
> 
>     amanda ~ $ mtx -f /dev/sg2 status
> 
>     and amcheck should find slots then.
> 
>     The group of the changer-device might be reset after reboot, due to udev
>     and similar stuff, haven't yet researched how to fix that here. I do it
>     manually, one could also add this to some boot-script.
> 
>     Stefan
> 
> Hi,
> In fact, that's what I've been doing, and I've added it to a boot
> script; e.g.,
> 
> modprobe sg
> chown root.tape /dev/sg2
> if [ ! -h /dev/changer ]; then
>    ln -s /dev/sg2 /dev/changer
> fi
> 
> (My changer device is also /dev/sg2.) I must look into udev...I may be
> attempting
> to change ownership and set the symbolic link at the wrong time...
> FL

I'm using CentOS (RHEL clone), and setting the permissions of the
devices is done by changing the file:
  /etc/udev/permissions.d/50-udev.permissions
The entry for the generic scsi looks like:
  # scsi devices
  sg*:root:disk:0660

And I make the Amanda user part of the group "disk", of course.

-- 
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  [EMAIL PROTECTED]
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************

Reply via email to