怎樣卸載HACMP軟件

本文介紹了在AIX操作系統上如何卸裝已安裝配置好的HACMP軟件。

在使用後面的步驟卸裝HACMP軟件之前,收集所有下面命令執行後的輸出,以確定HACMP軟件中定義了哪些資源。

(1)# usrsbinclusterutilitiescllsif 或者 # usressbinclusterutilitiescllsif

(2)# usrsbinclusterutilitiesclshowres 或者 # usressbinclusterutilitiesclshowres

(3)# usrsbinclusterutilitescllsserv 或者 # usressbinclusterutilitescllsserv

(4)# usrsbinclusterutilitiescllscustom 或者 # usressbinclusterutilitiescllscustom

如果在usrsbincluster或者usressbincluster目錄中有定製的事件,應用服務的啓動停止腳本或者是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

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 readwrite +

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.配置應用服務在系統啓機時被啓動,例如,可以在文件etcinittab中增加有應用服務啓動腳本的一行。

8.在每個HACMP節點上,清除etchosts文件中不再使用的有關boot地址標識的內容。

9.在每個HACMP節點上,如果.rhosts文件不再被需要,刪除該文件。




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章