您的位置:首页 > 其它

卸载HACMP 软件

2013-07-08 14:40 253 查看
本文介绍了在AIX操作系统上如何卸装已安装配置好的HACMP软件。

在使用后面的步骤卸装HACMP软件之前,收集所有下面命令执行后的输出,以确定HACMP软件中定义了哪些资源。

(1)# /usr/sbin/cluster/utilities/cllsif 或者 # /usr/es/sbin/cluster/utilities/cllsif

(2)# /usr/sbin/cluster/utilities/clshowres 或者 # /usr/es/sbin/cluster/utilities/clshowres

(3)# /usr/sbin/cluster/utilites/cllsserv 或者 # /usr/es/sbin/cluster/utilites/cllsserv

(4)# /usr/sbin/cluster/utilities/cllscustom 或者 # /usr/es/sbin/cluster/utilities/cllscustom

如果在/usr/sbin/cluster或者/usr/es/sbin/cluster目录中有定制的事件,应用服务的启动/停止脚本或者是HA群集的快照文件,那么建议将这些文件移至另外一个目录,以保证在卸装HACMP软件时不会删除掉这些文件。

下面是卸装HACMP软件的具体步骤:

1.在每个HACMP节点上以graceful方式停止掉HACMP服务:

a.以root用户身份,运行smitty clstop命令,在两个HACMP节点上以graceful方式停止掉HACMP服务。

# smitty clstop

Stop Cluster Services

* Stop now, on system restart or both now +

BROADCAST cluster shutdown? true          +

* Shutdown mode graceful                  +

(graceful, graceful with takeover, forced)

b.确认在HACMP中定义的所有资源,如IP标识、文件系统、卷组、应用服务等都已被停止。

c.以root用户身份,运行lssrc -g cluster命令检查HACMP软件服务进程已被停止。

# lssrc -g cluster

Subsystem Group PID Status

2.以root用户身份,运行smitty remove命令,删除所有“cluster.*”文件集。

(注意:如果是在非SP节点的AIX4.3.3的操作系统上,则也可以删除所有“rsct.*”文件集。)

# smitty remove

Remove Installed Software

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

* SOFTWARE name [cluster.adt.client.de>            +

PREVIEW only? (remove operation will NOT occur) no +

REMOVE dependent software? yes                     +

EXTEND file systems if space needed? no            +

DETAILED output? no                                +

3.以root用户身份,运行smitty chinet命令,设置每个节点以service IP地址引导。

# smitty chinet

Change / Show a Standard Ethernet Interface

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

Network Interface Name en0

INTERNET ADDRESS (dotted decimal) [9.16.3.21]

Network MASK (hexadecimal or dotted decimal) [255.255.255.0]

Current STATE up +

Use Address Resolution Protocol (ARP)? yes +

BROADCAST ADDRESS (dotted decimal) []

4.以root用户身份,运行smitty chvg命令,设置每个节点所拥有的卷组在系统启动时自动被激活。

# smitty chvg

Change a Volume Group

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

* VOLUME GROUP name datavg

* Activate volume group AUTOMATICALLY yes +

at system restart?

* A QUORUM of disks required to keep the volume no +

group on-line ?

Convert this VG to Concurrent Capable? no +

Change to big VG format? no +

LTG Size in kbytes 128 +

Set hotspare characteristics n +

Set synchronization characteristics of stale n +

partitions

5.以root用户身份,运行smitty chfs命令,设置每个节点所拥有的文件系统在系统启动时自动被mount上。

# smitty chfs

--> Change / Show Characteristics of a Journaled File System

--> Mount AUTOMATICALLY at system restart? yes +

6.如果系统中设置了网络文件系统,那么以root用户身份,运行smitty nfs命令,设置定义的网络文件系统在系统启动时被共享出去或者是被mount上。

# smitty nfs

--> Network File System (NFS)

--> Change / Show Attributes of an Exported Directory

* PATHNAME of Directory to Export /newfs

* MODE to export directory read-write +

HOSTS & NETGROUPS allowed client access []

Anonymous UID [-2]

HOSTS allowed root access []

HOSTNAME list. If exported read-mostly []

Use SECURE OPTION? no +

Public filesystem? no +

* CHANGE export now, system restart or both both +

PATHNAME of alternate Exports file []

7.配置应用服务在系统启机时被启动,例如,可以在文件/etc/inittab 中增加有应用服务启动脚本的一行。

8.在每个HACMP节点上,清除/etc/hosts 文件中不再使用的有关boot地址标识的内容。

9.在每个HACMP节点上,如果/.rhosts文件不再被需要,删除该文件。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  HACMP