(转)IBM AIX系统安装

it2022-05-05  124

本文经孤独红尘收集整理,转载请注明出处:http://huxuan713.blog.163.com/< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />

1)系统加电

连接电源后等待服务器自检,当液晶板下方电源指示灯闪亮时为自检通过。按下电源开关电源指示灯长亮,等待一分钟后把第一张操作系统光盘插入光驱。当听到机器有蜂鸣声时按下大键盘上的“5”键,注意敲击键盘是时机要在两声蜂鸣声之间否则无效。如操作成功,则系统从安装介质上引导。

2显示器显示如下信息,要求用户选择主控台

☆☆☆☆Please define the system console☆☆☆☆

      Type F1 and press to use this terminal as the system console.

      Type een 1 druk op enter om deze terminal als de systememconsole

      Skrive tallet 1 og trykk paa enter for aa bruke denne terminalatrion

      Pour definir ce terminal comme console systeme

 

键入<F1>并回车,定义当前设备为主控台。

 

3)语言环境

屏幕上将不断显示一些信息,几分钟后出现画面,要求用户选择安装语言环境

>>>1 Type 1 and press enter to have english during install

 2 Type 2 en druk op enter om tijdens het installern het Nederlands te krijgen

3 Entrez 3 pour effectuer 1 installation en francais

4. Fr Installation in deutscher sprache 4 eingeben und die eingabetaste drcken.

……

 88 Help?

>>> Choice[ 1 ]:

键入”[ 1 ]”后回车,选择语言环境为English

 

4)此后屏幕出现

 

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   (  ):

     这是系统安装和维护的主菜单。我们需要改变一些设置选项再进行基本操作系统的安装;

5)改变安装设置

在上面菜单中,键入[ 2 ],屏幕出现Install and Setting画面:

Installation and a Settings

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 setting:

  Method of installation ……………        Preserve install

  Disk where you want to install……   hdisk0

2 Primary Language Environment setting (AFTER Install):

  Cultural Convention……….           English(< xmlnamespace prefix ="st1" ns ="urn:schemas-microsoft-com:office:smarttags" />United States)

  Language…………………..             English(United States)

  Keyboard…………………..             English(United States)

  Keyboard Type ……………             Default

3 Install Trusted Computing Base     No

>>>0 Install AIX with the current settings listed above

88 Help?

99 Previous Menu

>>>Choice [   ]:

这是系统安装的默认设置,用户应根据需要进行修改。

与此同时,在屏幕的右下角会出现如下的警告信息:

WARNING:Base Operating System installation will destroy

Or impair recovery of ALL data on the destination disk hdisk0

以上是提醒用户安装系统的后果将破坏用户原有的硬盘上的数据。

因为我们是第一次安装所以应选择:完全覆盖安装(New and completeoverwrite),所以键入[ 1 ]:(进入菜单更改安装方式)

6)安装方式的改变

Change Method of Installation

Type the number of your choice and press Enter

1 New and Complete Overwrite

  Overwrites EVERYTHING on the disk selected for installation

  Warning: Only use this method if the disk is totally empty

          Or there is nothing on the disk you want to preserve

2 Preservation Install

  Preserve SOME of the existing data on the disk selected for Installation

  Warning: This method overwrites the user(/user), variable(/var), temporary(/tmp), and  root (/) file systems.

  Other product (application) files and configuration data will be destroyed.

3 Migration Install

  Upgrades and Base Operating System to current release

  Other product (application) files and configuration data will be spared.

88 Help?

99 Previous Menu

>>>Choice [ 2 ]:1

如图所示:键入[ 1 ]将安装方式改为New and complete overwrite

7)选择安装AIX的目的硬盘

Change Disks Where You Want to Install

Type one or more numbers for the disk(s) to be used for installation and press Enter. To cancel a choice, type the corresponding number and press Enter. At least one bootable disk must be selected. The current choice is indicated by>>>.

Size        VG

Name     Location Code    (GB)   Status      Bootable

1 hdisk0   00-01-00-0.0    73.4   rootvg      yes

2 hdisk1   00-01-00-1.0    73.4                no

