hacmp環境下更改ip地址

1、依據IBM官網上文檔進行動做網絡

 
 
內容提要:
環境:
AIX 5L
HACMP 5.2/5.3/5.4
步驟:
1.獲取當前HACMP環境裏配置的IP地址
#/usr/sbin/cluster/utilities/cllsif > /tmp/cllsif.orig
/tmp/cllsif.orig文件裏就會包含HACMP網卡當前的IP地址
2.中止全部節點的HACMP服務
#smit clstop --> 選擇HA的兩個節點 --> 回車
3.在兩個節點上分別編輯/etc/hosts,將boot, standby, service更改爲要求的IP地址
4.在兩個節點上分別用」smit chinet」更改boot和standby網卡的IP爲要求的IP,須要和/etc/hosts中的IP對應一致
5.在兩個節點上互相ping對方的boot和standby的IP,確保能ping通
6.在HACMP配置裏更改IP
6.1.更改Service IP
第一步:刪除原來的service IP label
# smit hacmp --> Extended Configuration --> Extended Resource Configuration --> HACMP Extended Resources Configuration --> Configure HACMP Service IP Labels/Addresses --> Remove Service IP Label(s)/Address(es) --> 選擇IP標籤 --> 回車
第二步:添加新的Service IP Label
# smit hacmp --> Extended Configuration --> Extended Resource Configuration --> HACMP Extended Resources Configuration --> Configure HACMP Service IP Labels/Addresses --> Add a Service IP Label/Address --> Configurable on Multiple Nodes --> 選擇網絡(好比net_ether_01) --> 在IP Label/Address處選擇新的Server IP標籤(列表中應該能看到更改後的server IP) --> 回車
6.2.更改boot IP
# smit hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Nodes --> Change/Show a Node in the HACMP Cluster --> 選擇一個節點 --> 在Communication Path to Node處從新選擇新的boot IP --> 回車執行
用一樣的方法爲另外一個節點選擇新的boot IP
6.3.更改standby IP
第一步:刪除原來的standby interface
# smit hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Communication Interfaces/Devices --> Remove Communication Interfaces/Devices --> 選擇一個節點的standby接口 --> 回車執行
第二步:添加新的standby interface到網絡(好比net_ether_01)中
# smit hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Communication Interfaces/Devices --> Add Communication Interfaces/Devices --> Add Pre-defined Communication Interfaces and Devices --> Communication Interfaces --> 選擇網絡(好比net_ether_01) --> 在IP Label/Address處選擇更改後的standby IP,在Node Name處選擇standby IP對應的節點名,在Network Interface處輸入standby IP對應的網絡接口 --> 回車執行
用上述方法更改另外一個節點的standby IP。
7.同步HACMP
#smit hacmp --> Extended Configuration --> Extended Verification and Synchronization --> 在Verify, Synchronize or Both處選擇Both --> 回車執行
8.檢查更改是否生效
1) #cd /var/hacmp/odmcache
2) 進入另外一個節點名爲名字的文件夾
3) #cd _etc_objrepos
4) #export ODMDIR=./
5) #odmget CuAt | grep –p enX //enX爲boot後者standby的接口名
6) 察看上述命令輸出的IP地址是否已是更改後的,而後用一樣的方法察看本節點的IP地址是否已經被改變。
7) #export ODMDIR=/etc/objrepos //將ODM的路徑改回原來的路徑
若是條件容許,也請在另外一個節點上察看ODM的IP記錄是否變動正確。

9.啓動HACMP服務
# smit clstart --> 選擇兩個節點啓動
#/usr/sbin/cluster/utilities/cllsif > /tmp/cllsif.new //查看HA啓動後的IP設置,比較/tmp/cllsif.new文件和先前的/tmp/cllsif.orig文件,全部ip地址的改變都將反映出來。
10. 進行必要的HACMP資源接管測試。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2、service ip地址還需在資源組中進行改變ide

HACMP > Extended Configuration > HACMP Extended Resources Configuration >
將新service ip地址添加,兩邊作;
相關文章
相關標籤/搜索