IBM+AIX操作系统手册

合集下载

IBM_AIX小机命令手册

IBM_AIX小机命令手册

?EXCLUDE files:如果选择yes,将使得文件/etc/exclude.rootvg文件中列出的文件和目录不被备份。
?Make BOOTABLE backup:是否生成可启动备份,一般取默认值——yes。
?EXPAND /tmp if needed:是否在需要时自动扩展/tmp文件系统。强烈建议选yes。
内存大小: lsattr –El mem0
? 磁盘 lspv
? 交换分区 lsps –a
? 软件 lslpp –l 文件包名字
? 用户 who
关机命令:
–shutdown
一分钟后关机
–shutdown +2
二分钟后关机
–shutdown –Fr
关机重启(-r)
–或者创建一个CD-ROM文件系统并进行加载
?smit cdrfs
?mount /cdrom
?卸载cdrom
– unmount /cdrom
二、备份与恢复
rootvg备份 — mksysb
●只备份rootvg
●只备份已挂接的文件系统
●以备份格式创建可启动磁带
●保存rootvg中的换页空间设备定义
●tar (tape archive)
◇适用范围广
◇非常适合在不同UNIX平台间传送文件
◇可恢复空目录(-d选项)
◇不支持AIX访问控制列表(ACL,属于扩展inode内容)
●cpio(copy input to output)
◇适用范围广
◇符号链接较多时可能不能正常工作
?ls 显示目录中的内容(文件名)
#ls –a 列出当前目录中的所有文件

IBM内部员工操作手册AIXHACMP安装配置详细文档

IBM内部员工操作手册AIXHACMP安装配置详细文档

HACMP 5.4安装实用手册1.HACMP 5.4的安装步骤a)安装前提i.如果操作系统为AIX 5.2或者AIX 5.3时,需检查:AIX 5L Version RSCT Version RSCT FilesetsAIX 5L v.5.3 plus ML 1 2.4.2 pat.basic.hacmp 2.4.2.0pat.clients.hacmp 2.4.2.0rsct.core.sec 2.4.2.1rsct.core.rmc 2.4.2.1AIX 5L v.5.2 plus ML 5 2.3.6 pat.basic.hacmp 2.3.6.0pat.clients.hacmp 2.3.6.0rsct.core.sec 2.3.6.1rsct.core.rmc 2.3.6.1ii.此次安装的AIX 环境为AIX 5.3 ML6b)安装过程在安装HACMP的过程中,除HAview和HA Tivoli这两个安装包不装外,其他都正常安装c)安装HACMP补丁下载地址:-933.ibm./support/fixcentral/2.HACMP 5.4配置前的规划工作:Cluster Name Byh_clusterNode Name HA1 HA2IP Label HA1_boot HA1_svc HA1_stb HA2_boot HA2_svc HA2_stb IP Address 10.10.10.102 9.9.9.102 192.168.0.1 10.10.10.103 9.9.9.103 192.168.0.2 Persistent IP HA1_per:9.181.1.100 HA2_per:9.181.1.101HeartBeat Hb_HA1: /dev/hdisk1 Hb_HA2: /dev/hdisk2Res. Grp. Name Service IP Volume GroupApp NameByh_rg HA1_svcHA2_svcSharevg None3.HACMP5.4配置方法:a)配置两台机器的/etc/hosts文件:分别在/etc/hosts中加入:b)在HA1上,配置网路连接:i.配置HA1上boot IP----ent0上ii.配置HA1上stb IP----ent1上在HA2节点上也要将boot IP和stb IP也要提前配置好c)建立共享VG---sharevg和用于磁盘心跳的VG---convg这两个VG的* Activate volume group AUTOMATICALLY at system restart选项必须为No建好convg后,在Node1上执行/usr/sbin/rsct/bin/dhb_read -p hdisk1 -r命令在Node2上执行/usr/sbin/rsct/bin/dhb_read -p hdisk1 -t命令,确认可以正常通讯。

AIX操作系统手册

AIX操作系统手册

