Clark's Home page

Tecnicismi vari di un Sysadmin Linux ma anche qualcosa della sua vita

global_common.conf —

Nella configurazione drbd questa come dice anche il nome e’ la parte comune di configurazione comune a tutti i device e si trova in /etc/drbd.d

Deve essere identica su ambo le macchine e definisce i parametri comuni e le azioni da eseguire in caso di split-brain o comunque di caduta del nodo.

global {
usage-count no;

udev-always-use-vnr; # treat implicit the same as explicit volumes

}

common {
handlers {
pri-on-incon-degr “echo o > /proc/sysrq-trigger ; halt -f”;
pri-lost-after-sb “echo o > /proc/sysrq-trigger ; halt -f”;
local-io-error “echo o > /proc/sysrq-trigger ; halt -f”;
outdate-peer “/usr/lib/heartbeat/drbd-peer-outdater -t 5”;
pri-lost “echo pri-lost. Have a look at the log files. | mail -s ‘DRBD Alert’ clark@myfirm.local”;
split-brain “echo split-brain. drbdadm — –discard-my-data connect $DRBD_RESOURCE ? | mail -s ‘DRBD Alert’ clark@myfirm.local”;
}

startup {
wfc-timeout  0;
degr-wfc-timeout 120;    # 2 minutes.
}

options {
# cpu-mask on-no-data-accessible

# RECOMMENDED for three or more storage nodes with DRBD 9:
# quorum majority;
# on-no-quorum suspend-io | io-error;
}

disk {
on-io-error   detach;
no-disk-flushes;
no-disk-barrier;
c-plan-ahead 10;
c-fill-target 24M;
c-min-rate 10M;
c-max-rate 100M;
}

net {

max-buffers             36k;
sndbuf-size            1024k;
rcvbuf-size            2048k;
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
rr-conflict disconnect;
}
}

 

Indietro                                                                      Avanti

 


Categorised as: Cluster | Linux | Work

Comments are disabled on this post


Comments are closed.


Hide picture