解除安裝HACMP軟體

luckyfriends發表於2013-02-21

在使用後面的步驟卸裝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
--&gt Network File System (NFS)
--&gt 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檔案不再被需要,刪除該檔案。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14710393/viewspace-754445/,如需轉載,請註明出處,否則將追究法律責任。

相關文章