IAIX系统操作手册系统操作手册版本:5L目录第一章AIX操作系统的安装 (5)安装介质与方式 (5)BOS(Base Operating System)安装 (5)第二章AIX操作系统基本命 (8)系统的进入和退出 (8)password (8)mkdir、rm、mv和cd (8)ls (9)date (10)wc (10)who (11)finger (11)ps (11)kill (15)find (15)grep (16)第三章vi编辑器 (18)3.1vi 简介 (18)3.2vi的进入与离开 (18)3.3vi 的文本输入模式 (19)3.4vi 基本编辑命令 (19)3.5文件处理子命令 (21)第四章存储管理 (22)4.1相关术语 (22)PV (Physical V olume) (22)VG (Volume Group) (22)PP (Physical Partition) (22)LP (Logical Partition) (22)LV(Logical V olume) (22)Mirror(镜像) (23)VGDA(Volume Group Description Area,卷组描述区) (23)VGSA(V olume Group Status Area,卷组状态区) (23)4.2PV的管理 (23)硬盘安装 (23)配置一个PV (24)修改PV的属性 (24)删除一个PV (24)4.3VG的管理 (24)创建一个VG (24)删除一个VG (25)4.4LV的管理 (28)增加一个LV (28)修改LV的属性 (29)删除一个LV (31)第五章RS6000 更换硬盘的过程 (33)HDISK0和HDISK1做成MIRROR,是ROOTVG (33)先做系统备份 (33)查看HDISK0的S/N,P/N号等,在换盘的时候做对照 (33)查看所有硬盘(包括逻辑盘)的状态# lsdev -Cc disk (34)停HACMP (34)把HDISK0从ROOTVG中不做MIRROW (34)关机 (35)开机 (35)把HDISK0加到ROOTVG中并做镜像 (35)重启动2号机 (36)关闭1号机的HACMP (36)重启动1号机 (36)启动1号机的HACMP (36)启动2号机的HACMP (36)第六章HACMP安装配置 (36)准备工作 (36)检测连8port卡的TTY (37)使用AIX安装CD安装文件 (37)修改电源管理 (38)Netscape安装和配置 (38)安装HACMP/ES软件 (38)安装最新的AIX和HACMP补丁 (39)SSA微码升级 (39)设置主机名 (39)为所有网卡绑定boot或standby的IP地址 (39)创建VG、LV和FS (40)修改系统参数 (41)重启两台机器 (42)配置HACMP (42)HA测试(一):启动和关闭 (44)HA测试(二):本机IP接管 (44)HA测试(三):资源接管 (45)第七章模拟硬盘更换 (46)预做方案 (46)查看硬盘信息 (46)把要更换硬盘从VG中拿掉 (46)关机 (47)准备工作 (47)拆机箱 (47)更换硬盘 (47)开机 (47)改PV (47)做镜像 (47)把另一块盘18G拿掉 (48)关机 (48)更换硬盘 (48)开机 (48)查看硬盘信息 (48)改PV (48)做镜像 (48)起服务 (48)英迈强人 (49)第二方案 (50)把把机器的前面板拆下 (50)查看硬盘信息,看哪个盘是干什么用的 (50)把要更换硬盘从VG中拿掉 (50)把硬盘做成PV (51)lspv查看硬盘情况 (51)把硬盘加到VG中 (51)把18G硬盘数据复制到36G上, (51)取下另一18G硬盘 (51)把硬盘做成PV (51)做镜像 (52)检查,OK (52)第一章AIX操作系统的安装安装介质与方式AIX操作系统的安装可以:1)通过Tape安装。

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。

IBM小型机操作系统日常维护手册

IBM小型机操作系统日常维护手册

日常维护手册一.AIX操作系统常用命令1系统开关机AIX引导分为多用户(NORMAL)和单用户(SERVICE)引导两种。

多用户(NORMAL)引导:在主机液晶面板显示“OK”情况下,按下主机前面板的白色电源按钮;单用户(SERVICE)引导:将AIX第一张系统光盘放入CDROM,按下主机前面板的白色电源按钮,在屏幕出现显示后,第二声喇叭声响起之前,按下“5”键。

系统关机命令及顺序:1.将应用顺序及数据库系统停止;2.利用#shutdown指令;2设备查看命令a)lsdev命令该命令用来查看系统设备信息。

#lsdev –Cc 设备类型常用的设备类型有:processor, disk, adapter, tape,memory, tty等。

b)lspv命令用来查看系统硬盘信息。

#lspv 硬盘名用来查看具体硬盘的信息,#lspv -l 硬盘名用来查看硬盘上逻辑卷信息,#lspv –p 硬盘名查看该硬盘物理分区的信息。

c)lscfg命令该命令用来查看设备配置信息。

#lscfg –vl 设备名d)lsattr命令该命令用来查看设备的属性信息。

#lsattr -El设备名3逻辑卷操作命令a)lsvg该命令用来查看系统定义的VG(卷组)。

