IBM POWER AIX系统软硬件问题征兆及解决办法 下载本文

(2)Migration Installation (升级安装)

使用该安装方法去升级AIX 3.2 4.1 4.2 4.3 To AIX 5L Version 5.1 升级时保留了已经存在的rootvg卷组,除了/tmp,该方法保留了所有的文件系统,包括rootvg,lv和系统配置文件,同时保留了用户配置文件。 (3)Preservation Installation

该方法覆盖了/usr , /tmp, /var, 和 / 文件系统,在这些目录中任何用户数据将丢失,任何其他的LPP和Filesets将会丢失,系统配置将重做在安装结束后 有一个 /etc/preserve.list文件,在该文件中的条目将会被保留

# bootinfo –y 标示系统硬件的类型 ( 32bit或64bit ) oslevel 的运行

# oslevel ( to see the current maintenance level of your system ) 4.3.3.0

软件的组成以及各部分的含义 vv.rr.mmmm.ffff

vv : 两个数字 标示 version number rr : 两个数字 标示 release number

mmmm: 四个数字 标示 modification lever ffff: 四个数字 标示 fix level

在升级后,oslevle后,如果你的系统没有显示出新的维护层,使用

After an update, if your system is not showing the new maintenance level . use the –l flag with the oslevle command to detemine what filesets have note been upgraded to match the new BOS levle # oslevle –l < Current Level 〉去决定还有什么filesets没有被升级到新的BOS Level

PTF and APARs

PTF : Program Temporary Fix , a PTF is an updated fileset or a fileset that fixes a previous system problem

PTF 的安装是使用 installp 命令

APAR: Authorized Program Analysis Report , An APAR is an emergency fix. Or e-fix . to a unique problem on the system , APARS will eventually become PTFs after tesing and verification. APAR 的安装是使用 instfix 命令

Installp命令

-X 如果在安装过程中空间不够将扩展文件系统

-v 在安装结束后确认在文件集中的所有安装的文件备正确地检查过。可以同-a 和 –ac一起使用来确认一个成功的安装。

-a 应用一个或更多的软件产品或升级,该参数是默认的行为,该参数可以和 –c 一起使用来apply 和 commit一个软件的升级或安装

-p 执行一个安装预览,运行预安装的所有检查 -B 表示请求的行为被限制到软件的升级

-C 清除一个中断的安装和删除所有没有完成的安装 -c commit applied的升级到系统 -d 指定安装媒质

-F 强迫安装,无论是否存在,是否新旧

-f read the names of the software products from listfile

g 当用来install和commit的时候, 该选项自动安装或commit, 软件可以以两种方式进行安装:

applied state: 该状态安装软件到系统同时保留以前版本的软件 ,该状态是非常有用来测试新的软件,在有必要的时候可以返回到以前版本的软件 committed state : 安装软件同时删除以前的软件 例如: 1、安装在 bos.net软件包中的所有的filesets 到 /usr/sys/inst.images目录( in the applied state) Installp–avX –d/usr/sys/inst.images bos.net

2、预安装在bos.net软件包中的所有的文件集到/usr/sys/inst.images目录( In the committed state )同时检查磁盘空间的需求

3、清除一个中断的安装和删除所有没有完成的安装 # installp –C

4、committing applied updates 命令: # installp –cgx all 或者是 smitty install_commit 这个命令将commit所有的updates同时删除以前版本的filesets

5、Rejecting applied updates 命令 # installp –rBfX ./reject.list或是smitty install_reject

该命令将删除所有uncommitted updates listed in ./reject.list 同时将系统带回到以前的maintenance level

6、删除一个安装的软件 # installp –ugp –V2 bos.net.ipsec.rte 运行该命令将显示一个将要删除的文件的列表,但并不真正删除它 或是 # smitty install_remove 7、列示在媒质上的所有的软件 # installp –L –d /dev/cd0

8、使用smitty安装软件 # smitty install_latest

注意: 在安装结束后,无论命令的状态报告是成功的还是失败的,都应该看看 $HOME/smit.log文件,因为你想安装的fileset系统可能并没有安装 A version number and a release number : 标示 release level

A modification level and a fix level number : 标示 the level of the update

用下面的步骤使一个系统升级到最新的maintenance level: 1、列示软件的 maintenance level 2、下载 fixs

