From: Jerry Peters on
Lusotec <nomail(a)nomail.not> wrote:
> terryc wrote:
>> Lusotec wrote:
>>> terryc wrote:
>>>> Under the old linux, after you had unloaded the scsi card driver,
>>>> connected and powered up the hard disk array/whatever, then reloaded
>>>> the modules for the scsi card, if devices were missing, you could then
>>>> run MAKEDEV and create them and it all worked.
>>>>
>>>> No such luck with current kernels as it is controlled by udev, so I can
>>>> not run MAKEDEV.
>>>>
>>>> what are you supposed to do under the current kernels to get udev to
>>>> see that these devices are now connected and it needs to create the
>>>> devices?
>>>
>>> Just load the kernel module for the SCSI card. The device files should
>>> be automatically created by udev.
>>
>> Unfortunately it isn't happening, which is why I am asking.
>
> Ok, something is not working then. :)
>
> I need more information to try and help you.
>
> Do the following:
>
> $ modprobe --remove SCSI_MODULE
> $ dmesg > /tmp/dmesg.before
> $ cat /proc/scsi/scsi > /tmp/scsi.before
> $ modprobe SCSI_MODULE
> $ dmesg > /tmp/dmesg.after
> $ cat /proc/scsi/scsi > /tmp/scsi.after
> $ diff /tmp/dmesg.before /tmp/dmesg.after > /tmp/dmesg.diff
> $ diff /tmp/scsi.before /tmp/scsi.after > /tmp/scsi.diff
>
> Post here the content of /tmp/dmesg.diff and /tmp/scsi.diff
>
> With these two diffs it will be possible to determine if the module is
> actually working and if it finds any drives.
>
> Replace SCSI_MODULE with the name of the kernel SCSI module for your SCSI
> card.
>
> Regards.
>
Right after: modprobe --remove SCSI_MODULE
as root, in a terminal window do: udevadm --monitor
This will show you what events udevd is getting and how it's
processing them. See man udevadm for more details.

Jerry
From: terryc on
On Sun, 11 Apr 2010 14:04:29 +0000, terryc wrote:


> what are you supposed to do under the current kernels to get udev to see
> that these devices are now connected and it needs to create the devices?

Er, thanks for the reply. The problem turned out to be a NBK (nut behind
the keyboard ) problem. the drives were in an external tower and I think
I failed to give enough time for the drives to spin up(or something)
after power on, before the module was loaded.


From: Wolfgang Draxinger on
terryc wrote:

> Unfortunately it isn't happening, which is why I am asking.

Maybe the devices aren't properly enumerated. Try rescan-scsi-bus.sh (if
that doesn't come with your distribution, Google for it). If device nodes
still don't appear, trigger udev:

udevadm trigger && udevadm settle


Wolfgang