#lsvg -o查看系统当前激活的VG (卷组)。

#lsvg VG名查看该VG(卷组)的信息,包括PP大小、多少,已使用(分配)的空间,自由空间大小等信息。

#lsvg -l VG名查看该VG(卷组)已经定义的逻辑卷。

#lsvg -o |lsvg -il列出所有系统mount上的逻辑卷。

4文件系统操作命令a)lslv该命令用来列出该逻辑卷所有属性。

b)smitty crjfs该命令用来创建一个文件系统。

c)mount该命令用来查看已安装的文件系统。

#mount 文件系统名用来安装一个文件系统。

#mount -a用来安装所有定义的文件系统#unmount 文件系统名用来卸载一个文件系统。

IBM小型机AIX基本操作命令文档

IBM小型机AIX基本操作命令文档

1.如何移动与重命名文件要将文件和目录从一个目录移动到另一个目录,或重命名一个文件或目录,使用mv 命令。

如果将一个文件或目录移动到新的目录而不指定新的名字,则其保留原来的名字。

注意:如果不指定-i 标志,mv 命令可能会覆盖许多已存在的文件。

-i 标志会在覆盖文件之前提示确认。

而-f 标志则不会提示确认。

如果一起指定了-f 和-i 两个标志,则后一个指定的标志优先。

以下是如何使用mv 命令的示例:1.要将文件移动到另一个目录并给它一个新名字,请输入:# mv intro manual/chap1按下Enter 键。

该命令将intro 文件移动到manual/chap1 目录。

名字intro 从当前目录被除去,同样的文件在manual 目录中以chap1 的名字出现。

2.要将文件移动到另一个目录,且不改变名字,请输入:# mv chap3 manual按下Enter 键。

该命令将chap3 移动到manual/chap3.用mv 命令重命名文件可以使用mv 命令改变文件的名字而不将其移动到另一目录。

3.要重命名文件,请输入:# mv appendix apndx.a按下Enter 键。

该命令将appendix 文件重命名为apndx.a.如果名为apndx.a 的文件已存在,则旧的内容被appendix 文件的内容替换。

2.如何在系统中移动或者重命名目录?如果需要移动或者重命名目录,可以在系统中使用mvdir 命令。

例如,如果需要移动目录,可以在命令行中输入下面的命令:# mvdir book manual然后按下Enter(回车) 键。

如果manual 目录在系统中已经存在,则上面的命令会将book 目录移动到名为manual 的目录下面。

否则,book 目录会被重新命名为manual.例如,如果需要移动和重命名目录,请在命令行中输入下面的命令:# mvdir book3 proj4/manual然后按下Enter(回车)键。

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 6.1快速入门指南说明书

AIX 6.1快速入门指南说明书

AIX Installation Quick Start GuideVersion 6.1Quick Start GuideThis guide gets you started with a typical installation for the AIX Version 6.1operating system.Product overviewUse these steps to install the Base Operating System (BOS)for AIX ®from physical DVD media.The steps guide you through a new installation,also called an overwrite installation.Prepare for a new and complete overwrite:v Ensure that you have at least 2GB of memory and a minimum of 5GB of physical disk space.For additional release information,see the AIX Release Notes that correspond to the level of your AIX operating system.v Ensure that your hardware installation is complete,including all external devices.See the documentation that is provided with your system unit for installation instructions.v Verify that your system is set to boot from the device in which the installation media is loaded.See the hardware documentation that accompanied your system for instructions about setting the boot device.v If your system must communicate with other systems and access their resources,make sure that you have the following information before you proceed with the installation:–Network interface–Host name–IP address–Network mask–Name server–Domain name–GatewayFollow these steps to prepare your system for installation:1.Insert the AIX Volume 1media into the media device.2.Shut down your system.If your system is running,turn it off by following these steps:v Log in as the root user.v Type the following command:shutdown -Fv If your system does not automatically turn off,place the power switch in the Off (0)position.Do not turn on the system unit until instructed to do so in Step 4:Booting from your installation media.3.Ensure that all external devices attached to the system (such as CD-ROM drives,tape drives,DVD drives,and terminals)are turned on.You must turn on the external devices first so that the system unit can identify each peripheral device during the startup (boot)process.If you have not set up your ASCII terminal,set the communications,keyboard,and display e the followingcriteria and your terminal reference documentation to set the communications,keyboard,and display options.The following settings are typical,but your terminal might have different option names and settings than these options: Communication Options:Options SettingsLine speed(baud rate)9600Word Length(bits per character)8Parity no(none)Number of stop bits1Interface RS-232C(or RS-422A)Line control IPRTSKeyboard and display options:Options SettingsScreen normalRow and Column24x80Scroll jumpAuto LF(line feed)offLine Wrap onForcing Insert line(or both)Tab fieldOperating Mode echoTurnaround Character CREnter returnReturn new lineNew Line CRSend pageInsert Character spaceFollow this procedure for booting from your installation media:1.Turn on the system unit power switch.2.When the system beeps twice,press5on your ASCII terminal.The word keyboard is shown when the beeps occur.3.If you have more than one console,each one might display a panel that directs you to press a key to identify yoursystem console.A different key is specified for each console that is displayed on this panel.If this panel opens,press the specified key only on the console that you want to use for the installation.(The system console is the keyboard and display device that is used for installation and system administration.)4.Select the language that you prefer to use during installation,and press Enter.1.Display the installation settings before you install the BOS,by typing2in the Choice field to select2Change/Show2.Verify the default installation settings from the Overwrite Installation and Settings panel.3.If the installation and system settings are correct,type0in the Choice field and press Enter.Confirm that theselections on the installation summary panel are correct,and press Enter to begin the BOS installation.The system automatically reboots after the system installation is complete.Go to Step9:Finishing the BOS installation.If your installation settings are not correct,or you want to change the installation settings,go to Step6.Changing the installation settings.To change the installation settings,complete the following steps:1.2.When the Change Method of Installation panel is displayed,type1New and Complete Overwrite Installation and pressEnter.When the Change Disk(s)Where You Want to Install panel is displayed,you can change the destination disk for the3.If the default settings shown are correct,type0in the Choice field and press Enter.To change the destination disk,complete the following steps:a.Type the number for each disk where you want to install the BOS in the Choice field and press Enter.Do not pressEnter a final time until you have finished selecting all disks.If you need to deselect a disk,type its number asecond time and press Enter.b.To finish selecting disks,type0in the Choice field and press Enter.The Installation and Settings panel is displayedwith the selected disks listed under System Settings.1.Type2(Primary Language Environment Settings)in the Choice field on the Installation and Settings panel.2.Select the appropriate set of cultural convention,language,and keyboard options.Most of the options are apredefined combination;however,you can define your own combination of options.3.To select a predefined Primary Language Environment,type the corresponding number in the Choice field and pressEnter.To configure your own Primary Language Environment,complete the following steps:a.Select More Choices.b.Page through the choices and select the Create Your Own Combination option.c.On the Set Primary Cultural Convention panel,type the corresponding number in the Choice field and press Enter.d.On the Set Primary Language panel,type the number in the Choice field that corresponds to your choice for theprimary language and press Enter.e.On the Set Keyboard panel,type the number in the Choice field that corresponds to the keyboard that is attachedto the system and press Enter.To verify your BOS installation settings:1.2.Press Enter to begin the BOS installation.installed.The system automatically reboots.The Installation Assistant guides you through the configuration tasks. Related informationFor more information,see the following resources:v For additional release information,see the AIX Release Notes that corresponds to your level of the AIX operatingsystem.v For late-breaking information,which might include information about the configuration process and installed software, see the readme files.v For more detailed installation notes,see the Installation and migration topic collection in the IBM®AIX6.1Information Center(/infocenter/aix/v6r1/index.jsp).AIX Version6.1Licensed Materials-Property of IBM.©Copyright IBM Corp.2012,ernment Users Restricted Rights-Use,duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.IBM,the IBM logo,and are trademarks or registered trademarks of International Business Machines Corp.,registered in many jurisdictions worldwide.Other product and service names might be trademarks of IBM or other companies.A current list of IBM trademarks is available on the web at“Copyright and trademark information”(/legal/copytrade.shtml).Document Number:SA23-2248-04Printed in USA。

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

IAIX系统操作手册系统操作手册版本:5L目录第一章AIX操作系统的安装 (5)安装介质与方式 (5)BOS(Base Operating System)安装 (5)第二章AIX操作系统基本命 (7)系统的进入和退出 (7)password (7)mkdir、rm、mv和cd (8)ls (8)date (8)wc (8)who (9)finger (9)ps (9)kill (10)find (10)grep (11)第三章vi编辑器 (13)3.1vi 简介 (13)3.2vi的进入与离开 (13)3.3vi 的文本输入模式 (13)3.4vi 基本编辑命令 (14)3.5文件处理子命令 (16)第四章存储管理 (16)4.1相关术语 (16)PV (Physical V olume) (16)VG (V olume Group) (16)PP (Physical Partition) (17)LP (Logical Partition) (17)LV(Logical V olume) (17)Mirror(镜像) (17)VGDA(V olume Group Description Area,卷组描述区) (17)VGSA(V olume Group Status Area,卷组状态区) (18)4.2PV的管理 (18)硬盘安装 (18)配置一个PV (18)修改PV的属性 (19)删除一个PV (19)4.3VG的管理 (19)创建一个VG (19)删除一个VG (20)4.4LV的管理 (22)增加一个LV (22)修改LV的属性 (23)删除一个LV (26)第五章RS6000 更换硬盘的过程 (27)HDISK0和HDISK1做成MIRROR,是ROOTVG (27)先做系统备份 (27)查看HDISK0的S/N,P/N号等,在换盘的时候做对照 (28)查看所有硬盘(包括逻辑盘)的状态# lsdev -Cc disk (28)停HACMP (29)把HDISK0从ROOTVG中不做MIRROW (29)关机 (29)开机 (29)把HDISK0加到ROOTVG中并做镜像 (30)重启动2号机 (30)关闭1号机的HACMP (30)重启动1号机 (30)启动1号机的HACMP (30)启动2号机的HACMP (30)第六章HACMP安装配置 (31)准备工作 (31)检测连8port卡的TTY (32)使用AIX安装CD安装文件 (32)修改电源管理 (33)Netscape安装和配置 (33)安装HACMP/ES软件 (33)安装最新的AIX和HACMP补丁 (33)SSA微码升级 (34)设置主机名 (34)为所有网卡绑定boot或standby的IP地址 (34)创建VG、LV和FS (35)修改系统参数 (36)重启两台机器 (36)配置HACMP (36)HA测试(一):启动和关闭 (38)HA测试(二):本机IP接管 (39)HA测试(三):资源接管 (39)第七章模拟硬盘更换 (41)预做方案 (41)查看硬盘信息 (41)把要更换硬盘从VG中拿掉 (41)关机 (41)准备工作 (41)拆机箱 (41)更换硬盘 (42)查看硬盘 (42)改PV (42)做镜像 (42)把另一块盘18G拿掉 (42)关机 (43)更换硬盘 (43)开机 (43)查看硬盘信息 (43)改PV (43)做镜像 (43)起服务 (43)英迈强人 (43)第二方案 (45)把把机器的前面板拆下 (45)查看硬盘信息,看哪个盘是干什么用的 (45)把要更换硬盘从VG中拿掉 (45)把硬盘做成PV (46)lspv查看硬盘情况 (46)把硬盘加到VG中 (46)把18G硬盘数据复制到36G上, (46)取下另一18G硬盘 (46)把硬盘做成PV (46)做镜像 (46)检查,OK (47)第一章AIX操作系统的安装安装介质与方式AIX操作系统的安装可以:1)通过Tape安装。

需要16M RAM。

PCI总线的RS/6000系列小型机不支持该方式。

2)通过CD-ROM安装。

需要有8M RAM.3)通过网络安装。

这需要使用AIX Network Install Manager (NIM)来实现。

系统支持通过Token Ring 、FDDI、ethernet的安装。

4)预先安装(Preinstall).在购买时选择“预装操作系统”。

AIX操作系统的安装方式(Installation Method)有以下四种:完全覆盖安装:操作系统被安装在rootvg的第一块硬盘上,这将覆盖原系统中所有的系统保留目录。

保留安装:这种安装方式可以保留操作系统的版本不变,同时保留 rootvg上的用户数据,但将覆盖/usr 、/tmp、/var 和/ 目录。

用户还可以利用/etc/preserve.list指定系统安装时需要保留的文件系统。

默认的需保留的文件系统为/etc/filesystem中所列。

升级安装:这种安装方式用于操作系统的升级,这将覆盖/tmp目录。

这是系统默认的安装方式。

备份带安装:恢复用mksysb命令生成的安装带中/image.data中指定的文件系统,这种安装方式用于系统(rootvg)的复制。

BOS(Base Operating System)安装打开主机电源。

连接好系统终端,把第一张安装介质(磁带、光碟)插入驱动器。

在开机后按<F5>(图形终端)进入系统安装画面。

当终端显示如下信息时:☆☆☆☆☆☆Please define the system console☆☆☆☆☆☆键入“1”并回车(注意:键入的“1”不回显)选择主控台(5) 屏幕上将不断显示一些信息,几分钟后出现:>>> 1 Type 1 and press enter to have English during install.>>>Choice【1】:键入“1”后回车,选择语言环境为English(4) 此后屏幕出现:Welcome to Base Operating SystemInstallation and MaintenanceType the number of your choice and press enter .Choice is indicated by>>> >>>1 Start install now with default settings2 Change/show installation settings and install3 Start Maintenance Mode for system Recovery88 Help?99 Previous Menu>>>Choice 〔1〕:这是系统安装和维护的主菜单。

安装BOS基本操作系统键入“2”并回车,屏幕出现“Ins tall and Setting”画面:>>>Choice 〔1〕:这是系统安装的默认设置,用户可以根据需要进行修改。

与此同时,在屏幕的右下角会出现如下的警告信息:以上是提醒用户安装系统的后果将破坏用户原有的硬盘上的数据。

安装时可以选择保护安装(Preserve install) 或完全覆盖安装(New and complete overwrite)。

(6) 设置完毕选择0 安装即开始,屏幕将不断显示安装的进行情况,当BOS安装完毕系统将自动重启,否则在BOS安装完毕时屏幕会再次提示拧钥匙并处于等待状态。

(7) 系统重新启动后,屏幕会提示输入终端类型,键入主控台的类型(vt100或ibm3151),此后将出现系统设置屏,用上下键移动亮条进行基本系统参数的设置:★set date and time 设置time zone选择cur+8★set root password 分两次输入相同口令,即可设置成功,移动光标至Task complete-Exit to AIX LOGIN退出。

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

同时如果终端类型输入错误,屏幕显示将不可预料,此时可以用ctrl-c退出,重新输入。

至此,BOS安装完毕,以后启动机器时将不会有配置信息,直接出现LOGIN提示符。

第二章AIX操作系统基本命令系统的进入和退出login: 输入用户名(例如:user01)password: 输入用户口令若用户名及口令均正确,则用户将登陆成功。

此时系统会出现命令提示符$或#,即表示可接收用户输入的操作系统命令。

退出系统:<ctrl+d>或exit或logout。

例:#(or$)exit#(or$)Ctrl^D注,#为ROOT用户的命令提示符,$为一般用户passwordpassword命令用于建立或修改用户的密码。

如:#passwordpasswd: —输入旧口令new passwd: —输入新口令re-enter new paswd: —重新输入新口令mkdir、rm、mv和cdmkdir :用于创建目录$ mkdir oraclerm :用于删除文件或目录(rm –r 删除目录时目录内有内容,用-r一起删除)$ rm -r oraclemv :用于改变文件或目录名,或移动文件和目录cd :用于进入系统某一级目录中去ls功能:显示目录中的内容,列出当前目录中所有文件的文件名参数说明:a :列出目录中所有文件d :列出所有子目录l :列出长格式文件信息举例:ls –a :列出当前目录中的所有文件ls –l :显示文件的详细信息date功能:显示当前日期和时间,超级用户可以进行修改举例:$ dateMon Sep 22 10:28:26 BEIST 2003$wc✓功能:计算文件中的行数、字数和字符数✓参数说明:c :计算字符数l :计算行数w :计算字数举例:# wc profile13 53 381 profile| | |行数字数字符数$ wc smit.log422 1162 8971 smit.log$who功能:列出当前系统注册的用户举例:$who am i-- 列出当前系统使用者身份$ whooracle lft0 Sep 22 09:05oracle pts/0 Sep 22 10:17 (192.168.100.79)oracle pts/4 Sep 22 09:05 (:0.0)$ who am ioracle pts/0 Sep 22 10:17 (192.168.100.79)$finger显示当前登陆到系统中的用户的信息举例:# fingerLogin Name TTY Idle When Site I nfooracle ??? *l0 2:02 Mon 09:05oracle ??? p4 1:59 Mon 09:05root ??? p0 Mon 11:06# finger oracleLogin name: oracleDirectory: /usr/oracle/ora90 Shell: /usr/bin/kshOn since Sep 22 09:05:35 on lft0, 2 hours 2 minutes Idle Time(messages off)On since Sep 22 09:05:41 on pts/4, 1 hour 59 minutes Idle Timefrom :0.0No Plan.#ps功能:显示后台进程的有关信息。

相关文档
最新文档