Chinaunix

标题: [原创]浅谈lsdev中的Location code与lscfg中的Location Code异同 [打印本页]

作者: oragri    时间: 2009-05-27 19:35
标题: [原创]浅谈lsdev中的Location code与lscfg中的Location Code异同
本人学习AIX的设备管理时发现lsdev命令显示Location Code与用lscfg命令时看到的Location Code 表达方式不同,为了搞清楚这两者之间的区别,花了大量时间查阅相关资料,现将研究结果记录下来,以方便大家学习。
     lsdev中的Location Code格式为“AB-CD-EF-GH(G,H)"(这里的Location Code是odm中CuDr类里的Location字段),在网址http://publib.boulder.ibm.com/infocenter/systems/scope/hw/index.jsp上搜索"Location Code"时竟然找不到有关这种格式的资料,但是找到的是有关类拟格式"Utttt.mmm.sssssss-A1"的Location Code(这种格式是要用lscfg才能看到的结果,不知道在odm里有没有相应的字段与这种格式对应,还是这种信息保存在其他文件),在这里,有明确的关于Physical Location Code和Logical Location Code的解释,这里的Logical Location Code也包含在格式"Utttt.mmm.sssssss-A1"里面。(刚开始以为:“AB-CD-EF-GH(G,H)"这种格式是Logical Location Code,原来这种想法是错误的。)
      但是在网址http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp里又能找到格式“AB-CD-EF-GH(G,H)"的解释,如附件图1:

接着点击图1中的这个网址(附件图2所示)
又能跳转到格式"Utttt.mmm.sssssss-A1"的Location Code,其实这里跳转到的网址就是第一次查找Location Code找不到格式“AB-CD-EF-GH(G,H)"的那个网址。
      仔细比较上面两个网址及其页面内容,发现第一次查找的的infocenter是比较新的,里面有关于Power 6,Power 5,P690(Power 4),F80,M80等机器的文档,而第二次查找的infocenter里只有P690(Power 4)及以下机器的的资料。
     因此我作出以下推断(没有相应官方资料证明我的这个想法),如果有谁知道的,还烦请告知。
   推断:lsdev命令的Location Code格式在Power 5以后IBM已经不再推荐使用了(也就是说Power 5采用了新的Location Code标识方法,即格式"Utttt.mmm.sssssss-A1"),但是为了兼容原来的系统,IBM还是保留了lsdev中的Location Code标识方法。P690以前的机器基本上靠这种老方法定位物理设备,这种方法需要去查找service guide,而Power 5以后采用格式"Utttt.mmm.sssssss-A1"的标识方法,比较方便,这也许是Power 5以后IBM不再提供service guide的原因之一吧。
   注:P615系列的机器lscfg也有接近格式"Utttt.mmm.sssssss-A1"的Physical Location Code,但是格式还没有那么完善。

例如:

PLATFORM SPECIFIC
  Name:  IBM,7029-6E3
    Model:  IBM,7029-6E3
    Node:  /
    Device Type:  chrp
      Platform Firmware:
        ROM Level.(alterable).......3F041029      
        Version.....................RS6K
        System Info Specific.(YL)...U0.1-P1-X1/Y1
      Physical Location: U0.1-P1-X1/Y1
      System Firmware:
        ROM Level.(alterable).......RG041029_d79e00_regatta
        Version.....................RS6K
        System Info Specific.(YL)...U0.1-P1-X1/Y2
      Physical Location: U0.1-P1-X1/Y2

    本人愚见,还望大家多发表自己的看法。

[ 本帖最后由 oragri 于 2009-5-27 21:13 编辑 ]
作者: 我老婆黑社会    时间: 2009-05-28 01:52
你自己命令没写全:
H70中:
#lsdev -Ccdisk -F "name class location physloc"
hdisk0 disk 10-88-00-11,0 P2/Z2-AB
P52A中:
#lsdev -Ccdisk -F "name class location physloc"
  hdisk0 disk 04-08-00-5,0 U787F.001.DPM5A8N-P1-T10-L5-L0
  hdisk1 disk 04-08-00-8,0 U787F.001.DPM5A8N-P1-T10-L8-L0

AB-CD-EF-G,H都是设备在AIX操作系统ODM中的location code (p4,p5)
P2/Z2-AB  指示设备在机器上具体的物理位置(p4机器)
Utttt.mmm.sssssss-A1 是在info center 中的logic location code(p5机器)
   我们可以通过Utttt.mmm.sssssss-A1在info center中查到该设备在主机中的确切的物理位置

[ 本帖最后由 我老婆黑社会 于 2009-5-28 02:08 编辑 ]
作者: brucewoo    时间: 2009-05-28 13:33
不错,学习一下.
作者: AIX深入敌后    时间: 2009-05-30 14:14
值得学习 深入研究




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2