免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1100 | 回复: 0
打印 上一主题 下一主题

Device Drivers (file system)3 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-19 17:05 |只看该作者 |倒序浏览
Logical Device Name
   The final stage of the autoconfiguration process involves the creation of the logical device name to reflect the new set of devices on the system. To see a list of logical device names for the disks connected to a SPARC system, execute a long listing on the /dev/dsk directory, as follows:

total 96
lrwxrwxrwx   1 root     root          42 Jan 10 00:16 c0t6d0s0 ->
[email=../../devices/pci@8,700000/scsi@1/sd@6,0:a]../../devices/pci@8,700000/scsi@1/sd@6,0:a[/email]
lrwxrwxrwx   1 root     root          42 Jan 10 00:16 c0t6d0s1 ->
[email=../../devices/pci@8,700000/scsi@1/sd@6,0:b]../../devices/pci@8,700000/scsi@1/sd@6,0:b[/email]
lrwxrwxrwx   1 root     root          42 Jan 10 00:16 c0t6d0s2 ->
[email=../../devices/pci@8,700000/scsi@1/sd@6,0:c]../../devices/pci@8,700000/scsi@1/sd@6,0:c[/email]
lrwxrwxrwx   1 root     root          42 Jan 10 00:16 c0t6d0s3 ->
[email=../../devices/pci@8,700000/scsi@1/sd@6,0:d]../../devices/pci@8,700000/scsi@1/sd@6,0:d[/email]
lrwxrwxrwx   1 root     root          42 Jan 10 00:16 c0t6d0s4    1
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789b9d,0:h]0:h[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s0 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:a]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:a[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s1 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:b]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:b[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s2 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:c]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:c[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s3 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:d]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:d[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s4 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:e]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:e[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s5 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:f]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:f[/email]
lrwxrwxrwx   1 root     root          70 Feb 17 06:27 c1t3d0s6 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:g]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f89ca1,0:g[/email]
.
.
* output has been truncated
on the second line of output from  the ls -l command,ntice that the logical device name c1t4d0s4 is linked to the physical device name, as shown in the

bash-3.00# ls -l /dev/dsk |grep c1t4d0s4
lrwxrwxrwx   1 root     root          70 Jan 10 00:16 c1t4d0s4 ->
[email=../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789761]../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789761[/email]


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9710/showart_102101.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP