aix系统管理手册.doc

合集下载

IBM AIX命令手册:IBM MQ管理、安装和卸载说明书

IBM AIX命令手册:IBM MQ管理、安装和卸载说明书

Summary of AIX commands to administrate MQhttps:///support/pages/node/6407842Date last updated: 17-Jun-2021Angel Rivera –*************.comIBM MQ Support+++ Objective +++T o provide the most common AIX commands to administrate, install and uninstall MQ.The organization of the sections is based on what will be the commands to start the installation of MQ from scratch:- ensuring that you have a supported version of AIX: uname, oslevel- create the group “mqm” (mkgroup) and the user “mqm” (mkuser),- unpack the .Z or tar.gz file downloaded from IBM Passport Advantage or IBM Fix Central: gunzip, uncompress, zcat, tar- install/uninstall via installp- querying filesets via lslpp- create (mkusil), list (lsusil), remove (rmusil) a USIL, and- specifying USILs (-R ALL or -R /usr/mqm92) with installp and lslpp++ Update from 17-Jun-2021The AIX command “install -r” that is discussed in this chapter will REJECT all the fix packs installed in the server. If you have only 1 fix pack or if you want to delete at the same time all the fix packs, then the procedure in this chapter is fine.But if you have multiples fix packs and you want to uninstall ONL Y the LATEST one, then you need to use another procedure, which is documented in the article:https:///support/pages/node/6464857Uninstalling only the latest fix pack for MQ in AIX and leaving behind other previous fix packs+++ Related tutorials +++https:///support/pages/node/6405792Customization of an AIX server for using MQ+ Customization of Putty for using Function Key F3 with smitty+ Creating groups and userids+ Downloading, customizing and using the sample scripts+ Customization of bash login for root+ Customization of set-mq-xxx scripts in /usr/local/bin to reflect MQ installations+ Customize the bash login for user "mqm" or the normal user "fulanohttps:///support/pages/node/6407850Installing in AIX - MQ 9.0.0.1 LTS, applying Fix Pack 9.0.0.11, Uninstalling MQChapter 1: How to get the installation imagesChapter 2: Create userid "mqm" and group "mqmChapter 3: Installation of MQ 9.0.0.1 (Installation1 in /usr/mqm)Chapter 4: Setting the environment for MQChapter 5: Creating a test queue manager, quick verification testChapter 6: Installation of the Fix Pack 9.0.0.11Chapter 7: Uninstallation of the Fix Pack 9.0.0.11Chapter 8: Uninstallation of the base 9.0.0.1Chapter 9: Appendices showing full output from installp for the scenarioshttps:///support/pages/node/6415777Upgrading in AIX from MQ 9.0.0.1 to MQ 9.1.0.0 LTSChapter 1: How to get the installation imagesChapter 2: T ake a backup of the queue manager data and recovery logsChapter 3: Uninstalling MQ 9.0Chapter 4: Installing MQ 9.1.0.0 LTSChapter 5: Running setmqenv to use MQ 9.1 commandsChapter 6: Creating a queue manager under 9.1Chapter 7: Upgrading an existing queue manager to MQ 9.1https:///support/pages/node/6415921Installing in AIX - MQ 9.2 LTS to coexist with MQ 9.1 LTS, including applying Fix Packs 9.1.0.7 and 9.2.0.1 Chapter 1: How to get the installation imagesChapter 2: Creating USIL and installing MQ 9.2 side-by-side to MQ 9.1Chapter 3: Need to run setmqenv to use MQ 9.1 or MQ 9.2 commandsChapter 4: Creating a queue manager under MQ 9.2Chapter 5: Migrating an MQ 9.1 queue manager to MQ 9.2Chapter 6: Installing Fix Pack 9.1.0.7 in Installation1 (default location)Chapter 7: Installing Fix Pack 9.2.0.1 in Installation2 (USIL /usr/mqm92)Chapter 8: Uninstallation of MQ 9.2Chapter 9: Deleting the USIL /opt/mqm92https:///support/pages/node/6429607Life cycle for a USIL in AIX for non-default installations of MQ++ Displaying version of operating systemDisplaying the platform and hostname+ROOT+ aglet: /downloads# uname -aAIX aglet 2 7 00F944604C00Displaying the version (high lievel)# oslevel7.2.0.0Displaying the detailed version# oslevel -s7200-05-01-2038+++ Creating group ‘mqm’ and user ‘mqm’The following steps show how to create:- a group “mqm” (gid 202),- a user “mqm” (userid 205),- under /home/mqmLogin as user: rootCreate a group called “mqm” with groupid of 202:mkgroup -'A' id='202' mqmCreate a user also called “mqm” with userid of 205 and who belongs to group “mqm”: mkuser id='205' pgrp='mqm' home='/home/mqm' mqmYou can assign the password:passwd mqmYou can use the command “id” to find out the ids and the group membership:$ id mqmuid=205(mqm) gid=202(mqm) groups=1(staff)+++ How to unpack tar.Z and tar.gz filesWhen you download MQ files from IBM Passport Advantage or IBM Fix Central, there are 2 possible suffixes for the file names:tar.Ztar.gzThe tar options are:-x T o extract members from the archive into the file system.-v T o be verbose about the operation being performed.-f FileArchive T o use the specified file archive as the tar archive.The rest of this section provides more details on how to unpack the files.a) Suffix: tar.ZThe most common ways to unpack this type of files are:a.1) One (1) long compound command (it preserves the file tar.Z)zcat MQ_V9.0_F_AIX_EIMAGE.tar.Z | tar -xvf -The output of zcat is sent to the standard output file (i.e., stdout).This allows the user to decompress the compressed tar file (leaving the compressed file unchanged), and then to expand the tar file to the current directory.The "f -" tar command line option tells the tar command to read its input from the standard input file (i.e., stdin).a.2) T wo (2) simpler commands (the tar.Z is uncompressed, leaving a .tar file) Decompress the file tar.Z by issuing:uncompress MQ_V9.0_F_AIX_EIMAGE.tarThen unpack the file:tar -xvf MQ_V9.0_F_AIX_EIMAGE.tarb) Suffix: tar.gzb.1) One (1) long compound command (it preserves the file tar.gz)gunzip -c IBM_MQ_9.1_AIX.tar.gz | tar -xvf -A common convention is to use the "-c" command line option on the gunzip command so that instead of replacing the tar.gz, the output of the command is sent to the standard output file (i.e., stdout). This allows the user to decompress the compressed tar file (leaving the compressed file unchanged), and expand the tar file to the current directory. The "f -" tar command line option tells the tar command to read its input from the standard input file (i.e., stdin).b.2) T wo (2) simpler commands (the tar.gz is uncompressed, leaving a .tar file) Decompress the file tar.gz by issuing:gunzip IBM_MQ_9.1_AIX.tar.gzThen unpack the file:tar -xvf IBM_MQ_9.1_AIX.tar+++ Creating a USIL to install in a non-default location, such as /usr/mqm92+ Create a dedicated installation directory and designate it as a USILLogin as userid root to create the USIL- Create directory for the USIL.This directory will be designated to be a USIL in a step mentioned later on.# mkdir /usr/mqm92- List the subdirectories that will have the MQ code.Note that /usr/mqm is the default location for Installation1 (in this case,it already has MQ 9.1)# ls -dl /usr/mq*dr-xr-xr-x 20 mqm mqm 4096 Jan 27 07:34 /usr/mqmdrwxr-xr-x 2 root system 256 Jan 27 09:17 /usr/mqm92- So far, we do not have any USI Ls. Let’s verify by issuing the following command:# lsusil(empty)- Make the newly created directory a USIL.Note that the directory will be known as: INSTALL_ROOT_PATH# mkusil -R /usr/mqm92 -c 'MQ 9.2' -Xmkusil: Return Status = SUCCESSWhere:-R /usr/mqm92 => usil location-c comment-X Expands the space needed automatically.- List the USILs and note the new one:# lsusilINSTALL PATH = /usr/mqm92COMMENTS = MQ 9.2- Proceed to use the USIL with installp and lslpp.- If you uninstall MQ from the USIL and if you decide to not use the USIL anymore, then delete it.Please keep in mind that rmusil does not delete the directory structure for the USIL! # rmusil -R /usr/mqm92rmusil: Return Status = SUCCESS- List the USILs (it should show no USILs)# lsusil(empty)- Remove the directory structure that was associated with the USIL:# rm -fr /usr/mqm92+++ Using installp to install and uninstallAfter using “tar -xvf” to unpack the base code to install, you need to go to the newly created directory “MQServer”# cd MQServer++ Install the base code:T o install the base code in the default location /usr/mqm:# installp -acgXYd . all- T o install the base code in a non-default location such as /usr/mqm92# installp -R /usr/mqm92 -acgXYd . allWhere “-R usil” is the path of the User Specified Installation Location (USIL) specified when the product was installed.++ Install the fix pack code on top of an existing installation:T o install the fix pack code in the default location /usr/mqm:# installp -agXYd . all- T o install the fix pack code in a non-default location# installp -R /usr/mqm92 -agXYd . allWhere “-R usil” is the path of the User Specified Installation Location (USIL) specified when the product was installed.++ Reject ALL the Updates (uninstall all the Fix Packs)From the default location:# installp -r "mqm*"From a USIL:# installp -R /usr/mqm92 -r "mqm*"++ Update from 17-Jun-2021The AIX command “install -r” that is discussed in this chapter will REJECT all th e fix packs installed in the server. If you have only 1 fix pack or if you want to delete at the same time all the fix packs, then the procedure in this chapter is fine.But if you have multiples fix packs and you want to uninstall ONL Y the LATEST one, then you need to use another procedure, which is documented in the article:https:///support/pages/node/6464857Uninstalling only the latest fix pack for MQ in AIX and leaving behind other previous fix packs++ Uninstalling the base code:T o uninstall or modify IBM MQ by using installp, enter one of the following commands:- T o uninstall an installation in the default location /usr/mqm:installp -u mqm- T o uninstall an installation in a non-default location:installp -R /usr/mqm92 -u mqmWhere “-R usil” is the path of the User Specified Installation Location (USIL) specified when the product was installed.+++ Using lslpp to list the MQ filesetsa) This is the most comprehensive command to list all the installed MQ filesets ACROSS the different USILs and including the normal location of /usr/mqm.The following shows the output when MQ is not installed at all and there are no USILs. Note that ALL is in UPPERCASE!# lslpp -R ALL -la "mqm.*"+-----------------------------------------------------------------------------+INSTALL ROOT PATH = /+-----------------------------------------------------------------------------+lslpp: 0504-132 Fileset mqm.* not installed.If there are no USILs, then this is the command.In this case, no MQ filesets are installed.# lslpp -la "mqm.*"lslpp: 0504-132 Fileset mqm.* not installed.b) Listing the file sets from the default location /usr/mqm# lslpp -la "mqm*"Fileset Level State Description----------------------------------------------------------------------------Path: /usr/lib/objreposmqm.amqp.rte 9.0.0.1 COMMITTED IBM MQ AMQP Service9.0.0.11 APPLIED IBM MQ AMQP Servicemqm.ams.rte 9.0.0.1 COMMITTED IBM MQ Advanced MessageSecurity9.0.0.11 APPLIED IBM MQ Advanced MessageSecurityc) Listing the file sets for the USIL# lslpp -R /usr/mqm92 -la "mqm*"Fileset Level State Description----------------------------------------------------------------------------Path: /usr/mqm92/usr/lib/objreposmqm.amqp.rte 9.2.0.0 COMMITTED IBM MQ AMQP Servicemqm.ams.rte 9.2.0.0 COMMITTED IBM MQ Advanced - AdvancedMessage Securitymqm.base.runtime 9.2.0.0 COMMITTED IBM MQ Runtime for Client andServerServer+++ References+++ AIX 7.1 documentationhttps:///support/knowledgecenter/en/ssw_aix_71/m_commands/mkusil.htmlAIX 7.1 / Commands / m /mkusil Command.Creates or attaches a new user-specified installation location (USIL) instance.Syntaxmkusil -R RelocatePath -c Comments [-XFa]DescriptionThe mkusil command creates or attaches a new USIL instance.A user-specified installation location (USIL) is a tracked, relocated installation path that is created by the administrator. The location is tracked by the system and can be used as an alternate installation path for packages that use relocation of file sets or software. Multiple instances or versions of the same software package can be installed on a single system by delegating each installation to a separate USIL.An existing USIL instance can be attached or detached from any given system.Each USIL instance maintains its own set of Software Vital Product Data (SWVPD) in three installp parts:InstallRoot/etc/objreposInstallRoot/usr/lib/objreposInstallRoot/usr/share/lib/objrepos++ Information about the flags for the AIX command: installpThe flags for installp mentioned in the online manual for MQ indicate to apply, commit, expand file system, agree with license, using the .toc (table of contents) file and filesets in the current directory:installp -acgXYd . allhttps:///support/knowledgecenter/en/ssw_aix_72/i_commands/installp.htm lAIX 7.2 / Commands / i /installp CommandPurposeInstalls available software products in a compatible installation package.Flags:-R path Indicates a user-specified installation location.-a Applies one or more software products or updates. This is the default action. This flag can be used with the -c flag to apply and commit a software product update when installed.-c Commits all specified updates that are currently applied but not committed. When an update is committed all other software products it is dependent on must also be committed (unless they are already in the committed state). The specified software product is dependent on any software product that is a prerequisite or corequisite of the specified product. If the requisite software products are not in the committed state, the commit fails and error messages are displayed. The -g flag can be used to automatically commit requisite software product updates.-g When used to install or commit, this flag automatically installs or commits, respectively, any software products or updates that are requisites of the specified software product. When used to remove or reject software, this flag automatically removes or rejects dependents of the specified software.-X Attempts to expand any file systems where there is insufficient space to do the installation. This option expands file systems based on current available space and size estimates that are provided by the software product package. Note that it is possible to exhaust available disk space during an installation even if the -X flag is specified, especially if other files are being created or expanded in the same file systems during an installation. Also note that any remote file systems cannot be expanded.-Y Agrees to required software license agreements for software to be installed. This flag is only valid with the -a flag.-d Device Specifies where the installation media can be found.Notice that "d ." means: current directory-r Rejects all specified software updates that are currently applied but not committed. When a software update is rejected any other software product that is dependent on it (that is, those software products that have the specified software product as a requisite) must also be rejected. The -g flag can be used to reject automatically dependent software updates.-u Removes the specified software product and any of its installed updates from the system. The product can be in either the committed or broken state.https:///support/knowledgecenter/ssw_aix_72/l_commands/lslpp.htmlAIX 7.2 /lslpp Command-R { path | ALL } Indicates a user-specified installation location.-a Displays all the information about filesets specified when combined with other flags. This flag shows all updates when combined with the -l flag and all history when combined with the -h flag.-l (lowercase L) Displays the name, most recent level, state, and description of the specified fileset.++ MQ Documentationhttps:///support/knowledgecenter/SSFKSJ_9.2.0/com.ibm.mq.ins.doc/q008600_.htm IBM MQ 9.2.x / Installing and uninstalling IBM MQ / Installing and uninstalling IBM MQ on AIX /Installing IBM MQ server on AIX.You must install the second version of the product in a location that is not the default. To create the non-default installation location you must use the mkusil command, which is available only from the command line..Install the whole product in a non-default location using the -R flag:installp -R USIL_Directory -acgXYd . allhttps:///support/knowledgecenter/SSFKSJ_9.2.0/com.ibm.mq.mig.doc/q008 010_.htmlIBM MQ 9.2.x / IBM MQ / Maintaining and migrating / Applying maintenance to IBM MQ / Applying and removing maintenance on UNIX and Linux /Applying maintenance level updates on AIX (Installation of Fix Packs)*** Note: The components will be either COMMITTED or APPLIED depending on the options chosen when applying the fix pack.https:///support/knowledgecenter/SSFKSJ_9.2.0/com.ibm.mq.mig.doc/q008 020_.htmlIBM MQ 9.2.x / IBM MQ / Maintaining and migrating / Applying maintenance to IBM MQ / Applying and removing maintenance on AIX and Linux /Reverting to the previous maintenance level on AIXT o back out ALL maintenance updates, as the user root, issue the command:installp [ -R usil ] -r "mqm*"https:///support/knowledgecenter/SSFKSJ_9.2.0/com.ibm.mq.ins.doc/q0094 20_.htmlIBM MQ 9.2.x / IBM MQ / Installing and uninstalling / Installing and uninstalling IBM MQ on AIX /Uninstalling or modifying IBM MQ on AIXT o uninstall an installation in the default location /usr/mqm:installp -u mqm+++ end。