3、显示并升级安装的软件到最新的level

为了看你当前运行的filesets的maintenance level ,使用下面的命令: # lslpp –l

为了display all files installed with the bos.64bit fileset # lslpp –f bos.64bit

为了显示filesets安装和升级的历史 : # lslpp –h bos.sysmgt.trace

下载 FIXs :

1、ftp://service.software.ibm.com

2、通过fixdist的工具 访问: http://service.software.ibm.com

通过fixdist 下载的软件BFF的格式的,是用backup命令创建的,如*.bff,可以用restore命令来读。

如果你经常应用升级并将所有的升级软件放在相同的目录中,.toc文件可能会过期,installp命令使用.toc文件来执行安装,为了当你执行安装的时候使正确并最新的软件安装,推荐重构.toc文件,命令如下:

# inutoc ; 还有一个 inutoc /usr/sys/inst.images/.toc 该命令在运行installp的时候自动调用

你可以使用fixdist工具下载个别的fix,为了决定一个fix是否安装在系统上或为了安装一个fix,使用instfix命令( 和fix有关)

instfix命令允许你安装一个fix或set of fixes without knowing any information 除了APAR号或唯一的关键字来标示这个fix

例一:为了列示在一个CD-ROM中的fixes # instfix –T –d /dev/cd0

例二:为了决定是否APAR IX75893安装到系统 # instfix –ik IX75893

例三:To examine information about APAR IX75893 and what it does # instfix –aik IX75893

例四:To list what maintenance levels have been installed on your system with the instfix command

# instfix –i | grep ML

例五:为了从/dev/cd0安装APAR IX75893 # instfix –k IX75893 –d /dev/cd0

例六:To view the new maintenance level of your software # lslpp –l 主要还是显示 fix level

this will show you the latest maintenance level of the filesets including those you just updated 为了创建installation images on your hard disk # smitty bffcreate

为了克隆rootvg到一个新的磁盘 # smitty alt_clone

条件: The target disk should be a stand-alone disk not belonging to a VG,同时,SSA disks cannote be used as your target disks

第四部分: ODM

大多数的系统 object classes 和 objects存储在/usr/lib/objrepos目录,然而,ODM信息存储在

1、/usr/lib/objrepos

2、/usr/share/lib/objrepos 3、/etc/bojrepos ODM的相关命令:

odmadd: add objects to an boject class odmcreate: create empty object classes

odmchange: change specific objects in a specified object class odmdelete remove objects from an boject class odmdrop remove an entire object class

odmget retrives objects from object classes

odmshow display the description of an object class

第五部分:存储管理和文件系统 VGDA:

The VGDA, located at the beginning of each physical volume,contain informatino that describes all the logical volumes and all the physical volumes that belong to the volume group of which that physical volume is a memober

The VGDA is allocated when the disk is assigned as a physical volume,When the PV is assigned to a VG ,The actual VG informationg is placed in the VGDA

VGSA:

The VGSA contains state information about PP and PV

LVCB:

The LVCB is located at the start of every LV , It contains information about the LV and users a few hundred bytes

Disk Quorum:

Each Physical disk in a VG has at least one VGDA/VGSA, single PV in a VG: two VGDAs on one disk

two PV in a VG: two VGDAs on the first disk, one VGDA on the second disk Three or more : one VGDA on each disk

Disk Mirroring :

disk mirroring is the association of two or three PP with each LP in a LV,在LV创建的时候就可以做Mirroring 。

mklv 命令允许你选择 one or two additional copied for each LV,Mirror也可以加在一个已经存在的LV,通过使用mklvcopy命令

mirrorvg命令镜像在一个给定VG中的所有的LV,相同的功能可以被完成通过mklvcopy命令,如果在一个VG中运行mklvcopy命令for 每一个单独的LV,注意此处就是目标磁盘必须和源磁盘等等在同一个VG中

例一:# mirrorvg -c 3 workvg 三重镜像一个卷组 例二:# mirrorvg workvg 以默认的方式镜像卷组

为了删除一个卷组中已经损坏的磁盘: # unmirrorvg workvg hdisk7 # reducevg work hdisk7 # remdev -l hdisk7 -d

删除后添加一个新的磁盘(以同样的名称) # extendvg workvg hdisk7 # mirrorvg workvg 同步新建的镜像