捏麵大分享知識,舉Web Service為例,記實如下--

 

 

  ======================================================================

   1. software for node ? YES or Hardware for node?

2. software for Service? YES

3. 架構的部份:前端的Server,後端的share storage

4. Time Sync must be OK !!

5. 其實安裝完之後絕大部份是以Web管理介面為主(指Cluster機制及資訊)

===================================================================

Start Step

1. Service:Apache Server

2. share storage(iSCSI use):任一

 a. SBD(爆頭機制):空間其實50MB上下就可以,且ID 83(其實就是Hyper-V的仲裁機制)

 b. Apache資料使用(www)

 c. Enable iSCSI service

3. 環境配置:Node1(ha1)、 Node2(ha2) & share storage(gw)

4. iSCSI Service for gw

 a. Client server must be provide

 b. HDID must be different

   i. use command:iscsi-iname

   ii. ptath:/etc/iscsi/iscsi-initxx

 c. 避免mount錯硬碟,incoming & outgoing建議使用

5. ha1 & ha2 mount HD

 a. 掛載爆頭機制的HD(二台都要)

 b. iSCSI因為網路mount,機制是以最先找到的HD為主,因此Server必須給予唯一的HD來掛載(建議以HDID來掛載)

6. ha1 & ha2 enable cluster service

 a. Cluster Service

  i. softdog module enable on boot for DC server

  ii. corosync(同heartbeat機制) enable(好像沒必要一定要啟動?)

  iii. DC機制(ha-cluster-init):其中一台做即可,其他Server以加入的方式來處理

  iiii. web service access(管理機制的IP,port 7630)

  v. use crm command for cluster start

  vi. 加入cluster server的command:ha-cluster-join -c 管理ip

 b. use ocfs檔案格式

  i. ha1 & ha2 mount ocfs file:use command mkfs.ocfs2(must be clustername & HDID)

  ii. trouble shooting

   *. mounted.ocfs2 -t

   *. resource是否有先設好

7. cluster service管理網頁設定

 a. resource(指令或使用網頁)

  i. primitive config(必須先設好):

  ii. group config

  iii. clone config

  iiii. 掛載iSCSI storage

  v. modgroup base-group add ocfs2-1(乖乖用指令)

8. ha1 & ha2 apache service

 a. 可利用工具來同步設定檔:csync2 -xv

 b. 或利用管理界面來設定

===================================================================

Problem

1. 平時的機制是AA or SA?
2. SBD的判斷機制?目前是在ha1
3. cluster web 的加入?(自動加一個node,web cluster就會自動加入?)

arrow
arrow

    舞暉羅 發表在 痞客邦 留言(0) 人氣()