>>> 0 Continue with choices indicated above

66 Disks not known to Base Operating System Installation

88 Help?

99 Previous Menu

>>> Choice[ 0 ]:1

本文经孤独红尘收集整理,转载请注明出处:http://huxuan713.blog.163.com/

键入[ 1 ],安装到hdisk0

Change Disks Where You Want to Install

Type one or more numbers for the disk(s) to be used for installation and press Enter. To cancel a choice, type the corresponding number and press Enter. At least one bootable disk must be selected. The current choice is indicated by>>>

Size        VG

Name        Location  Code    (GB)    Status  Bootable

>>> 1 hdisk0  00-01-00-0.0     73.4        rootvg  yes

    2 hdisk1  00-01-00-1.0    73.4                no

>>> 0 Continue with choices indicated above

    66 Disks not known to Base Operating System Installation

    88 Help?

    99 Previous Menu

>>> Choice   [ 0 ]:

此时会在hdisk0前出现 “>>>”符号 来表明系统将安装至该硬盘。

选好后选择:[ 0 ]返回上级菜单。

8)选择后显示如下

Installation Settings

Either type 0 or press Enter to install with current setting, or type the number of the setting you want to change and press Enter

1  System Settings

Method of installation………….. New and Complete Overwrite

Disk where you want to Install  . Hdisk0

2  Primary Language Environment Settings (AFTER install)

  Cultural Convention……….              English(United States)

  Language…………………..                English(United States)

  Keyboard…………………..                English(United States)

3  Install Trusted Computing Base  ..     no

0   Install with the settings listed above

88  Help?

99  Choice [ 1 ]:0

如需要对语言键盘进行修改则按“2”回车,进入修改语言菜单;如需让系统支持64位等设置则按“3”回车,进行系统支持设置

9)开始安装

设置完毕选择0 安装即开始,屏幕将显示安装的进行情况。此时,只需耐心等待。BOS安装过程中会提示更换光盘,直至安装完毕。

         Installing Base Operating System

Please wait

Approximate                       Elapsed time

%task completed                   (in minutes)

16                                            1

系统安装完成后,会自动重新启动,并自动进入安装辅助菜单

10)系统配置

BOS安装完成后,进行系统设置,有两种方法,使用Installation Assistant或使用SMIT菜单。

 

l  使用Installation Assistant进行系统配置

基本系统安装完后,第一次启动时会自动进入Installation Assistant(安装帮助)菜单,以便用户进行系统设置;将来用户想使用Installation Assistant菜单对系统进行设置的话需键入# install_assist命令。

此这些工作均可不做,可统一使用下面的SMIT完成。一般只设置时间和root用户密码即可。

需注意的一点是:此时不能用F3或F10键退出,而应该选菜单最后一项,以通知操作系统设置任务已完成;否则,在下次启机时仍会自动进入系统设置画面。

本文经孤独红尘收集整理,转载请注明出处:http://huxuan713.blog.163.com/

使用smit进行系统配置

使用root用户登录

11)安装软件包(bundle)

AIX操作系统第一张盘放入光驱,执行smitty install_bundle,按F4选择cd0然后回车。出现:

INPUT device / directory for software              [/dev/cd0]       

选择App-Dev,并用tab键切换ACCEPT new license agreements?选项为yes回车进行安装,其间会提示换盘。

 

安装完App-Dev之后依照同样方法安装CDE

12)设置root口令

root用户下键入# passwd

# passwd

Changing password for "root"

root's New password: //输入新口令

Re-enter root's new password:// 重新输入新口令

 

13)修改系统时区

