剛好我有做過, 來分享一下 : (不過我的 HACMP 是 5.3)1. 架構說明 : (1) 該 Stoage 的 LUN 在 兩台主機上設定的 VG Name 為 testvg , Filesystem 為 /testfs (2) HACMP+NFS : (Server1 為主要 NFS Server , 當 HA Takeover 時 Serve...
显示全部剛好我有做過, 來分享一下 : (不過我的 HACMP 是 5.3)
1. 架構說明 :
(1) 該 Stoage 的 LUN 在 兩台主機上設定的 VG Name 為 testvg , Filesystem 為 /testfs
(2) HACMP+NFS : (Server1 為主要 NFS Server , 當 HA Takeover 時 Server2 就變成 主要 NFS Server )
on Server1 : /testfs ---> 實體檔案空間, 需在 HACMP 內設定自動隨 resource group (testrg) 切轉
/testfs01 ---> nfs client mount point (NFS Server : Server1)
on Server2 : /testfs01 ---> nfs client mount point (NFS Server : Server1)
2. 大致程序 :
(1) testvg (含 /testfs) 相關設定在 Server1 & Server2 都要一致
(2) 將 Server1 & Server2 上 HACMP Service stop
(3) 於 Server1 上進入 HACMP 管理畫面增加一個 resource group (testrg), 在testrg resource group "All Resources and Attributes" 的畫面中
(a) 於 /usr/es/sbin/cluster/etc/ 下增加一個 exports 檔案 , 內容如下 :
/testfs -sec=sys:krb5p:krb5i:krb5:dh,rw,root=Server1:Server2
(b) Volume Groups選項, 請輸入 testvg. (如此 testvg才會隨著 testrg 切轉)
(c) Filesystems/Directories to Export 選項, 請輸入 testfs (NFS Sevrer export)
(d) Filesystems/Directories to NFS Mount 選項, 請輸入 testfs01;testfs (格式 Client;Server)
(e) HACMP Sync & Verify
(f) start HACMP on Server1 & Server2
(g) Server1 HACMP takeover to Server2 : 測試一下
3. 實際檔案會放於 /testfs ; 但所有 AP 或存取設定都是 /testfs01
收起