磁带机恢复AIX操作系统方案
系统不能启动后必须由终端进行启动控制,一般IBM服务器都有串口终端,但是必须有IBM的串口线才能登陆到系统,以下是IBM串口线的做法:
(我们这里讨论的是DB9 也就是9 针的串口,因为这是我们最常用到的规格), 我们知道,DB9 串口线分为两种:标准的RS232 接法和交叉RS232 接法,一般来说我们需要用到串口时很可能就是需要登陆到小机上进行操作,比如系统设置和安装AIX 等待,那我们用到的就是交叉的RS232 接法了(其实我们在发的工具箱里面能看到有根串口线,但是似乎是按照标准接法做的,各位兄弟可以Check 一下是不是这样^_^),我们来看看DB9 头的针脚定义: 9 针串口功能一览表 针脚 功能
1 载波检测 (DCD) 2 接收数据 (RXD) 3 发送数据(TXD)
4 数据终端准备好 (DTR) 5 信号地 (GND)
6 数据准备好 (DSR) 7 发送请求 (RTS) 8 发送清除 (CTS) 9 振铃指示 (RI)
知道了其功能做起来就很简单了,我们在制作时将发送段和接收段的对调,也就 是发送脚接到对方的接收段即可,也就是: 2 —— 3 3 —— 2 4 —— 6 1 5 —— 5 1 6 —— 4 7 —— 8 8 —— 7 9 空脚
这里有一点要特别注意的是,1 和6 脚一定要短接后和对方的4 脚相连,不然 有可能造成无法通讯的故障(这应该是IBM 做的一个定义,因为在其他品牌设 备上并不需要这样的接法),我在做到这里的时候做过测试,发现确实无法实现 通讯。
附颜色与引脚的关系(不知道此关系有没有通用性):
1 黑,2 棕,3 红,4 橙,5 黄,6 绿,7 蓝,8 紫,9 白。 至此, 我们的超级串口线就做好了
2. 配置终端
将终端线连入到IBM服务器COM1 口。 串口配置如下
Baud rate: 9600 Data bits: 8 Parity: None Stop bits:1
DTR/DSR、RTS/CTS、XON/XOFF都不用选上
3. 恢复操作
1. 将服务器通电但不开机:
2. 通过终端连入到主机中可以看到以下界面:
Service Processor Firmware Version: 3R080425
Copyright 2001, IBM Corporation 10B716C
________________________________ MAIN MENU
1. Service Processor Setup Menu 2. System Power Control Menu 3. System Information Menu 4. Language Selection Menu 5. Call-In/Call-Out Setup Menu 6. Set System Name 99. Exit from Menus
3. 选择2,进入System Power Control Menu SYSTEM POWER CONTROL MENU
1. Enable/Disable Unattended Start Mode: Currently Disabled
2. Ring Indicate Power-On Menu
3. Reboot/Restart Policy Setup Menu 4. Power-On System 5. Power-Off System
6. Enable/Disable Fast System Boot: Currently Fast Boot
7. Boot Mode Menu
98. Return to Previous Menu 99. Exit from Menus
4. 选择4. Power-On System ,启动服务器后系统会进入如下提示 Please wait....
System Powering On. Exiting menus.
9101 9022 90FD 9102 9103 9104 9105 9119 9106 9107 9200 9400 9108 9250 9251 9202 9400 9109 9301 9302 9400 910A 910B 910C 96C3 96C4 910D 96C2 910E 96C6 910F 9501 950B 9506 911D 9110 9111 9112 9113 96C7 96E1 96E2 9114 911E
9115 9116 911F 9117
26020010
5. 当出现以下菜单时按1进入SMS管理模式:
1 = SMS Menu 5 = Default Boot List 6 = Stored Boot List 8 = Open Firmware Prompt
memory keyboard network scsi speaker
pSeries Firmware
Version RG080425_d79e22_regatta
SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved.
------------------------------------------------------------------------------- Main Menu
1. Select Language
2. Change Password Options 3. View Error Log
4. Setup Remote IPL (Initial Program Load) 5. Change SCSI Settings 6. Select Console
7. Select Boot Options
如果有必要选择下6,即设置当前终端为默认终端。
------------------------------------------------------------------------------- Navigation Keys:
X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:6
Press 0 to select this console as the active console 26020010
1 = SMS Menu 5 = Default Boot List 6 = Stored Boot List 8 = Open Firmware Prompt
memory keyboard network scsi speaker
pSeries Firmware
Version RG080425_d79e22_regatta
SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved.
------------------------------------------------------------------------------- Main Menu
1. Select Language
2. Change Password Options 3. View Error Log
4. Setup Remote IPL (Initial Program Load) 5. Change SCSI Settings 6. Select Console
7. Select Boot Options
7. 选择好终端后系统又会回到SMS管理界面这时选择7. Select Boot Options,后进入到如下菜单:
------------------------------------------------------------------------------- Navigation Keys:
X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:7
pSeries Firmware
Version RG080425_d79e22_regatta
SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved.
------------------------------------------------------------------------------- 1. Select Install or Boot Device 2. Configure Boot Device Order 3. Multiboot Startup ------------------------------------------------------------------------------- Navigation keys: M = return to Main Menu ESC key = return to previous screen X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:1 8. 选择1. Select Install or Boot Device进入如下界面: .-----------------. | PLEASE WAIT.... | `-----------------' pSeries Firmware Version RG080425_d79e22_regatta SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved. ------------------------------------------------------------------------------- Select Device Type 1. Diskette 2. Tape 3. CD/DVD 4. IDE 5. Hard Drive 6. Network 7. List all Devices 9. 选择2. Tape,使用tape作为启动设备: ------------------------------------------------------------------------------- Navigation keys: M = return to Main Menu ESC key = return to previous screen X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:2 pSeries Firmware Version RG080425_d79e22_regatta SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved. ------------------------------------------------------------------------------- Select Media Type 1. SCSI 2. SSA 3. SAN 4. IDE 5. ISA 6. List All Devices 10. 选择6 .List All Devices,要求系统扫描所有的磁带机设备: ------------------------------------------------------------------------------- Navigation keys: M = return to Main Menu ESC key = return to previous screen X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:1 pSeries Firmware Version RG080425_d79e22_regatta SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved. ------------------------------------------------------------------------------- Select Media Adapter 1. (Integ) U0.1-P2/Z1 /pci@400000000110/pci@2,4/scsi@1 2. (Integ) U0.1-P2/Z2 /pci@400000000110/pci@2,4/scsi@1,1 3. (Integ) U0.1-P2/Z3 /pci@400000000111/pci@2,2/scsi@1 4. List all devices ------------------------------------------------------------------------------- Navigation keys: M = return to Main Menu ESC key = return to previous screen X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:4 以下试验机上系统扫描的的磁带机设备 .-----------------. | PLEASE WAIT.... | `-----------------' check /pci@400000000111/pci@2,2/scsi@1/st@0,0 pSeries Firmware Version RG080425_d79e22_regatta SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved. ------------------------------------------------------------------------------- Select Device Device Current Device Number Position Name 1. - IDE CD-ROM 2. - Ethernet ( loc=Integ:U0.1-P1/E1 ) 3. 1 SCSI 36 GB Harddisk ( loc=Integ:U0.1-P2/Z1-Ab,0 ) 4. - SCSI Tape ( loc=Integ:U0.1-P2/Z3-A0,0 ) ------------------------------------------------------------------------------- Navigation keys: M = return to Main Menu ESC key = return to previous screen X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:4 11.此服务器我们选择4,作为启动磁带设备,后进入到如下菜单 pSeries Firmware Version RG080425_d79e22_regatta SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved. ------------------------------------------------------------------------------- Select Task SCSI Tape ( loc=Integ:U0.1-P2/Z3-A0,0 ) 1. Information 2. Normal Mode Boot 3. Service Mode Boot ------------------------------------------------------------------------------- Navigation keys: M = return to Main Menu ESC key = return to previous screen X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:3 pSeries Firmware Version RG080425_d79e22_regatta SMS 1.3 (c) Copyright IBM Corp. 2000,2003 All rights reserved. ------------------------------------------------------------------------------- Are you sure you want to exit System Management Services? 1. Yes 2. No 12. 选择3..Service Mode Boot后进入到维护模式,然后选1退出SMS模式菜单: ------------------------------------------------------------------------------- Navigation Keys: X = eXit System Management Services ------------------------------------------------------------------------------- Type the number of the menu item and press Enter or select Navigation Key:1 STARTING SOFTWARE PLEASE WAIT... Elapsed time since release of system processors: 13 mins 37 secs ------------------------------------------------------------------------------- Welcome to AIX. boot image timestamp: 20:17 12/22 The current time and date: 04:32:01 05/18/2010 number of processors: 2 size of memory: 2048MB boot device: /pci@400000000111/pci@2,2/scsi@1/st@0,0 kernel size: 14149648; 64 bit kernel ------------------------------------------------------------------------------- ******* Please define the System Console. ******* Type a 1 and press Enter to use this terminal as the system console. Pour definir ce terminal comme console systeme, appuyez sur 1 puis sur Entree. Taste 1 und anschliessend die Eingabetaste druecken, um diese Datenstation als Systemkonsole zu verwenden. Premere il tasto 1 ed Invio per usare questo terminal come console. Escriba 1 y pulse Intro para utilizar esta terminal como consola del sistema. Escriviu 1 1 i premeu Intro per utilitzar aquest terminal com a consola del sistema. Digite um 1 e pressione Enter para utilizar este terminal como console do sistema. HARDWARE SYSTEM MICROCODE Licensed Internal Code - Property of IBM (C) Copyright IBM Corp. 1990, 1994. All rights reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. >>> 1 Type 1 and press Enter to have English during install. 88 Help ? >>> Choice [1]: 1 13. 进入以上界面后选择1 进入到如下安装界面: Welcome to Base Operating System Installation and Maintenance Type the number of your choice and press Enter. Choice is indicated by >>>. >>> 1 Start Install Now with Default Settings 2 Change/Show Installation Settings and Install 3 Start Maintenance Mode for System Recovery 88 Help ? 99 Previous Menu >>> Choice [1]: 3 14. 选择3进入到系统维护维护模式 Maintenance Type the number of your choice and press Enter. >>> 1 Access a Root Volume Group 2 Copy a System Dump to Removable Media 3 Access Advanced Maintenance Functions 4 Erase Disks 5 Install from a System Backup 88 Help ? 99 Previous Menu >>> Choice [1]: 5 Choose mksysb Device Type the number of the device containing the system backup to be installed and press Enter. Device Name Path Name >>> 1 tape/scsi/scsd /dev/rmt0 88 Help ? 99 Previous Menu >>> Choice [1]: 1 15. 选择1 进入到系统维护维护模式界面 System Backup Installation and Settings Either type 0 and press Enter to install with the current settings, or type the number of the setting you want to change and press Enter. Setting: Current Choice(s): 1 Disk(s) where you want to install ...... hdisk0 Use Maps............................. No 2 Shrink File Systems..................... No 3 Import User Volume Groups............... Yes 4 Recover Devices......................... Yes >>> 0 Install with the settings listed above. +----------------------------------------------------- 88 Help ? | WARNING: Base Operating System Installation will | destroy or impair recovery of ALL data on the | destination disk hdisk0. >>> Choice [0]: 0 16. 选择0接受默认恢复设置后系统开始恢复: Installing Base Operating System Please wait... Approximate Elapsed time % tasks complete (in minutes) 0518-307 odmdelete: 1 objects deleted.ating boot image. 0518-307 odmdelete: 6 objects deleted. 0518-307 odmdelete: 1 objects deleted. 0518-307 odmdelete: 0 objects deleted. 87 20 Creating boot image. 17. 在恢复提示的最下方会显示恢复的百分比,恢复完成后系统将重新启动: Licensed Materials - Property of IBM 5765G0300 (C) Copyright International Business Machines Corp. 1985, 2006. (C) Copyright AT&T 1984, 1985, 1986, 1987, 1988, 1989. (C) Copyright Regents of the University of California 1980, 1982, 1983, 1985, 1986, 1987, 1988, 1989. (C) Copyright BULL 1993, 2006. (C) Copyright Digi International Inc. 1988-1993. (C) Copyright Interactive Systems Corporation 1985, 1991. (C) Copyright ISQUARE, Inc. 1990. (C) Copyright Mentat Inc. 1990, 1991. (C) Copyright Open Software Foundation, Inc. 1989, 1994. (C) Copyright Sun Microsystems, Inc. 1984, 1985, 1986, 1987, 1988, 1991. All rights reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. forced unmount of /var Rebooting . . . 18. 系统恢复后只是恢复rootvg中的数据,但是rootvg中的页面空间,文件系统大小还需要重新设置。 因篇幅问题不能全部显示,请点此查看更多更全内容