键入# smitty chtz (使用# smit chtz可进入图形方式)。

 

      CUT (Coordinated Universal Time) Time Zone                |

 |                                                                          |

  | Move cursor to desired item and press Enter.                             |

 |                                                                          |

  | [MORE...12]                                                              |

  |   (BST11)          Bering Straits            (CUT-11)                    |

  |   (NZST-12)        New Zealand              (CUT+12)                    |

  |   (MET-11)         Solomon Islands          (CUT+11)                    |

  |   (EET-10)         Eastern Australia        (CUT+10)                    |

  |   (JST-9)          Japan                     (CUT +9)                    |

  |   (KORST-9)        Korea                     (CUT +9)                    |

  |   (WAUST-8)        Western Australia         (CUT +8)                    |

  |   (TAIST-8)        Taiwan                    (CUT +8)                    |

  |   (BEIST-8)        Peoples Rep. China        (CUT +8)                    |

  |   (THAIST-7)       Thailand                  (CUT +7)                    |

  | [MORE...8]                                                               |

 |                                                                          |

  | Esc+1=Help              Esc+2=Refresh          Esc+3=Cancel             |

  | Esc+8=Image             Esc+0=Exit             Enter=Do                 |

  | /=Find                  n=Find Next                           

选择Peoples Rep. China并回车

Change Time Zone

 

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

 

                                                        [Entry Fields]

  Time zone                                         BEIST-8

回车

 

14) 修改系统时间

 

键入# smitty date (使用# smit date可进入图形方式)

 

                           Change / Show Day and Time

 

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

 

                                                       [Entry Fields]

  YEAR (00-99)                                      [06]                      #

  MONTH (01-12)                                     [08]                      #

  DAY (01-31)                                       [24]                      #

  HOUR (00-23)                                      [13]                      #

  MINUTES (00-59)                                   [56]                      #

  SECONDS (00-59)                                   [00]                      #

 

 

 

F1=Help             F2=Refresh          F3=Cancel          F4=List

Esc+5=Reset         Esc+6=Command       Esc+7=Edit          Esc+8=Image

Esc+9=Shell         Esc+0=Exit          Enter=Do

将时间修改为当前时间,回车后修改完成。

 

15)安装额外所需的Fileset

root# smitty installpàF4àcd0

                Install Software

 

Type or select a value for the entry field.

Press Enter AFTER making all desired changes.

 

                                           [Entry Fields]

* INPUT device / directory for software      []                    

 

 

 

 

 

 

 

F1=Help        F2=Refresh        F3=Cancel       F4=List

Esc+5=Reset    Esc+6=Command     Esc+7=Edit      Esc+8=Image

Esc+9=Shell    Esc+0=Exit        Enter=Do  

选择/dev/cd0

 

 

                        Install Software                      

                                                              

Type or select values in entry fields.                        

Press Enter AFTER making all desired changes.                 

                                                              

                                               [Entry Fields] 

* INPUT device / directory for software             /dev/cd0  

* SOFTWARE to install                              [          

  PREVIEW only? (install operation will NOT occur)  no        

  COMMIT software updates?                          yes       

  SAVE replaced files?                              no        

  AUTOMATICALLY install requisite software?         yes       

  EXTEND file systems if space needed?              yes       

  OVERWRITE same or newer versions?                 no        

  VERIFY install and check file sizes?              no        

  Include corresponding LANGUAGE filesets?          yes       

  DETAILED output?                                  no        

  Process multiple volumes?                         yes       

  ACCEPT new license agreements?                    no        

  Preview new LICENSE agreements?                   no        

                                                              

F1=Help       F2=Refresh       F3=Cancel     F4=List          

Esc+5=Reset   Esc+6=Command    Esc+7=Edit    Esc+8=Image      

Esc+9=Shell   Esc+0=Exit       Enter=Do                       

这时应该根据应用需要来选择安装需要的Fileset。切记本操作应该在update之前完成。如果后期通过光盘安装过其他的Fileset请从新进行update操作。

在此我为oracle安装相应的软件包:                               

Bos.adt.base   bos.adt.lib  bos.adt.libm  bos.adt.prof  bos.perf.libperfstat

Bos.perf.perfstat  bos.perf.proctools  rsct.basic.rte  rsct.compat.clients.rte

Xlc.aix.rte  xlc.rte  bos.cifs_cifs.rte

 

 

16)安装系统补丁

ibm网站上下载最新的补丁集,使用smit菜单安装系统补丁。

# smitty update_all

       Update Installed Software to Latest Level (Update All)

 

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

 

                                                [Entry Fields]

* INPUT device / directory for software            ./

