免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9494 | 回复: 11

Sun 服务器如何从逻辑设备名对应到设备的物理名(位置),比如硬盘? [复制链接]

论坛徽章:
0
发表于 2016-01-06 20:59 |显示全部楼层
本帖最后由 denpan 于 2016-01-06 21:11 编辑



比如系统里有一块硬盘坏了发生很多读写错误,外观上又没有黄灯告警,这时我怎么找出是哪一块硬盘?

我看了“Mapping Between Logical and Physical Device Names on Sun”  ,依照这个文档,我没有得出硬盘的槽位:

#prtconf -vp | grep /pci@0,600000/pci@0/pci@8/pci@0/scsi@1/disk@1  
        boot-device:  '/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/disk@1,0:h /pci@0,600000/pci@0/pci@8/pci@0/scsi@1/disk@0,0:h'


不知道怎么回事,摸索了好久也没明白,大神们能说说思路吗?


论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
发表于 2016-01-07 09:24 |显示全部楼层
本帖最后由 东方蜘蛛 于 2016-01-07 09:24 编辑

回复 1# denpan


    机器型号?不同款机器的硬盘物理路径都有不同,以后提问记得描述全面点。。。。

论坛徽章:
3
2015年辞旧岁徽章
日期:2015-03-03 16:54:15操作系统版块每日发帖之星
日期:2016-01-21 06:20:00操作系统版块每日发帖之星
日期:2016-08-11 06:20:00
发表于 2016-01-07 11:36 |显示全部楼层
这个只能说明你还是菜鸟

论坛徽章:
3
2015年辞旧岁徽章
日期:2015-03-03 16:54:15操作系统版块每日发帖之星
日期:2016-01-21 06:20:00操作系统版块每日发帖之星
日期:2016-08-11 06:20:00
发表于 2016-01-07 11:36 |显示全部楼层
最简单的你可以DD读一下这个盘

论坛徽章:
0
发表于 2016-01-07 15:46 |显示全部楼层
回复 2# 东方蜘蛛


    版主好,我不是具体问哪个型号,我是想知道这种对应的方法;难道型号不一样,去对应的方法也不一样吗?

论坛徽章:
0
发表于 2016-01-07 15:47 |显示全部楼层
回复 4# 119beyond


    是啊,才刚摸sun的设备一两个月,很多都不清楚;您说的这个 DD  是什么意思?

论坛徽章:
3
2015年辞旧岁徽章
日期:2015-03-03 16:54:15操作系统版块每日发帖之星
日期:2016-01-21 06:20:00操作系统版块每日发帖之星
日期:2016-08-11 06:20:00
发表于 2016-01-08 10:27 |显示全部楼层
iostat -En
可以看一下有多少hard报错,soft报错
在用dd命令读盘,就会点亮故障硬盘

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
发表于 2016-01-08 11:58 |显示全部楼层
系统日志会记录每个报错坏块的物理磁盘路径,和format对比下就知道是哪个盘了。。。。

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-01-15 06:20:00
发表于 2016-01-12 11:57 |显示全部楼层
比如说:
root@s10:~# iostat -E
sd3       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST914602SSUN146G Revision: 0603 Serial No: 081695JX6F
Size: 146.81GB <146810536448 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 4 Predictive Failure Analysis: 0 Non-Aligned Writes: 0
sd4       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: TSSTcorp Product: CD/DVDW TS-T632A Revision: SR03 Serial No:  
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 6 Predictive Failure Analysis: 0 Non-Aligned Writes: 0
sd5       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST930003SSUN300G Revision: 0868 Serial No: 0949702LGW
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 3 Predictive Failure Analysis: 0 Non-Aligned Writes: 0
sd6       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST930003SSUN300G Revision: 0868 Serial No: 095070FLP7
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0 Non-Aligned Writes: 0
sd7       Soft Errors: 0 Hard Errors: 9 Transport Errors: 20
Vendor: SEAGATE  Product: ST930003SSUN300G Revision: 0868 Serial No: 0950702HRV  --》老的机器可能会在硬盘面板上可以看到SN号
Size: 300.00GB <300000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0 Non-Aligned Writes: 0

另外dmesg 如果能看到有硬盘报错的信息,你记录下来报错的硬盘的路径,然后再跟format 命令比对是哪个硬盘。这个顺序一般是跟物理盘号一致,但也有不一样的。如果你实在无法确定,还是找专业人事上门检测。

root@s10:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c2t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>  bootdisk
          /pci@400/pci@0/pci@8/scsi@0/sd@0,0
       1. c2t1d0 <SEAGATE-ST930003SSUN300G-0868 cyl 46873 alt 2 hd 20 sec 625>
          /pci@400/pci@0/pci@8/scsi@0/sd@1,0
       2. c2t2d0 <SEAGATE-ST930003SSUN300G-0868 cyl 46873 alt 2 hd 20 sec 625>
          /pci@400/pci@0/pci@8/scsi@0/sd@2,0
       3. c2t3d0 <SEAGATE-ST930003SSUN300G-0868-279.40GB>

          /pci@400/pci@0/pci@8/scsi@0/sd@3,0  ---->> 与dmesg 报错的盘路径比对。

论坛徽章:
0
发表于 2016-01-16 18:23 |显示全部楼层
本帖最后由 denpan 于 2016-01-16 18:24 编辑

回复 9# lem0

好的,您的意思我明白了;主要是对比dmesg的报错信息。

不过  /pci@400/pci@0/pci@8/scsi@0/sd@3,0    这种路径我能在handbook里查到是面板上的slot几吗?  我这边机房里的sun设备外观上都没有sn,拔盘了才能看到;

谢谢大哥。


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP