AIX下卸載HACMP軟體 本文介紹了在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 clstopStop 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 clusterSubsystem Group PID Status 2.以root使用者身份,運行smitty remove命令,刪除所有“cluster.*”檔案集。(注意:如果是在非SP節點的AIX4.3.3的作業系統上,則也可以刪除所有“rsct.*”檔案集。)# smitty removeRemove Installed SoftwareType 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 chinetChange / Show a Standard Ethernet InterfaceType or select values in entry fields.Press Enter AFTER making all desired changes.[Entry Fields]Network Interface Name en0INTERNET 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 chvgChange a Volume GroupType 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檔案不再被需要,刪除該檔案。