LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 09-30-2009, 09:24 AM   #1
xunil321
Member
 
Registered: Mar 2004
Posts: 33

Rep: Reputation: 15
SLES11 / udev rules / tape media changer


Dear all,
at our SLES11 server there is an iscsi tape roboter from OVERLAND attached.
From this great list we learnt to use udev rules in order to fix the device name
for the media changer /dev/sgN where N is altering after each reboot.
Here is the udevinfo output of our tape changer:

#udevinfo -a -p $(udevinfo -q path -n /dev/sg5)

looking at device
'/devices/platform/host4/session1/target4:0:0/4:0:0:2/scsi_generic/sg5':
KERNEL=="sg5"
SUBSYSTEM=="scsi_generic"
DRIVER==""

looking at parent device
'/devices/platform/host4/session1/target4:0:0/4:0:0:2':
KERNELS=="4:0:0:2"
SUBSYSTEMS=="scsi"
DRIVERS==""
ATTRS{device_blocked}=="0"
ATTRS{type}=="8"
ATTRS{scsi_level}=="6"
ATTRS{vendor}=="OVERLAND"
ATTRS{model}=="NEO Series "
ATTRS{rev}=="0510"
ATTRS{tgps}=="1"
ATTRS{state}=="running"
ATTRS{timeout}=="0"
ATTRS{iocounterbits}=="32"
ATTRS{iorequest_cnt}=="0xe"
ATTRS{iodone_cnt}=="0xe"
ATTRS{ioerr_cnt}=="0x3"
ATTRS{modalias}=="scsi:t-0x08"
ATTRS{evt_media_change}=="0"
ATTRS{queue_depth}=="32"
ATTRS{queue_type}=="none"

Therefore we built a new rule called 100-local.rules in /etc/udev/rules.d with
this line:

KERNEL=="sg*", SUBSYSTEMS=="scsi", ATTRS{rev}=="0510", SYMLINK+="loader0"

After running /etc/init.d/boot.udev restart we would expect to see
/dev/loader0. But it does'nt exist, why?

THX for any hint advice,
Rainer
 
Old 10-02-2009, 10:42 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You could try "udevadm monitor" before attaching the device to try debugging the problem.

Look if earlier rules are triggered instead or if a different raw scsi device is assigned.

Last edited by jschiwal; 10-02-2009 at 10:50 AM.
 
Old 10-05-2009, 03:05 AM   #3
xunil321
Member
 
Registered: Mar 2004
Posts: 33

Original Poster
Rep: Reputation: 15
I got it: SUBSYSTEMS=="generic_scsi" is the solution

Rainer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit "/etc/udev/rules.d/40-basic-permissions.rules" file cygan Linux - Newbie 11 03-09-2009 05:22 AM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM
Problem in UDEV rules ukrishnanps Linux - Software 1 07-11-2008 12:01 AM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
need help fixing my udev rules or ivman rules hedpe Linux - Hardware 2 03-18-2006 10:07 AM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration