怎樣卸載HACMP軟件

 

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

在使用後面的步驟卸裝HACMP軟件以前,收集全部下面命令執行後的輸出,以肯定HACMP軟件中定義了哪些資源。網絡

(1)# usrsbinclusterutilitiescllsif 或者 # usressbinclusterutilitiescllsifui

(2)# usrsbinclusterutilitiesclshowres 或者 # usressbinclusterutilitiesclshowresthis

(3)# usrsbinclusterutilitescllsserv 或者 # usressbinclusterutilitescllsservspa

(4)# usrsbinclusterutilitiescllscustom 或者 # usressbinclusterutilitiescllscustom操作系統

若是在usrsbincluster或者usressbincluster目錄中有定製的事件,應用服務的啓動中止腳本或者是HA羣集的快照文件,那麼建議將這些文件移至另一個目錄,以保證在卸裝HACMP軟件時不會刪除掉這些文件。ssr

下面是卸裝HACMP軟件的具體步驟:3d

1.在每一個HACMP節點上以graceful方式中止掉HACMP服務:rest

a.以root用戶身份,運行smitty clstop命令,在兩個HACMP節點上以graceful方式中止掉HACMP服務。blog

# 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文件再也不被須要,刪除該文件。

相關文章
相關標籤/搜索