AIX系统管理手册

AIX系统管理手册

索引2存储管理.................................................2.1概述................................................2.2物理卷定义(PV)...................................2.3巻组定义(VG).....................................2.4逻辑卷定义(LV)...................................2.5交换空间(PS).....................................2.6文件系统命令 .......................................2.7作启动镜像盘 .......................................2.8创建文件系统过程 ...................................3系统管理.................................................3.1系统错误日志(errdemon)..........................3.2系统日志(alog)......................................3.3系统状态及设备查询 .................................3.4系统关机及重启 .....................................3.5光驱加载 ...........................................3.6性能监控 ...........................................3.7服务管理 ...........................................3.8环境变量 ...........................................3.9启动常见错误码 .....................................4网络管理.................................................4.1TCPIP服务组........................................ 1命令索引2存储管理2.1概述AIX下磁盘首先是一个物理卷(PV),几个物理卷组成一个巻组(VG)。

AIX系统管理

AIX系统管理
课程描述
● 目的 ● 学员的应当具备的知识 ● 具体目标
第一章、AIX操作系统介绍
• UNIX操作系统简介 • AIX系统简介 • AIX系统的用户界面(包括CDE) • AIX操作系统的基本命令
操作系统的概念
• 什么是UNIX
• Novell公司的商标 • 多任务、多用户的操作系统 • 相关操作系统及其应用程序工具、编译程序的总称 • 功能丰富的可扩展、开放的计算环境
● 这个信息将以8种语言显示在全部图形显示器和第一个内 置串口(S1)连接的设备上。
● 安装操作系统时,对连接在S1上终端的串口设置有参数 要求
步骤3: ● 选择安装系统时所用的语言
安装和维护菜单
步骤4: ● 在这一步检查所有的安装设置
Welcome to Base Operating System Installation and Maintenance
Cultural Convention
Language
Keyboard
>>>1. C(POSIX)
C(POSIX)
C(POSIX)
2. English(United States) English(United States) English(United States)
3. Russian
Cultural Convention ……………… C (POSIX) Language …………………………. C (POSIX) Keyboard …………………………. C (POSIX) 3 Install Trusted Computing Base …….. no 0 Install with the settings listed above 88 Help ? 99 Previous Menu >>> Choice [1]:_

