系统故障分析和排除.ppt
《系统故障分析和排除.ppt》由会员分享,可在线阅读,更多相关《系统故障分析和排除.ppt(62页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Sun系统及硬件维护培训内容n nOpenBootOpenBoot 的使用的使用n n系统故障分析和排除系统故障分析和排除OpenBoot的使用内容n nOpenBootOpenBoot概述概述n n启动并测试系统启动并测试系统n n设置环境变量设置环境变量n nEmergency ProcedureEmergency Proceduren n建立建立TIPTIP连接连接什么是OpenBoot?n nIEEEIEEE的的Boot FirmwareBoot Firmware标准标准 1275-19941275-1994n n独立于处理器设计独立于处理器设计n n开机后立即执行开机后立即执行n n
2、可升级可升级OpenBoot的基本任务n n测试和初始化系统硬件测试和初始化系统硬件n n确定硬件配置确定硬件配置n n从网络或磁盘设备引导操作系统从网络或磁盘设备引导操作系统n n提供交互式的软硬件调试工具提供交互式的软硬件调试工具设备树n n设备通过总线连接在计算机主机上设备通过总线连接在计算机主机上n nOpenBootOpenBoot 把总线和通过总线互连的设备表示成设把总线和通过总线互连的设备表示成设备树上的节点备树上的节点设备路径、地址和参数n n每个设备有唯一的名字,代表设备种类和设备在系统地址每个设备有唯一的名字,代表设备种类和设备在系统地址结构中的位置结构中的位置n n全路径
3、设备名(物理设备名)是用全路径设备名(物理设备名)是用“/”/”分割的一系列节分割的一系列节点名点名n n设备树的根及机器本身,表现为设备树的根及机器本身,表现为“/”/”n n每个节点名的形式:每个节点名的形式:driver-driver-nameunitnameunit-address:device-arguments-address:device-arguments egeg:sd6,0:a:sd6,0:a设备树、地址和参数n ndriver-namedriver-name 包含包含1-311-31位字母或数字,区分大小写。位字母或数字,区分大小写。符号放在地址信符号放在地址信息之前息之
4、前 le lance le lance ethernetethernet sdsd scsiscsi disk disk,cdromcdrom st st scsiscsi tape tape设备路径、地址和参数n nunit-addressunit-address 一个字符串,代表其在父节点设备的地址空间中的物理位一个字符串,代表其在父节点设备的地址空间中的物理位置。字符串的格式与总线有关。置。字符串的格式与总线有关。n ndevice-argumentsdevice-arguments 一个字符串,其格式与具体的设备有关。它可以用来给设一个字符串,其格式与具体的设备有关。它可以用来给设备的
5、软件传递更进一步的信息。备的软件传递更进一步的信息。设备路径、地址和参数Example:Example:/sbus1f,0/esp0,4000/sd3,0:a/sbus1f,0/esp0,4000/sd3,0:an nSbus&SUNW,fas&sdSbus&SUNW,fas&sd为为driver-namedriver-namen n1f,01f,0代表主系统总线上的一个地址,因为在这个例子中代表主系统总线上的一个地址,因为在这个例子中sbussbus直接与主系直接与主系统总线相连统总线相连n n0,4000 0,4000 SbusSbus插槽号插槽号(0)(0)和一个偏移量和一个偏移量(40
6、00),(4000),因为因为espesp设备在设备在SbusSbus 0 0 号插号插槽的卡上的地址偏移量为槽的卡上的地址偏移量为40004000n n3,03,0是是SCSISCSI设备号和逻辑单元号,因为磁盘连在设备号和逻辑单元号,因为磁盘连在SCSISCSI总线上的设备号总线上的设备号为为3 3,逻辑单元号为,逻辑单元号为0 0浏览设备树的命令show-show-devsdevs.properties.properties(查看设备特性)(查看设备特性)cdcd/cdcd device-name device-namepwdpwdwords words (查看本节点的访问方法)(查看本
7、节点的访问方法)see see wordnamewordname设备别名n nA shorthand representation of a A shorthand representation of a device pathdevice path Example:/sbus1f,0/esp0,4000/sd3,0:a Example:/sbus1f,0/esp0,4000/sd3,0:an ndevaliasdevalias command command devaliasdevalias devaliasdevalias aliasalias devaliasdevalias alias
8、 device-pathalias device-path nvaliasnvalias alias device-pathalias device-path nvunaliasnvunalias aliasaliasGetting Helpn nHelpHelp command command help list main help categorieshelp list main help categories help categories show help for all commands in the category.help categories show help for a
9、ll commands in the category.Use only the first word of the category description.Use only the first word of the category description.n nHelp is available only for commands that are used Help is available only for commands that are used frequency.frequency.使用一些OpenBoot命令时要注意n n操作系统开始运行后,操作系统开始运行后,Open
10、BootOpenBoot运行有可能不正确运行有可能不正确n n解决办法解决办法 1 1、用、用printenvprintenv 查看查看auto-boot?auto-boot?的值。如果为的值。如果为truetrue,用,用setenvsetenv 把把 它设置成它设置成falsefalse 2 2、用、用resetreset复位系统复位系统 3 3、当系统停在、当系统停在okok状态下时,执行用户命令状态下时,执行用户命令 4 4、用、用setenvsetenv把把auto-boot?auto-boot?重新设置成重新设置成truetrue 5 5、Reset the systemReset
11、 the system引导和测试系统经常用经常用OpenBootOpenBoot命令做的工作命令做的工作n n引导系统引导系统n n运行系统自检运行系统自检n n显示系统信息显示系统信息n n复位系统复位系统引导系统n n引导参数引导参数 auto-boot?boot-commandauto-boot?boot-command diagdiag-switch?boot-device-switch?boot-device boot-file boot-file diagdiag-device-device diagdiag-file-filen nBoot processBoot process
12、 auto-boot?=auto-boot?=true/falsetrue/falsen nBoot CommandBoot Command ok boot device-ok boot device-specifierargumentsspecifierarguments Boot命令的可选参数n ndevice-device-specifierspecifier cdromcdrom disk disk net netn nargumentsarguments 如果没给出如果没给出argumentsarguments并且并且diagdiag-switch?-switch?为为false,b
13、ootfalse,boot过程使用过程使用 boot-fileboot-file作为作为arguments;arguments;如果没给出如果没给出argumentsarguments并且并且diagdiag-switch?-switch?为为true,boottrue,boot过程使用过程使用 diagdiag-file-file作为作为arguments;arguments;取值:取值:-v a r s.-v a r s.诊断测试命令n nProbe-Probe-scsiscsi Identify devices attached to a SCSI busIdentify devices
14、 attached to a SCSI busn nTest device-Test device-specifierspecifier Execute the specified devices Execute the specified devices selftestselftest methordmethord Ex:test net test the network connection Ex:test net test the network connectionn nWatch-clockWatch-clock Test a clock functionTest a clock
15、functionn nWatch-netWatch-net Mo Monitor a network connectionnitor a network connectionn nNot all of these tests are available in all Not all of these tests are available in all OpenBootOpenBoot implementation.implementation.显示和修改参数设置n nprinetenvprinetenv Display current variables and current defaul
16、t valuesDisplay current variables and current default valuesn nprinetenvprinetenv variablevariable shows the current value of the named shows the current value of the named valiablevaliablen nsetenvsetenv variable variable valusevaluse set set variablevariable to the given decimal or text to the giv
17、en decimal or text valuevalue(changes are permanent,(changes are permanent,but often take effect only after a reset)but often take effect only after a reset)显示和修改参数设置n nSet-default Set-default variablevariable reset the value of reset the value of variablevariable of the factory default of the facto
18、ry defaultn nSet-defaultsSet-defaults reset variable values to the factory defaultreset variable values to the factory defaultn nPasswdPasswd set security-passwordset security-passwordn n操作系统命令操作系统命令#eepromeeprom variable=value variable=value#eepromeeprom“variable=value”“variable=value”Setting secur
19、ity valiablesn nsecurity-modesecurity-mode full all commands except for go require the full all commands except for go require the passwdpasswd command all commands except for boot and go require the command all commands except for boot and go require the passwdpasswd none no password require(defaul
20、t)none no password require(default)n nsecurity-password security-password n nsecurity-#security-#badloginsbadlogins 保存错误输入口令的次数保存错误输入口令的次数Using nvramrcn nIts contents are called the scriptIts contents are called the scriptn nStore user-defined commands executed during start-upStore user-defined comm
21、ands executed during start-up device driver to save start-up variables;device driver to save start-up variables;define installation-specific device configuration and device aliases define installation-specific device configuration and device aliases n nCommands are stored in ASCII,just as the user w
22、ould Commands are stored in ASCII,just as the user would type them at the consoletype them at the console相关参数和命令:相关参数和命令:use-use-nvramrcnvramrc?nveditnvedit nvstorenvstore nvquitnvquit nvrunnvrun 等等Using nvramrcExampleExampleok ok nveditnvedit0:hello (-)0:hello (-)1:.“Hello,world.”1:.“Hello,world.”c
23、rcr2:;2:;3:C3:Cok ok nvstorenvstoreok ok setenvsetenv use-use-nvramrcnvramrc?True?Trueok reset-allok reset-allok hellook helloHello,world.Hello,world.okokEmergency Proceduresn nStopStop 跳过跳过POSTPOST(只适用于设成诊断模式时)。(只适用于设成诊断模式时)。This command does not depend This command does not depend on the security-
24、mode.on the security-mode.n nStop-AStop-A 退回到监控状态的缺省提示符退回到监控状态的缺省提示符okokn nStop-DStop-D 进入诊断模式(进入诊断模式(set set diagdiag-switch?to true)-switch?to true)n nStop-FStop-F 在监控在监控probeprobe设备之前进入设备之前进入OpenBootOpenBoot monitor.(useful if hardware is broken)monitor.(useful if hardware is broken)n nStop-NStop
25、-N 把把NVRAMNVRAM的内容设为缺省值的内容设为缺省值 建立TIP连接n nConnect the Sun workstation TTYB serial port to your SPARC system Connect the Sun workstation TTYB serial port to your SPARC system TTYA serial port using a serial connection cable.TTYA serial port using a serial connection cable.n nAt the Sun workstation,ed
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 系统故障 分析 排除
限制150内