Bacula-users

[Bacula-users] Fwd: force the autochanger ID

2008-06-27 21:11:51
Subject: [Bacula-users] Fwd: force the autochanger ID
From: "John Drescher" <drescherjm AT gmail DOT com>
To: bacula-users <Bacula-users AT lists.sourceforge DOT net>
Date: Fri, 27 Jun 2008 21:11:39 -0400
>> > I have the following info but know what to do with it:
>> >
>> >
>> >  looking at device '/class/scsi_generic/sg4':
>> >    KERNEL=="sg4"
>> >    SUBSYSTEM=="scsi_generic"
>> >    DRIVER==""
>> >    ATTR{dev}=="21:4"
>> >
>> >  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    "
>> >    ATTRS{model}=="FastStor DLT    "
>> >    ATTRS{rev}=="0119"
>> >    ATTRS{state}=="running"
>> >    ATTRS{timeout}=="0"
>> >    ATTRS{iocounterbits}=="32"
>> >    ATTRS{iorequest_cnt}=="0x11"
>> >    ATTRS{iodone_cnt}=="0x11"
>> >    ATTRS{ioerr_cnt}=="0x1"
>> >    ATTRS{modalias}=="scsi:t-0x08"
>> >    ATTRS{evt_media_change}=="0"
>> >    ATTRS{queue_depth}=="2"
>> >    ATTRS{queue_type}=="none"
>> >
>> >  looking at parent device
>> > '/devices/pci0000:01/0000:01:07.0/host5/target5:0:1':
>> >    KERNELS=="target5:0:1"
>> >    SUBSYSTEMS==""
>> >    DRIVERS==""
>> >
>> >  looking at parent device '/devices/pci0000:01/0000:01:07.0/host5':
>> >    KERNELS=="host5"
>> >    SUBSYSTEMS==""
>> >    DRIVERS==""
>> >
>> >  looking at parent device '/devices/pci0000:01/0000:01:07.0':
>> >    KERNELS=="0000:01:07.0"
>> >    SUBSYSTEMS=="pci"
>> >    DRIVERS=="aic7xxx"
>> >    ATTRS{vendor}=="0x9004"
>> >    ATTRS{device}=="0x8478"
>> >    ATTRS{subsystem_vendor}=="0x9004"
>> >    ATTRS{subsystem_device}=="0x7884"
>> >    ATTRS{class}=="0x010000"
>> >    ATTRS{irq}=="20"
>> >    ATTRS{local_cpus}=="ff"
>> >
>> > ATTRS{modalias}=="pci:v00009004d00008478sv00009004sd00007884bc01sc00i00"
>> >    ATTRS{enable}=="1"
>> >    ATTRS{broken_parity_status}=="0"
>> >    ATTRS{msi_bus}==""
>> >
>> >  looking at parent device '/devices/pci0000:01':
>> >    KERNELS=="pci0000:01"
>> >    SUBSYSTEMS==""
>> >    DRIVERS==""
>> >
>> > 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"


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

John



-- 
John M. Drescher

-------------------------------------------------------------------------
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>