AIX系统管理手册

AIX系统管理手册

索引1 命令索引2 存储管理2.1 概述AIX下磁盘首先是一个物理卷(PV),几个物理卷组成一个巻组(VG)。

定义巻组过程中,需要指定分区大小(PP),这个尺寸用于逻辑卷(LV)的定义。

Fget_config –Av2.2 物理卷定义(PV)系统扫描到磁盘以后,首先给他增加一个pvid,使其变成PV,命令如下:Chdev –l hdisk7 –a pv=yes删除pvid,命令如下:Chdev –l hdisk7 –a pv=clear查看物理卷的详细信息,使用lspv命令。

2.3 巻组定义(VG)使用lsvg –l查看巻组的详细信息,包括此巻组分成了几个逻辑卷,这几个逻辑卷又挂载在那个文件系统上。

创建一个卷组使用mkvg命令。

Extendvg:将一个物理卷添加到已有卷中。

Chvg:更改卷组属性。

Reducevg:删除或者导出一个物理卷。

Lsvg列出vg列表。

2.4 逻辑卷定义(LV)使用lslv查看逻辑卷的详细定义。

Mklv:创建一个逻辑卷。

Chlv:修改一个逻辑卷的名称或者特征。

Extendlv:增加逻辑卷分配的逻辑分区的数据。

Cplv:复制逻辑卷。

Rmlv:除去逻辑卷。

Mklvcopy:增加逻辑卷的副本数目,用于逻辑卷镜像。

Rmlvcopy:减少逻辑卷的副本数目,用于删除逻辑卷镜像。

Crfs:为逻辑卷创建一个文件系统。

2.5 交换空间(PS)Mkps:创建新的页面空间。

Chps:修改页面空间属性。

Lsps –a:显示页面空间列表。

Rmps:移除页面空间。

Swapon,swapoff:激活或者禁用页面空间。

2.6 文件系统命令Backup、restore:备份和还原。

