lkml.org 
[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: scsi_id: sending ioctl 2285 to a partition
On 02/10/2012 12:57 PM, Paolo Bonzini wrote:
> On 02/10/2012 08:47 PM, Nelson, Doug wrote:
>>>>> # scsi devices
>>>>> KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*",
>>>>> IMPORT{program}="scsi_id --export --whitelisted -d $tempnode",
>>>>> ENV{ID_BUS}="scsi"
>>>>
>>>> The rule I had was not excluding partitions. I'll fix that and try
>>>> again.
>>>
>>> So was it a custom rule, or it came with the distro?
>>>
>>
>> It's a custom rule we've been using for a long time to rename our 672 x
>> ssd's.
>
> Can you post the whole snippet?

Here's what I had in 20-local.rules

KERNEL=="sd*", BUS=="scsi", PROGRAM="scsi_id --whitelisted -d
$tempnode", ENV{ID_BUS}="scsi"

BUS=="scsi", RESULT=="3500151795924153d", NAME="disk-r1e1-d1s%n",
GROUP:="dba", OWNER:="oracle"
BUS=="scsi", RESULT=="35001517959269241", NAME="disk-r1e1-d2s%n",
GROUP:="dba", OWNER:="oracle"
BUS=="scsi", RESULT=="3500151795926930d", NAME="disk-r1e1-d3s%n",
GROUP:="dba", OWNER:="oracle"



>
> Paolo



\
 
 \ /
  Last update: 2012-02-11 00:45    [W:0.046 / U:4.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site