doc
作者doc·2020-04-12 16:09
项目经理·长春理想

AIX安装基本操作系统安装与调试

字数 3843阅读 1243评论 0赞 8

一、打开计算机或在开机状态下重新启动 (#reboot)
将 AIX 安装盘放入光驱 .
当系统自检 keyboard 通过后 , 按 "5"( 从光驱引导 )
系统提示:
Please define the system Console
后 , 按 "1"( 确认终端 )
系统提示 :
Type a "1" and press Enter to use this terminal as the system console
后按 1( 选择英语为安装语言 )
进入安装程序 , 按系统提示操作 :
选择 “ 2 Chang/show Installation Settings and Install” 其它选项不需改变 , 只需改以下两项:
将安装方式改为 “New and Complete Installation“
选择所要安装系统的 disk
开始 install 。

二、设置终端类型 (TTY)

结束安装后 , 第一次启动时 , 系统提示选择终端类型 , 应选择 ibm3151
用 "root" 登录 , 接着出现系统设置 ( 时间,密码等 ), 直接退出即可
#export TERM=ibm3151 (设置终端类型,否则无法进入 smit )
#smit tty ( 设置终端类型,否则以后启动还会要求选择终端类型 )
选择 chang/show characeristics of a TTY ( 修改 )
修改 ENABLE LOGIN 为 "enable"
修改 TERMINAL type 为 ibm3151
三、 安装 Bundle

#smit easy_install
选择 INPUT device / directory for software 为 [/dev/cd0] (按 F4 选择)
选择 Select a FileSet Bundle 为 Server 及 App-Dev( 有图形设备需选 Graphics-Startup)
四、 选择安装软件

#smit
进入 Software Installation and Maintenance- 〉 Install and Update- 〉 SoftwareInstall and Updata from LATEST Available Software
选择 INPUT device / directory for software 为 /dev/cd0
进入 SOFTWARE to install 选择所需安装的软件
开头有 "@" 符即已安装过
开头有 "+" 符即未安装过
如不装图形终端 , 则以 "X11" 开头的不装
以下必须装 :
bos.compat ( 兼容 AIX 3)
bos.data
bos.dosutil (dos utility)
有关 info,msg 的必须装

五、 设置 TCP/IP

#lsdev -Cc adapter 查看网卡设置 ( 选择 IBM 10/100 Mbps Ethernet PCI Adapter)
#smit tcpip
选择 "Minimum Configuration & Startup"
在 "Available Network Interfaces" 对话框中选择 "en0 Standard Ethernet Network Interface"
注意 : 如有多块网卡 , 根据前面查看的设置 , 选择正确的网卡 , 一般不选 "et0 IEEE 802.3 Ethernet Network Interface"
在 HOSTNAME 中填入所起的主机名 (F50-CMIS).
在 Internet ADDRESS (dotted decimal) 设 IP 地址 (16.54.2.7)
在 Network MASK (dotted decimal) 设掩码 (255.255.255.0)
在 Default GATEWAY Address 设网关
在 Your CABLE Type 选择 "TP"
全部选定后按回车( Enter )运行
六、 设置 VG (卷组)

#smit vg
选择 Add a Volume Group
设置 Volume Grorp Name
设置 Physical partition Size in megabytes(PP 值,一般 2.2G 可设 4 , 4.5G 可设 8 , 9.1G 可设 16)
设置 Physical Volume Names( 选择所需 disk)
全部选定后按回车( Enter )运行
七、 设置 LV (逻辑卷)

#smit lv
选择 Add a Logical Volume
VOLUME GROUP name 中选择 VG name
Logical volume NAME 中填入所起的 LV 的名字
Number of LOGICAL PARTITIONS 中填入 LV 大小 ( 这里的数量为 Logical Partition 数量 , 一块 LP 缺省值等于一块 PP)
全部选定后按回车( Enter )运行
八、 设置 File Systems

#smit
进入 System Storage Management (Physical & Logical Storage)->File Systems->Add/Chang/Show/Delete File Systems->Journaled File System->Add Journaled File System
修改本文件系统块数 (Size of File System) ,一块为 512 Bytes
修改 Mount Point( 为文件系统指定 PATHS, 如 [/oracle])
决定是否在系统启动时自动 Mount 该文件系统
全部选定后按回车( Enter )运行
九、 安装 C 及 C++ 语言

查看 C 安装手册中安装 C 语言所必须先安装的软件 (Software Must be Installed)
#lslpp -l|grep bos.adt.include
#lslpp -l|grep bos.adt.lib
用上述两条命令查看这些文件是否 Comitted
#smit install_latest
将 C/C++ 语言安装盘放入光驱
进入 INPUT device / directory for software 选择 "/dev/cd0 (SCSI Multimedia CD-ROM Drive)" , SOFTWARE to install 按 "F4" ,系统显示选择安装文件
选择以 xlc 开头的所有文件
全部选定后按回车( Enter )运行
十、 连接 7133 磁盘阵列中的磁盘

将 7133 中磁盘连上 ( 具体连接方法可查看 7133/Model600 随机资料 )
注意 :7133 SSA 接口的磁盘为回路连接 , 从主机后 SSA ADAPTER 连出后从另一根线连进 , 此回路中所串联的硬盘即该主机所使用硬盘
#cfgmgr ( 激活系统 , 配置磁盘 )
注意 : 在关机状态下连接后再开系统自动调用 cfgmgr
十一、 系统磁盘热插拔

必须将所需拔出的磁盘中所在 VG 中的 LV(Logical Volume) 与 File System 进行 umount
#lsvg -l datavg ( 查看 datavg 中的详细信息 ).
#df -k ( 查看文件系统的信息 )
#umount /cmis (umount 文件系统 cmis)
#varyoffvg datavg ( 切断 datavg)
#lsvg -o ( 查看当前激活的 VG)
#exportvg datavg.( 输出 datavg)
此时可以拿出该磁盘 ( 该磁盘可以为内置式 ).
将该磁盘放入另外一台主机
#importvg -y datavg hdisk1( 在另外一台主机上键入该命令 ).
十二、备份策略

rootvg 可采用 #smit mksysb 来备份
datavg 中的文件系统可进入 smit->System Storage Management (Physical & Logical Storage)->File Systems->Backup a File System ,选定预备份的文件系统,回车确认即可
datavg 可采用 smit 命令
smit vg->Back Up a Volume Group ,选定预备份的 vg ,回车确认即可

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

8

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广