Chfs:修改jfs文件属性,例如,为文件系统扩容。

Dd:将数据从一个存储设备直接复制到另一个存储设备。

Df:获得文件已使用空间大小。

Fsck:检查文件系统的一致性,并修复。

Crfs:在卷组上直接创建文件系统。

Mkfs:在逻辑卷上创建文件系统。

超经典的AIX系统管理手册

超经典的AIX系统管理手册

BOS(Base Operating System)安装
打开主机电源。 连接好系统终端,把第一张安装介质(磁带、光碟)插入驱动器。 在开机后按<F5>(图形终端)进入系统安装画面。 当终端显示如下信息时:
☆☆☆☆☆☆Please define the system console☆☆☆☆☆☆ Type a 1 and press enter to use this terminal as the system console. Type een 1 en druk op enter om deze terminal als de systeemconsole to gebruiken. Skrive tallet 1 og trykk paa enter for aa bruke denne terminalen som systemkonsoll. Pour definir ce terminal comme console systeme, appuyez sur 1puis sur entree. Taste 1 and ansch1iessend die eingabetaste druecken,um diese datenstation als systemkonsole zu verwenden. Prenier I1 tasto 1 ed invio per usare questo terminal como consolo. Escriba 1 y pulse intro para utilizer esta terminal como consola del sistema. a)Tryck paa 1 och sedan paa enter om dy vill att haer terminalen ska vara systemkonsol 键入“1”并回车(注意:键入的“1”不回显)选择主控台 (5) 屏幕上将不断显示一些信息,几分钟后出现: >>> 1 Type 1 and press enter to have English during install. 2 Type 2 en druk op enter om tijdens het installeren het Nederlands te krijgen. 3 Entrez 3 pour effectuer 1 installation en francais.

AIX系统管理

AIX系统管理
物理分区: 卷组中的最小分配单元 逻辑分区: 与物理分区相对应。一个逻辑分区 对应一个物理分区(未做镜像时) 物理卷: 物理硬盘 逻辑卷:逻辑分区的集合,可跨多个物理卷 卷组:一些相关物理盘的集合
金证科技
SHENZHEN KINGDOM TECHNOLOGY CO.LTD.
AIX存储管理命令
Varyonvg , varyoffvg , lsvg , lsvg –o Exportvg , importvg Lspv Lslv,mklv Crfs smit命令(是执行其它命令的一个工具,将其 它命令的命令名作为smit命令的参数,如: smit mklv等)
金证科技
SHENZHEN KINGDOM TECHNOLOGY CO.LTD.
谢谢!
金证科技
SHENZHEN KINGDOM TECHNOLOGY CO.LTD.
• 文件是AIX文件系统的基本单位,共有 三种不同类型的AIX文件。 普通文件 目录文件 特殊文件 • 文件和目录的存取权
金证科技
SHENZHEN KINGDOM TECHNOLOGY CO.LTD.
普通文件
• 以字节为单位的数据信息的集合,包括 文本文件和程序文件。 • 基本属性包括文件名、文件索引号、文 件大小、最近访问时间、一组存取权、 属组名和属主名。
• 存取权分为三个级别:读权“r”、写权 “w”、执行权“x”。 • 存取用户分三类:文件属主、属组、其 它用户。 • 为文件赋权限是用数字表示,如755为 rwxr-xr-x
金证科技
SHENZHEN KINGDOM TECHNOLOGY CO.LTD.
访问系统的简单命令
• 用户管理操作 • 目录管理操作 pwd、ls、cd、mkdir、rmdir、rm等 • 文件管理操作 cp、rm、find等 • 改变目录/文件属性 chown、chgrp、chmod

AIX安全配置手册

文档编号:AIX系统安全配置手册2006年5月文档信息分发控制版本控制AIX系统安全加固手册1.系统维护升级加固1.下载系统推荐维护包在AIX操作系统中,补丁修正软件包分为维护包和推荐维护包:维护包(Maintenance Levels,简称ML) 由从AIX 4.3 的基准文件集更新后的一系列文件集组成。

每个文件集的更新都是累计的,即它包含了AIX 4.3发布以来的所有那个文件集的补丁,并替换了所有以前的更新。

维护包(ML)的命名规则是4位的VRMF:V-操作系统版本号versionR-发行版号releaseM-改进版号modificationF-修正版号fix可以用oslevel来判定当前系统中的维护包版本。

可以通过安装ML来升级操作系统的改进版号modification,例如,从4.3.0.0升级到4.3.3.0。

推荐维护包(Recommended Maintenance,简称RM)是由一系列适用于最新的ML的文件集组成的软件包,它由一系列经过较多实测过的更新的文件集组成。

通过安装RM,可以使你的系统拥有较新的文件集,但它不能升级系统版本。

推荐维护包(RM)的命名规则是4位的VRMF,再加两位数字后缀:V-操作系统版本号versionR-发行版号releaseM-改进版号modificationF-修正版号fixRM-推荐维护包Recommended Maintenance 如4330-01 是4330 的第1个推荐维护包(RM)。

可以用以下的命令来判定是否4330-01已经安装在系统里,oslevel将仍然显示4.3.3.0,表示系统的ML仍是4330:instfix -ik 4330-01_AIX_ML我们可以通过该网站()下载ML或RM,并通过gzip解压缩,然后按照如下提示的详细信息进行安装。

2.解压缩推荐维护包我们建议将推荐维护包解压缩至/usr/sys/inst.imagescd /tmp/mlgzip -d *.tar.gzcd /usr/sys/inst.imagesfind /tmp/ml -name \*.tar -exec tar -xvf {} \;rm –rf /tmp/ml3.用df检查系统硬盘空间大小,确保/,/usr,/var,/tmp等目录有足够的空间。

AIX系统管理指南

