Bacula-users

Re: [Bacula-users] Fwd: force the autochanger ID

2008-06-28 07:29:36
Subject: Re: [Bacula-users] Fwd: force the autochanger ID
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users <Bacula-users AT lists.sourceforge DOT net>
Date: Sat, 28 Jun 2008 13:28:42 +0200
Hello,

28.06.2008 03:11, John Drescher wrote:
...
>>>>  looking at parent device
>>>> '/devices/pci0000:01/0000:01:07.0/host5/target5:0:1/5:0:1:0':
>>>>    KERNELS=="5:0:1:0"
>>>>    SUBSYSTEMS=="scsi"
>>>>    DRIVERS=="ch"
>>>>    ATTRS{device_blocked}=="0"
>>>>    ATTRS{type}=="8"
>>>>    ATTRS{scsi_level}=="3"
>>>>    ATTRS{vendor}=="ADIC    "
...
>>>> I have found a tutorial but it's for a USB disk and I can't understand
>>>> which part I need to pass use when creating a UDEV rule.
>>>>
>>>> --james
>>>>
>>>> On Fri, 2008-06-27 at 12:15 -0400, John Drescher wrote:
>>> Found my example from an email I sent:
>>>
>>>  # cat /etc/udev/rules.d/55-bacula.rules
>>> SUBSYSTEM=="scsi",ATTRS{vendor}=="EXABYTE*",ATTRS{type}=="8",
>>> SYMLINK+="autochanger1"
>>>
> 
> How about this for /etc/udev/rules.d/55-bacula.rules
> 
> SUBSYSTEM=="scsi",ATTRS{vendor}=="ADIC    ",ATTRS{type}=="8",
> SYMLINK+="autochanger1",GROUP="bacula",MODE="0666"

Looks familiar, but for a machine not exclusively used for backups I'd 
set the mode to 0660... in fact, I would always set the mode to 
something ending with 0.

Arno

> 
> Some helpful links I used are:
> http://gentoo-wiki.com/HOWTO_Customizing_UDEV
> http://reactivated.net/writing_udev_rules.html#ownership
> 
> John
> 
> 
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

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