* SOFTWARE to update                               _update_all

  PREVIEW only? (update operation will NOT occur)  no             

  COMMIT software updates?                         yes            

  SAVE replaced files?                             no             

  AUTOMATICALLY install requisite software?        yes            

  EXTEND file systems if space needed?             yes            

  VERIFY install and check file sizes?             no              

  DETAILED output?                                 no             

  Process multiple volumes?                        yes            

  ACCEPT new license agreements?                   yes            

  Preview new LICENSE agreements?                  no             

 

 

 

F1=Help      F2=Refresh     F3=Cancel   F4=List           

Esc+5=Reset  Esc+6=Command  Esc+7=Edit  Esc+8=Image       

Esc+9=Shell  Esc+0=Exit     Enter=Do    

 

17)设置登陆用户数、用户进程数

设置OS 允许的最大登陆用户数、单用户最大进程数:

# smitty chgsys

       Change / Show Characteristics of Operating System

 

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

 

[TOP]                                         [Entry Fields]

  System ID                               0X03708090BA0C7B00

  Partition ID                              0X03708090BA0C7B00

  Maximum number of PROCESSES allowed per user       [2048]            

  Maximum number of pages in block I/O BUFFER CACHE  [20]              

  Maximum Kbytes of real memory allowed for MBUFS    [0]               

  Automatically REBOOT system after a crash           true             

  Continuously maintain DISK I/O history              false            

  HIGH water mark for pending write I/Os per file    [0]              

  LOW water mark for pending write I/Os per file     [0]               

  Amount of usable physical memory in Kbytes          1048576

  State of system keylock at boot time                normal

  Enable full CORE dump                               false            

  Use pre-430 style CORE dump                         false            

[MORE...13]

 

F1=Help     F2=Refresh    F3=Cancel    F4=List

Esc+5=Reset Esc+6=Command Esc+7=Edit   Esc+8=Image

Esc+9=Shell Esc+0=Exit    Enter=Do            

 

18)配置主机解析顺序

vi /etc/netsvc.conf

hosts = local,bind,nis

 

19)OS 基本分区调整(rootvg)

由于系统默认安装完毕后各个分区都非常小,很有必要调整各分区的大小,将各个分区都相应加大,以符合应用需要。

调整磁盘空间方法:

1、 root用户:smit lv => Set Characteristic of a Logical Volume =>Increase the Size of a Logical Volume。

2、  在『LOGICAL VOLUME name』中输入需要调整的LV的名称(或者使用“ESC+4”列表选择),在『Number of ADDITIONAL logical partitions』中输入需要增加的LP的个数,再回车即可。

3、  调整后rootvg中LV的大小应该如下所示:

# lsvg –l rootvg

rootvg:

LV NAME      TYPE     LPs   PPs   PVs  LV STATE      MOUNTPOINT

          

          

          

          

          

       

          

          

 

注意:

上面显示的是LP个数,LP的大小可以使用“lsvg rootvg”命令得到,一般是128 MB。PP SIZE:        128 megabyte(s)

调整后使用“df –k”验证文件系统的大小,防止因为LP大小不一致造成没有达到实际要求的大小。

20)镜像rootvg

安装好系统后,系统是单盘运行,为了保证系统的高可靠性,要求系统盘必须进行镜像。

1、检查rootvg的文件系统,如下显示没有做根盘镜像。

# lsvg -l rootvg

rootvg:

LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT

                 

2、根盘镜像

# extendvg rootvg hdisk1  //将硬盘hdisk1加入rootvg中

# mirrorvg –c2 rootvg //对rootvg做镜像

# bootlist –m normal –o hdisk0 hdisk1 //指定硬盘引导次序

# bosboot -a

# chvg –Qn rootvg

# lsvg –l rootvg

rootvg:

LV NAME      TYPE     LPs   PPs   PVs  LV STATE      MOUNTPOINT

          

根据PPs为LPs的两倍,PVs为2,可以判断系统盘已经成功镜像。

3、重启系统使根盘镜像生效

#shutdown –Fr

21)修改系统环境变量

smitty chgsy

在出现的界面中,修改以下两个参数的值:

    

     