IBM SystemP AIX培训教材目录第1 章RS/6000产品概述 (11)1.1 IBM RISC芯片技术 (11)1.2 对称多处理技术(Symmetric Mulit-Processor , SMP) (12)1.2.1 传统SMP的缺点 (12)1.2.2 RS/6000的解决方案 (12)1.3 SP技术 (13)1.4 RS/6000的体系结构 (13)1.4.1 MAC (13)1.4.2 PCI (14)1.5 系统的可靠性 (14)1.6 高可靠性群集多处理软件HACMP (15)第2 章AIX操作系统简介 (16)2.1 AIX的来历 (16)2.2 AIX操作系统的主要特点 (17)2.2.1 遵循众多工业标准 (17)2.2.2 先进的系统设计 (17)2.2.3 AIX的连接性 (18)2.2.4 终端支持 (19)2.3 命令语言解释器(ksh) (19)2.4 AIX文本编辑器 (19)2.5 AIX系统中的DOS工具 (19)2.6 AIX系统的用户界面 (19)2.7 联机帮助 (20)2.8 AIX的几个重要技术 (20)2.8.1 LVM-Logical Volume Manager (20)2.8.2 JFS-Journal File System (20)2.8.3 系统管理接口工具(smit) (20)第3 章AIX基本命令使用 (21)3.1 基本系统使用命令 (21)3.1.1 系统进入和退出 (21)3.1.1.1 系统进入 (21)3.1.1.2 系统退出 (21)3.1.2 系统关闭和重启 (22)3.1.3 修改密码passwd (22)3.1.4 日期和日历 (22)3.1.5 CLEAR、ECHO、BANNER (23)3.1.6 who、who am i、finger (23)3.1.7 mail (23)3.1.8 查找命令find (24)3.1.9 grep (26)3.1.10 UNAME命令 (26)3.1.11 查看命令帮助 (27)3.2 DOS工具 (27)第4 章文件和目录操作 (28)4.1 文件和目录 (28)4.2 文件命名规则 (28)4.3 路径 (29)4.4 显示当前工作目录 (30)4.5 改变目录层次 (30)4.6 创建目录mkdir (31)4.7 删除目录rmdir (31)4.8 文件操作命令 (31)4.8.1 列文件ls (31)4.8.2 文件拷贝cp (31)4.8.3 文件移动mv (32)4.8.4 文件删除rm (32)4.8.5 查看文件内容cat、more、pg (32)4.8.6 测试文件wc (32)4.8.7 链接ln (33)4.9 文件权限 (33)4.9.1 文件所有权 (34)4.9.2 文件权限 (34)4.9.3 改变文件所有权 (35)4.9.4 改变文件权限 (35)4.10 设备文件 (36)第5 章SHELL入门 (37)5.1 命令结构 (37)5.2 通配符 (37)5.3 环境变量 (38)5.4 PS1环境变量 (39)5.5 PS2环境变量 (39)5.6 标准输入、输出、出错和重定向 (40)5.6.1 标准输入、输出和出错 (40)5.6.2 重定向 (40)5.6.3 重定向的组合 (41)5.7 文件结束标记 (41)5.8 管道线和过滤器 (42)5.9 tee—分叉 (42)5.10 命令返回值 (42)5.11 反引号操作符 (43)5.12 命令序列 (43)5.13 反斜线操作符 (43)第6 章vi 使用 (44)6.1 vi简介 (44)6.2 vi的进入与离开 (44)6.3 vi 的文本输入模式 (45)6.4 删除文本 (45)6.5 更改文本 (46)6.6 vi常用功能 (47)6.7 文件处理子命令 (47)6.8 vi 基本编辑命令 (48)第7 章系统管理工具 (52)7.1 传统UNIX系统管理方法 (52)7.2 三个系统管理工具 (52)7.2.1 SMIT (52)7.2.2 DSMIT (53)7.2.3 VSM (53)7.3 系统管理工具工作方式 (53)7.4 各种系统管理工具功能及使用介绍 (54)7.4.1 SMIT功能及使用方法介绍 (54)7.4.1.1 SMIT用户界面组件 (54)7.4.1.2 SMIT的启动与使用 (55)7.4.1.3 SMIT主要功能及主菜单的使用 (56)7.4.1.4 smit对话屏幕的使用 (57)7.4.1.5 输出屏幕 (60)7.4.1.6 smit屏幕及脚本记录文件 (60)7.4.2 DSMIT简介 (61)7.4.3 可视化系统管理器(VSM)简介 (61)第8 章系统及软件安装 (64)8.1 操作系统安装 (64)8.1.1 安装介质和方式 (64)8.1.2 安装前的准备工作 (64)8.1.3 基本操作系统(BOS)的安装步骤 (65)8.1.4 安装辅助菜单 (70)8.2 软件安装与维护 (70)8.2.1 软件包的定义 (70)8.2.2 Bundle (71)8.2.3 Package命名 (72)8.2.4 代码服务 (73)8.2.5 软件更新 (74)8.2.6 安装状态 (74)8.2.7 软件安装 (75)8.2.8 软件清单 (76)8.2.9 软件维护 (76)8.2.10 instfix命令 (77)第9 章系统启动和关闭 (78)9.1 系统启动 (78)9.1.1 系统启动的几个阶段 (78)9.1.2 BIST – POST阶段 (78)9.1.2.1 基于MCA体系的系统 (78)9.1.2.2 基于PCI体系的系统 (79)9.1.3 Boot phase 1阶段 (81)9.1.4 Boot phase 2阶段 (81)9.1.5 Boot phase 3阶段 (82)9.2 查看启动信息 (82)9.3 /etc/inittab文件 (82)9.4 系统资源控制器 (84)9.4.1 SRC概念 (84)9.4.2 SRC命令 (84)9.5 系统关闭 (85)第10 章ODM管理 (86)10.1 ODM概述 (86)10.2 ODM概念: (86)10.3 ODM命令 (87)第11 章设备管理 (89)11.1 设备术语 (89)11.2 设备文件 (89)11.3 ODM预定义和定制设备数据库 (90)11.4 lsdev命令 (91)11.4.1 列出所有被支持的设备 (91)11.4.2 列出所有定义了的设备 (92)11.5 设备状态 (93)11.6 设备寻址 (94)11.7 设备配置 (94)11.7.1 自动配置设备 (94)11.7.2 手工配置 (95)11.7.2.1 SMIT设备菜单 (95)11.7.2.2 增加配置设备 (96)11.8 获取硬件配置信息 (97)第12 章存储管理概述 (98)12.1 AIX4.3版本存储组件 (98)12.2 传统UNIX磁盘存储 (98)12.3 LVM的优点 (98)12.4 物理存储 (99)12.4.1 物理存储概念 (99)12.4.2 卷组考虑 (100)12.4.3 卷组描述字段 (100)12.5 逻辑存储 (101)12.5.1 逻辑存储概念 (101)12.5.2 逻辑卷用途 (103)12.5.3 显示逻辑卷信息 (103)12.6 文件系统 (104)12.6.1 文件系统概念 (104)12.6.2 文件系统优点 (104)12.6.3 AIX 4.3的标准文件系统 (105)12.6.4 /etc/filesystems文件 (105)12.6.5 文件系统挂接(MOUNT) (106)12.6.6 文件系统列表 (108)第13 章逻辑卷管理(LVM) (110)13.1 卷组管理 (110)13.1.1 显示卷组信息 (111)13.1.2 增加和删除卷组 (113)13.1.3 修改卷组特性 (113)13.1.4 增加或删除卷组中的物理卷 (114)13.1.5 重组卷组 (115)13.1.6 激活和停止卷组 (115)13.1.7 引入/导出卷组 (116)13.2 逻辑存储 (117)13.2.1 基本概念 (117)13.2.1.1 镜像(mirror) (117)13.2.1.2 条带化(striping) (118)13.2.1.3 逻辑卷分配策略 (119)13.2.2 逻辑卷的管理 (119)13.2.2.1 显示逻辑卷信息 (120)13.2.2.2 增加逻辑卷 (121)13.2.2.3 删除逻辑卷 (122)13.2.2.4 设置逻辑卷的特性 (123)13.2.2.5 增加/删除逻辑卷拷贝 (123)13.3 物理卷管理 (125)13.3.1 显示物理卷信息 (125)13.3.2 增加磁盘 (127)13.3.3 迁移物理卷内容 (127)13.4 获取存储系统的配置信息 (127)第14 章文件系统管理 (128)14.1 基本概念 (128)14.1.1 日志文件系统的结构 (128)14.1.2 inode节点结构 (128)14.1.3 磁盘分段(fragmentation) (129)14.1.4 inode节点的数目 (130)14.1.5 文件系统压缩 (130)14.1.6 JFS文件系统日志 (131)14.2 文件系统管理 (131)14.2.1 列出文件系统 (132)14.2.1.1 列出系统中定义的所有文件系统 (132)14.2.1.2 列出系统中已挂接的文件系统 (133)14.2.2 增加文件系统 (133)14.2.2.1 在已有逻辑卷上创建文件系统 (133)14.2.2.2 直接创建JFS文件系统 (135)14.2.3 文件系统的挂接和拆卸 (136)14.2.4 更改/显示日志文件系统特性 (137)14.2.5 删除文件系统 (138)14.2.6 整理文件系统碎片 (138)14.2.7 文件系统检查 (139)14.2.8 获取文件系统信息 (139)14.3 磁盘空间管理 (139)14.3.1 显示文件系统空间使用情况 (140)14.3.2 控制增长较快的文件 (140)14.3.3 显示磁盘使用情况 (141)第15 章系统交换区管理 (142)15.1 换页空间的概念 (142)15.2 为什么使用换页空间 (143)15.3 如何提高换页空间的性能 (143)15.4 换页空间相关命令和文件 (143)15.5 增加换页空间 (144)15.6 修改换页空间 (145)15.7 删除换页空间 (145)15.8 换页空间问题解决 (145)第16 章系统备份和恢复 (147)16.1 概念与术语 (147)16.1.1 备份和恢复 (147)16.1.2 恢复 (148)16.1.3 备份的类型 (148)16.1.4 备份的策略 (148)16.1.5 备份用设备 (149)16.1.5.1 软盘 (149)16.1.5.2 磁带 (150)16.2 备份和恢复的实施 (151)16.2.1 备份及恢复的SMIT菜单 (151)16.2.2 rootvg的备份与恢复 (151)16.2.2.1 rootvg的备份-mksysb (151)16.2.2.2 rootvg的/image.data文件: (152)16.2.2.3 rootvg的/bosinst.data文件: (154)16.2.2.4 rootvg的恢复 (155)16.2.3 非rootvg卷组的备份与恢复 (156)16.2.3.1 非rootvg卷组的备份 (156)16.2.3.2 非rootvg卷组的恢复 (157)16.2.4 文件和目录的备份与恢复 (158)16.2.4.1 备份文件或目录 (158)16.2.4.2 恢复文件或目录 (159)16.2.5 文件系统的备份与恢复 (159)16.2.5.1 备份文件系统 (159)16.2.5.2 文件系统的恢复 (161)16.2.6 其它UNIX备份和恢复命令 (162)16.2.6.1 tar命令 (162)16.2.6.2 cpio命令 (163)16.2.6.3 dd命令 (163)16.2.7 其他与备份相关命令 (163)16.2.8 备份文档的策略 (164)第17 章网络管理 (165)17.1 TCP/IP基本概念 (165)17.2 互联网实例 (165)17.3 TCP/IP配置 (167)17.4 配置IP地址和主机名 (168)17.5 修改IP地址和主机名 (169)17.6 相关文件 (169)17.7 路由管理 (169)17.7.1 查看路由 (169)17.7.2 增加/ 删除静态路由 (170)17.8 基本TCP/IP工具 (170)17.8.1 检验连通性ping (170)17.8.2 文件传输ftp (170)17.8.3 远程登陆 (171)17.8.3.1 telnet (171)17.8.3.2 rlogin (171)17.8.4 远程执行 (171)17.8.4.1 rcp (171)17.8.4.2 rexec (172)第18 章用户和组管理 (173)18.1 概述 (173)18.1.1 用户和组 (173)18.1.2 用户登录和初始化 (173)18.1.2.1 用户登录过程 (173)18.1.2.2 用户初始化文件 (175)18.1.3 组的分类 (176)18.1.4 用户划分 (176)18.1.5 安全性和用户菜单 (177)18.2 用户管理 (178)18.2.1 显示系统中所有用户 (178)18.2.2 添加用户 (179)18.2.3 修改/显示用户属性 (180)18.2.4 删除用户 (181)18.2.5 设置、更改用户口令 (181)18.2.6 紧急情况下删除root口令 (182)18.3 组管理 (183)18.3.1 显示系统中所有的组 (183)18.3.2 添加组 (184)18.3.3 修改//显示组属性 (185)18.3.4 删除组 (185)18.4 系统管理员与用户通讯的工具 (186)18.4.1 motd文件 (186)18.4.2 write和wall命令 (186)18.4.3 talk命令 (187)18.4.4 mesg命令 (187)第 1 章RS/6000产品概述RS/6000是IBM公司的出色产品。

