Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2617678
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 系统运维

2008-10-17 21:41:05

本文介绍了在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

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
* Stop now, on system restart or both now +

BROADCAST cluster shutdown? true +
* Shutdown mode graceful +
(graceful, graceful with takeover, forced)

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

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? no +
EXTEND file systems if space needed? no +
DETAILED output? 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

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) []

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

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

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

5.以root用户身份,运行smitty chfs命令,设置每个节点所拥有的文件系统在系统启动时自动被mount上。
# smitty chfs
Change / Show Characteristics of a Journaled File System

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]
File system name /datafs
NEW mount point [/datafs]
SIZE of file system
Unit Size 512bytes +
* Number of units [0] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Fragment Size (bytes)
Number of bytes per inode
Compression algorithm
[MORE...2]

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

6.如果系统中设置了网络文件系统,那么以root用户身份,运行smitty nfs命令,设置定义的网络文件系统在系统启动时被共享出去或者是被mount上。
# smitty nfs
--> Network File System (NFS)
--> Change / Show Attributes of an Exported Directory

Change Attributes of an Exported Directory

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
* 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 []

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

7.配置应用服务在系统启机时被启动,例如,可以在文件/etc/inittab中增加有应用服务启动脚本的一行。
8.在每个HACMP节点上,清除/etc/hosts文件中不再使用的有关boot地址标识的内容。
9.在每个HACMP节点上,如果/.rhosts文件不再被需要,删除该文件。

阅读(4127) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~