修改系统运行参数。它们缺省值为0,在双机环境中一般应设High water mark33,Low water mark24

(解释:磁盘 I/O 调步用于防止那些产生大量输出信息的程序过度使用系统 I/O 设备,从而导致那些对响应时间要求不高的程序性能恶化。磁盘 I/O 调步强制每个段或每个文件对于所有的暂挂 I/O 请求标明HIGH water markLOW water mark。当一个进程想要向一个已被标志为HIGH water mark的等待写信号的文件中写入时,进程被置为睡眠状态直至 I/O 设备已使等待写操作的请求数目低于或等于LOW water mark数目。I/O 请求处理的逻辑并未改变。然而从大容量进程中所产生的输出速度将被减缓。)

打开/sbin/rc.boot,查找“syncd”,将其参数修改为20

该值表示刷新内存数据到硬盘的频率,缺省为60,一般可改为20,也可根据实际情况更改

nohup /usr/sbin/syncd 20 > /dev/null 2>&1 &

本文经孤独红尘收集整理,转载请注明出处:http://huxuan713.blog.163.com/

 

22)配置系统的AIO

激活系统中的AIO设备

# smit aio

选择:

Change / Show Characteristics of Asynchronous I/O

在出现的界面中,修改以下参数的值:

STATE to be configured at system restart            available

然后按<Enter>键执行。

23)设置系统参数fullcore

进程一旦运行异常,发生core dump,系统会产生core文件,将发生异常的进程的相关信息收集起来,便于用户进行定位分析。系统参数fullcore决定在进程发生core dump时,是否将数据段一起core dump,即是否将数据段信息收集保存在core文件中。设置为true,则表示将数据段信息保存,设置为false则表示不收集保存。这里要设置为true

smitty-> System Environments-> Change / Show Characteristics of Operating System

将参数Enable full CORE dump的值设置为true

24)调整系统内核参数

设置进程可申请的最大内存数目,以满足系统进程运行时的需求。

打开/etc/security/limits文件,修改其中的data参数的取值。

将“default:”下面中配置项“data”的值修改为fsize = -1 cpu = -1 data = -1stack = -1

。修改后,保存文件。

注意:修改以上内核参数后需要重新启动系统,使上面的设置生效。

25)交换区的设置

1.系统安装好以后默认是rootvg中的hd6,交换区大小可是使用lsps –a查看大小。

# lsvg -l rootvg

rootvg:

LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT

                 

                 

                 

                 

                 

              

               

                 

             

              

 

# lsps -a

  

         

系统默认的交换区太小,需要手工增加交换区。

2.交换区大小的设置应参照内存的大小来调整大小,下表为参照值。

内存大小

交换区大小

内存大小< 4G

内存大小*2

4G<内存大小<6G

6G

内存大小>=6G

6G

使用mkps命令动态增加一个交换区,直接生效,系统不用重启。

rootvg中增加一个交换区,大小为20pp,每个pp=128M,总共2G,命令如下:

     mkps -a -n –s20 rootvg

或使用菜单添加交换区:

     smitty mkps

26)非计算内存的设置

AIX系统中,内存可以简单的分为两类:计算型内存(Comp)和非计算型内存(Noncomp)。类似大量文件类操作,如压缩、数据库的dump/load等操作会大量占用文件型内存。如果按照系统缺省的配置,文件型内存最多会占用到内存总量的80%,由于文件型内存占用并不主动释放,从而可能造成内存资源的短缺及Paging Space使用率过高。

我可以通过以下命令来查看这两个参数的设置

# vmo –a |grep *perm=

maxperm = 196173

            maxperm% = 80

            minperm = 49043

            minperm% = 20

            strict_maxperm = 0

用下面三个命令调整以上参数

vmo -p -o maxclent%=8vmo -p -o maxperm%=12vmo -p -o minperm%=5

AIX 6.1以上系统如无特殊要求无需调整以上参数。

转载于:https://www.cnblogs.com/liujiacai/p/9275762.html

相关资源:AIX安装ORACLE教程(附依赖bos.adt、bos.cifs_fs)

最新回复(0)