12_538_AIX_用户手册

AIX用户手册网络与计算机应用部2008-6-10编者的话 (1)前言 (2)第一章AIX操作系统简介 (3)1.1AIX操作系统的主要特点 (3)1.1.1遵循众多工业标准 (3)1.1.2先进的系统设计 (3)1.1.3强大的通讯能力 (4)1.1.4终端支持 (5)1.2AIX系统架构 (5)1.3命令语言解释器(KSH) (5)1.4AIX文本编辑器 (5)1.5AIX系统中的DOS工具 (5)1.6AIX系统的用户界面 (6)1.7联机帮助 (6)1.8AIX的几个重要技术 (8)1.8.1LVM-Logical Volume Manager (8)1.8.2JFS-Journal File System (8)1.8.3系统管理接口工具(smit) (8)第二章AIX操作系统基本命令 (11)2.1系统的登录和退出 (11)2.2PASSWORD (11)2.3MKDIR、RM、MV和CD (11)2.4LS (12)2.5DATE (12)2.6CAL (12)2.7CAT (12)2.8WC (12)2.9CLEAR 、ECHO和BANNER (13)2.10WHO (13)2.11FINGER (13)2.12MAIL (13)2.13PS (14)2.14KILL (15)2.15FIND (15)2.16GREP (16)2.17CUT (16)2.18SORT (17)2.19HEAD 和TAIL (18)2.20DOS工具 (18)2.21管道与重定向 (19)2.22LSDEV (19)2.23LSPV (21)2.24LSATTR (22)2.25CRON后台进程 (23)AIX用户手册2.26AT (24)2.27BATCH (24)2.28VMSTAT (25)2.29IOSTAT (26)2.30NETSTAT (27)第三章VI编辑器 (29)3.1VI 简介 (29)3.2VI的进入与离开 (29)3.3VI 的文本输入模式 (30)3.4VI 基本编辑命令 (30)3.5文件处理子命令 (32)第四章文件或目录的备份与恢复 (33)4.1TAR (34)4.2CPIO (35)4.3DD (37)第五章KSH脚本简介 (38)5.1K SH调试 (38)5.1.1命令行方式 (38)5.1.2set 语句 (38)5.1.3解释器参数 (39)5.2调试参数用法举例: (39)5.2.1未置变量退出和立即退出 (39)5.2.2shell程序的跟踪 (39)5.3例子 (40)5.3.1函数的语法: (40)5.3.2if条件语句: <> (40)5.3.3test测试命令 (41)5.3.4预定义变量 (42)第六章程序的编译与执行 (43)6.1用户文件的编译和执行 (43)6.1.1串行程序编译方法 (44)6.1.2OpenMP编译 (44)6.1.3MPI编译 (44)6.1.4混合模式编译 (44)6.2使用L OAD L EVELER提交作业 (44)6.2.1作业卡的编写,编写job.cmd文件,文件内容如下所示: (44)6.2.2串行作业卡 (44)6.2.3OpenMp作业卡 (45)6.2.4MPI和混合作业的作业卡 (45)6.2.5提交loadleveler作业 (46)6.2.6察看作业状态 (46)6.2.7察看loadleveler的整个执行状态 (47)6.2.8取消Loadleveler提交的作业 (47)6.2.9参考文献: (48)编者的话国家海洋环境预报中心于2005年4月引进美国IBM公司生产的Cluster 1600高性能集群计算机系统,此系统由三台IBM P690服务器、一台P630服务器、FastT700高性能磁盘阵列、一个高速交换机和操作控制台组成。

