[FZH] SCSI设备文件的问题

Simon Yan simonyanix at gmail.com
Tue May 24 08:06:48 UTC 2011


2011/5/24 Yang Xu <kernel.deeppro at gmail.com>:
> 另外也可能是你的设备没有被驱动起来
> 要确保/sys/bus/scsi/devices里有正确的文件,如uevent,udev才能响应
> 例如我的虚拟机dmesg一下
> [ 6875.014988] scsi 3:0:0:0: Direct-Access     EAGET    V8
>       PQ: 0 ANSI: 0
> [ 6875.026199] sd 3:0:0:0: [sdc] 488397168 512-byte hardware sectors:
> (250 GB/232 GiB)
> [ 6875.028625] sd 3:0:0:0: [sdc] Write Protect is off
> [ 6875.028627] sd 3:0:0:0: [sdc] Mode Sense: 03 00 00 00
> [ 6875.028629] sd 3:0:0:0: [sdc] Assuming drive cache: write through
> [ 6875.034358] sd 3:0:0:0: [sdc] 488397168 512-byte hardware sectors:
> (250 GB/232 GiB)
> [ 6875.036412] sd 3:0:0:0: [sdc] Write Protect is off
> [ 6875.036414] sd 3:0:0:0: [sdc] Mode Sense: 03 00 00 00
> [ 6875.036415] sd 3:0:0:0: [sdc] Assuming drive cache: write through
>
> 那么查看cat /sys/bus/scsi/devices/target3\:0\:0/3\:0\:0\:0/uevent  正常
>
貌似木有uevent。
不过我不能保证,因为我现在没有直接环境试验。/sys目录是copy过来的。
如果木有uevent,貌似是驱动不正常?

> 在 2011年5月24日 下午3:44,Yang Xu <kernel.deeppro at gmail.com> 写道:
>> 生成设备节点是由udev做的
>> 应该是没有写udev规则文件。我只是知道原理,不会写。RHEL也不至于这么低级吧,是什么版本的?
>> 另外http://zh-kernel.org/mailman/listinfo/linux-kernel 这个邮件列表可讨论内核问题
>>
>> 在 2011年5月24日 下午3:05,Simon Yan <simonyanix at gmail.com> 写道:
>>> 这个问题可能有点儿跑题,但是我暂时找不到更好的提问的地方,希望大家指导一下。
>>>
>>> 有台服务器,安装RHEL时候发现硬盘设备在/sys/bus/scsi/devices里面已经有相关文件了,可是/dev/下面却没有sda。
>>> dmesg里面也发现了sda。
>>> 这个可能是什么原因造成的?
>>>
>>> --
>>> Regards,
>>> Simon Yan
>>>
>>> http://www.google.com/profiles/simonyanix
>>> _______________________________________________
>>> Chinese mailing list
>>> Chinese at lists.fedoraproject.org
>>> https://admin.fedoraproject.org/mailman/listinfo/chinese
>>>
>>
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
>



-- 
Regards,
Simon Yan

http://www.google.com/profiles/simonyanix


More information about the Chinese mailing list