AIX6.1.07安装和配置1.1安装基本操作系统由于主机出厂时未安装操作系统,需自行安装操作系统。
1.将AIX 6.1.7 光盘插入光驱。
2.将IBM小型机启动,在终端上出现图形时按1或F1 键,等待系统自检后由光盘引导。
3.选择console主控台、安装语言。
4.在下图中选择2。
5.在下图中选择1。
Either type 0 and press Enter to install with current settings , or type the number of the setting you want to change and press Enter .1. System SettingsMethod of Installation ------------- MigrationDisk Where You Want to Install ------ Hdisk02. Primary Language Environment Settings ( AFTER Install ):Cultural Convention ---------------- English ( United States )Language --------------------------- English ( United States )Keyboard --------------------------- English ( United Stats )Keyboard Type----------------------- Default3. Install Tursted Computing Base ---------------------- no0 Install AIX with the current setting listed above.88 Help ?99 Previous Menuchoice : [ 1 ]6.在下图中选择1。
7.在下图中选择1,然后选择0。
8.在下图中选择3,并将第4、5行置为YES。
9.在下图中选择0Installation and SettingsEither type 0 and press Enter to install with current settings , or type the number of the setting you want to change and press Enter .1. System SettingsMethod of Installation -------------- New and Complete OverwriteDisk Where You Want to Install ------- Hdisk02. Primary Language Environment Settings ( AFTER Install ):Cultural Convention ----------------- English ( United States )Language ---------------------------- English ( United States )Keyboard ---- ----------------------- English ( United Stats )Keyboard Type ------------------------ Default3. Install Tursted Computing Base ---------------------- no>>>0 Install AIX with the current setting listed above.88 Help ?99 Previous Menuchoice : [ 0 ]10.下图显示开始安装AIX5.3的BOS。
1.2安装文件集1.2.1安装文件集根据下表选择需要的文件集。
bos.databos.perf*bos.adt.* (*代表所有包)rsct.*安装方法如下:1.在下图中选择第1项。
2.在下图中,将ACCEPT new license agreements选项置为yes ,将COMMITsoftware updates选项设置为yes。
将光标移到SOFTWARE to install项中,按F4键。
Install and Update from LATEST Available SoftwareType or select values in entry fields .Press Enter AFTER making all desired changes .[ EntryFields ]* INPUT device / directory for software /dev/cd0 * SOFTWARE to install [_all_latest]PREVIEW only ? ( install operation will NOT occur ) no COMMIT software updates ? yes SA VE replaced files ? yes AUTOMATICALLY install requisite software ? yes EXTEND file systems if spacs needed ? yes OVERWRITE same or newer versions ? yes VERIFY install and check file sizeds ? no Include corresponding LANGUAGE filesets ? no DETAILED output ? no Process multiple volumes? yes ACCEPT new license agreements? yes Preview new LICENSE agreements? no1.3客户化配置1.3.1文件系统调整#smit chfsChange / Show Characteristics of an Enhanced Journaled File System 调整后的文件系统为/ 5Ghome 10Gusr 10Gvar 5Gtmp 5G1.3.2调整swap空间System Storage Management (Physical & Logical Storage)Logical Volume ManagerPaging SpaceChange / Show Characteristics of a Paging SpaceRESTARTED?1.3.3做硬盘的镜像如果需要做硬盘的镜像,参考下列脚本:●把镜像盘hdisk1加入到rootvg,命令:extendvg rootvg hdisk1●镜像rootvg,命令:mirrorvg -c 2 rootvg hdisk1●重新生成boot image,命令:bosboot -ad /dev/hdisk0bosboot -ad /dev/hdisk1●更新bootlist,命令:bootlist -m normal cd0 hdisk0 hdisk1●重新启动shutdown –Fr2HACMP6.1安装和配置2.1设计规划2.1.1/etc/hosts文件设计两台主机的hosts添加同样内容2.2实施前提2.2.1创建Concurrent VGcommdb1做如下操作:# lspvhdisk0 00c287f440af5452 rootvg active hdisk1 00c287f415b7be8b rootvg active hdisk2 none Nonehdisk3 none Nonehdisk4 none None# smitty mkvgchdev -l hdiskpower0 -a pv=yesksjzdb2做如下操作:# smitty vgImport a V olume Group2.2.1.1 编写应用服务器启动停止脚本在/usr /目录下建立生成start.sh和stop.sh两个文件,赋予可执行的权限。
2.2.1.2 配置非TCP/IP网络一般常用的非TCP/IP网络为串口卡或者是磁盘,我们以常用的串口心跳配置为例介绍如何配置HACMP中非TCP/IP网络。
首先确认串口卡之间的连接无误,创建串口设备:#smitty mktty选择tty设备的类型“tty rs232 Asynchronous Terminal“,系统提示:* PORT number [0]Enable LOGIN disableBAUD rate []PARITY [none]BITS per character [8]Number of STOP BITS [1]TIME before advancing to next port setting [0]TERMINAL type [dumb]FLOW CONTROL to be used [xon]OPEN DISCIPLINE to be used [dtropen]STTY attributes for RUN time[hupcl,cread,brkint,icrnl,opost,tab3,onlcr,isig,icano>STTY attributes for LOGIN [hupcl,cread,echoe,cs8]LOGGER name []STATUS of device at BOOT time [available]TRANSMIT buffer count []RECEIVE trigger level []STREAMS modules to be pushed at OPEN time [ldterm]INPUT map file [none]OUTPUT map file [none]……“Port Number”一项,填入“0”,回车即可,其他值接受默认值。
在另外的节点上,同样创建tty设备,其参数设置如上即可。
测试tty设备之间是否能够通讯,在节点data1上执行:#cat /etc/hosts >/dev/tty0在节点data2上执行:#cat < /dev/tty0如果能够看到/etc/hosts文件的内容,说明节点间tty设备能够正常通讯,否则检查连接的线路,重新插拔测试。