AIX6.1系统安装(串口)配置手册v1.0

AIX6.1系统安装(串口)配置手册v1.0目录一.版本 (4)二.准备光盘 (4)三.AIX系统安装 (4)3.1 AIX安装方式简介 (4)3.2 AIX系统安装具体步骤 (6)3.2.1系统安装 (6)3.2.2安装bundle (17)3.2.3系统镜像设置及启动顺序设置 (18)3.2.4 AIX系统补丁安装 (19)四 AIX系统配置及参数修改 (21)4.1 服务器IP及路由配置 (21)4.2 修改服务器主机名 (22)4.3 修改时区 (22)4.4 修改时间 (23)4.5 修改文件系统大小 (23)4.6 系统用户的limits参数 (23)4.7 Paging Space (23)4.8 修改用户最大进程数 (24)4.9 安装中文语言包 (24)4.10安装Bash shell (28)4.11 NTP服务配置 (29)4.12创建用户 (30)4.13限制某些用户无法ftp至power服务器 (31)4.14限制root用户通过telnet/ssh/rlogin登录至power服务器 (31)4.15 ASMI(超级系统管理口)的使用 (32)4.16 数据库和应用自启动脚本配置 (34)4.17 AIX中samba Server的配置方法 (35)4.18 AIX中普通用户拥有sqlplus的执行权限配置方法 (36)五.AIX常用系统命令简介 (37)5.1系统开关机 (37)5.2设备查看命令 (38)a)lsdev命令 (38)b)lspv命令 (40)c)lscfg命令 (41)d)lsattr命令 (42)5.3逻辑卷操作命令 (43)a) mkvg43b) lsvg (43)c) mklv (45)d) lslv (45)5.4文件系统操作命令 (45)a)smitty crfs (45)c)mount (47)d) df (48)5.5文件操作命令 (48)a)ls (48)b)cp (48)c)mv (48)d)rm (49)e)chown (49)5.6网络命令 (49)a)netstat (49)b)ifconfig (50)c)smitty tcpip (50)5.7查看系统运行状况 (52)a)topas (52)b)vmstat (53)附录一.系统补丁介绍及下载步骤 (53)附录二.配置超级终端步骤 (56)本文档仅供研发内部使用,如需在生产环境使用,请先对指导书各步骤进行验证一.版本采用的操作系统是I BM 的A IX6.1二.准备光盘系统安装盘D VD2 张: AIX 6 1-03如无系统补丁光盘,可以到IBM网站去下载对应补丁(见附件一.)三.AIX系统安装3.1 AIX安装方式简介AIX 可供选择的安装方式有三种:1)全新覆盖安装(New and Complete Overwrite)使用这种方法安装系统将会覆盖用户所选择目标盘上的所有数据。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

索引1 命令索引 (3)2 存储管理 (3)2.1 概述 (3)2.2 物理卷定义(PV) (4)2.3 巻组定义(VG) (4)2.4 逻辑卷定义(LV) (4)2.5 交换空间(PS) (5)2.6 文件系统命令 (5)2.7 作启动镜像盘 (6)2.8 创建文件系统过程 (6)3 系统管理 (7)3.1 系统错误日志(errdemon) (7)3.2 系统日志(alog) (7)3.3 系统状态及设备查询 (7)3.4 系统关机及重启 (8)3.5 光驱加载 (9)3.6 性能监控 (9)3.7 服务管理 (13)3.8 环境变量 (13)3.9 启动常见错误码 (13)4 网络管理 (15)4.1 TCPIP服务组 (15)1 命令索引2 存储管理2.1 概述AIX下磁盘首先是一个物理卷(PV),几个物理卷组成一个巻组(VG)。

定义巻组过程中,需要指定分区大小(PP),这个尺寸用于逻辑卷(LV)的定义。

Fget_config –Av2.2 物理卷定义(PV)系统扫描到磁盘以后,首先给他增加一个pvid,使其变成PV,命令如下:Chdev –l hdisk7 –a pv=yes删除pvid,命令如下:Chdev –l hdisk7 –a pv=clear查看物理卷的详细信息,使用lspv命令。

2.3 巻组定义(VG)使用lsvg –l查看巻组的详细信息,包括此巻组分成了几个逻辑卷,这几个逻辑卷又挂载在那个文件系统上。

创建一个卷组使用mkvg命令。

Extendvg:将一个物理卷添加到已有卷中。

Chvg:更改卷组属性。

Reducevg:删除或者导出一个物理卷。

Lsvg列出vg列表。

2.4 逻辑卷定义(LV)使用lslv查看逻辑卷的详细定义。

Mklv:创建一个逻辑卷。

Chlv:修改一个逻辑卷的名称或者特征。

Extendlv:增加逻辑卷分配的逻辑分区的数据。

Cplv:复制逻辑卷。

Rmlv:除去逻辑卷。

Mklvcopy:增加逻辑卷的副本数目,用于逻辑卷镜像。

Rmlvcopy:减少逻辑卷的副本数目,用于删除逻辑卷镜像。

Crfs:为逻辑卷创建一个文件系统。

2.5 交换空间(PS)Mkps:创建新的页面空间。

Chps:修改页面空间属性。

Lsps –a:显示页面空间列表。

Rmps:移除页面空间。

Swapon,swapoff:激活或者禁用页面空间。

2.6 文件系统命令Backup、restore:备份和还原。

Chfs:修改jfs文件属性,例如,为文件系统扩容。

Dd:将数据从一个存储设备直接复制到另一个存储设备。

Df:获得文件已使用空间大小。

Fsck:检查文件系统的一致性,并修复。

