Index ソフト・ハード Dovecot | PacemakerDrbd導入 |
機能 構成・方式 タスク 導入 クラスタ化 Dovecot pacemakerPKG DRBD 導入 デフォルト設定 登録リソース条件 DRBDのRA PrimitiveなRA RAグループ化 場所制約 colocation制約 order制約 エラークリア 確認 |
Dovecot ・両系にインストール済み 確認 ・自動起動は停止 ・各系確認 $ ps -aux | grep dovecotpacemakerパッケージ ・Postfixと同じ DRBD ・Postfixと同じ 導入 ・Postfixと同じ Pacemakerとリソースのデフォルト値の設定 ・Postfixと同じ 登録するリソースの条件 ・Postfixと同じ DRBDのリソースエージェント ・Postfixと同じ Primitiveなリソースエージェント ・Postfixと同じ ・Dovecotのリソース追加 # pcs resource create dovecot ocf:heartbeat:dovecot \ binary=/usr/sbin/dovecot config_dir=/etc/dovecot/dovecot.conf \ op start interval=0s op stop interval=0s op monitor interval=60s \ --group GrpMailリソースエージェントのグループ化 ・Postfixと同じ 場所制約 ・Postfixと同じ colocation制約 ・Postfixと同じ order制約 ・Postfixと同じ エラークリア ・Postfixと同じ # pcs resource cleanup確認 ・Postfixと同じ # crm configure show # pcs status
Cluster name: mailHa
Stack: corosync
Current DC: kvm4.xxxx.xxx (version 1.1.21-1.el7-f14e36f) - partition with quorum
Last updated: Tue Nov 3 15:39:31 2020
Last change: Tue Nov 3 15:38:51 2020 by root via cibadmin on kvm3.xxxx.xxx
2 nodes configured
6 resources configured
Online: [ kvm3.xxxx.xxx kvm4.xxxx.xxx ]
Full list of resources:
Master/Slave Set: ms_drbd_r0 [drbd_r0]
Masters: [ kvm3.xxxx.xxx ]
Slaves: [ kvm4.xxxx.xxx ]
Resource Group: GrpMail
fs_postfix (ocf::heartbeat:Filesystem): Started kvm3.xxxx.xxx
ML_VIP (ocf::heartbeat:IPaddr2): Started kvm3.xxxx.xxx
postfix (ocf::heartbeat:postfix): Started kvm3.xxxx.xxx
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
|
All Rights Reserved. Copyright (C) ITCL |