Crfs:在卷组上直接创建文件系统。

Mkfs:在逻辑卷上创建文件系统。

Rmfs:删除一个文件系统。

Lsfs:显示一个文件系统属性。

Mount、umount:挂载和取消挂载一个文件系统。

2.7 作启动镜像盘1、查看是否镜像lsvg –l rootvgLP = 1 PP = NN=1 没有作镜像N=2 做了一份镜像2、创建启动分区(只针对rootvg)bosboot –ad hdisk0Bosboot –ad hdisk1Bosboot -m normal –o 启动列表Bosboot –m normal hdisk0 hdisk1 更改启动顺序3、创建镜像盘Smitty mirrorvg4、创建完镜像后,增加lv,使用smitty mklv,一定要指定硬盘号,然后再执行Smitty mirrorvg执行synchoronize lv做镜像。

2.8 创建文件系统过程1、smitty mkvg or extendvg2、Smitty mklv or chlv 创建lv3、Smitty crfs or chfs 然后创建文件系统3 系统管理3.1 系统错误日志(errdemon)系统默认启动错误日志守护进程errdemon,该程序路径为/var/adm/ras,默认情况下,日志文件放在/var/adm/ras/errlog,也可以通过errdemon的-l参数查看。

阅读日志通过errpt命令完成,如果要详细查看一条错误日志,errpt –aj 错误号的方式查看。

Errclear -0 清空日志3.2 系统日志(alog)使用alog –L 查看系统的日志列表。

使用alog –ot 查看指定的日志内容。

3.3 系统状态及设备查询检查系统状态:系统整体: prtconf文件系统:df –k,df -g设备:lsdev –C 获取设备名称、状态、位置和描述。

例:查看硬盘: lsdev –Cc disk查看磁带机: lsdev –Cc tape查看适配卡: lsdev –Cc adapter处理器个数lsdev –C | grep proc系统配置:lscfg –vp 获取所有已配置硬件设备的详细信息。

例:查看硬盘信息: lscfg –vl hdiskx x表示数字查看网卡信息: lscfg –vl entx x表示数字查看磁带机: lscfg –vl rmtx x表示数字查看硬件属性:lsattr –El 获取已配置设备的属性信息。

例:查看硬盘属性: lsattr –El hdiskx x表示数字查看网卡属性: lsattr –El entx x表示数字查看磁带机属性: lsattr –El rmtx x表示数字内存大小:lsattr –El mem03.4 系统关机及重启–shutdown一分钟后关机–shutdown +2二分钟后关机–shutdown –Fr 快速重启关机重启(-r)关机命令调用/etc/rc.shutdown关闭程序,可以在这个文件里加上你自己的脚本。

3.5 光驱加载•使用:mount -rv cdrfs /dev/cd0 /cdrom–或者创建一个CD-ROM文件系统并进行加载•smit cdrfs•mount /cdrom•卸载cdrom–unmount /cdrom3.6 性能监控常用命令•# ps•# sar•# vmstat•# iostat•# tprof•# svmon•# nmon(需要单独安装,t = Top Process Stats 1=basic 2=CPU-Use 3=CPU 4=Size 5=Disk-I/O)•# filemon例:CPU的使用情况(sar –u)这条命令的语法是:# sar [options] interval number例如:# sar –u 60 3AIX NODE 2 3 00000211 07/06/99%usr %sys %wio %idle08:25:11 48 52 0 008:26:10 63 37 0 008:27:12 59 41 0 0.Average 56 44 0 0当%usr+%sys > 80% 时,CPU 紧张。

查看运行队列(sar –q)这条命令的语法是:# sar [options] interval number例如:# sar –q 60 3AIX NODE 2 3 00000211 07/06/9908:41:21 runq-sz %runocc swap-sz %swpocc08:42:21 1.2 10008:43:21 1.0 10008:44:21 1.1 100.Average 1.2 100注:命令#sar –q的输出:-runq-sz = 运行队列的平均长度。

(运行队列的平均长度就是等待在队列中的进程数目)-%runocc = 运行队列被占用的时间百分比。

-swap-sz = 等待被内存页交换的进程的平均数目。

-%swapocc = 内存页交换队列被占用的时间百分比。

这些数据会更有意义,如果收集一段时间并且研究它的趋势。

在有些环境下可以接受庞大的运行队列,而另外的环境就不一定适用。

例如,在一个传统的商业环境中,进程都是简单而运行快速的,这时系统性能还可以忍受大的运行队列。

而在一个工程或者科学计算环境中,进程一般都是巨大且需要更密集的资源的,此时就不能忍受大的运行队列。

# vmstat 1 3注:命令vmstat的输出:-procs =(每秒)r 在运行队列中的进程b 在等待队列中的进程-memory =(那个时刻的统计数据)avm 活动的虚拟页的数目fre 在空闲列表中的物理内存槽数-page =(每秒)re 收回的页pi/po 交换进内存的页/交换出内存的页fr/sr 空闲的页/被时钟计算法则检测的页cy 时钟循环(一般为0)-faults =(每秒)in 设备中断数sy 系统调用数cs 上下文交换数-cpu =(就象命令sar –u,为百分比)us 用户进程sy 核心进程id 空闲时间wa I/O等待时间这些信息是sar报告的补充。

wa如果超过25%,那么磁盘子系统可能没有平衡好。

Lsps –a查看换页内存,一般情况下换页内容不超过20%,如果超过50%系统运行速度很慢,如果超过80%系统不可用.另外,换页内存一般是文件系统使用的比较频繁,文件打开后关闭不释放内存.换页空间的大小一般是物理内存的一半+512M或者1024M,如果物理内存较小,则是2倍物理内存.3.7 服务管理3.8 环境变量●env:用于查看系统环境变量●用户的环境变量设置在/home/用户名/.profile文件内,设置方法是:ORACLE_SID=ORCLexport ORACLE_SID●修改过文件后,可以执行source 文件名来使文件生效3.9 启动常见错误码常见错误代码在上电的每一阶段,LCD面板都要显示一些数字信息:它为您指示:正在进行加载的设备当前的工作状态加载失败的原因可以在诊断手册中查到数字信息的含义主机启动时的常用LED错误代码0223-0229: Invalid boot list.0551,0555,0557: Corrupted file system, corrupted JFS log, and so on0552,0554,0556: Super block corrupted and corrupted customized ODM0553: Corrupted /etc/inittab file硬件报错通常LED会显示8位代码,请将这8位号码记录下来除了8位代码外,报修还需要记录故障服务器的型号和序列号,这些号码在服务器的前面板上,也可以通过prtconf命令来查看:设备型号一览表:550的型号为:9113-550570的型号为:9117-570DS4300的型号为:1722-60UDS4500的型号为:控制柜:1742-90U扩展柜:1740-1RU3582的型号为:3582-L233583的型号为:3583-L36光纤交换机的型号为:2026-E12报修方法:拨打IBM 24小时报修热线,8008101818-51004 网络管理4.1 TCPIP服务组。

相关文档
最新文档