Config DRBD
This commit is contained in:
parent
e24df27207
commit
335d4f1743
|
@ -63,6 +63,69 @@ Adresse ipv6 publique : 2001:910:1360::3
|
|||
bridge_waitport 0 # suppression du délai avant que le port soit disponible pour le bridge
|
||||
bridge_fd 0 # suppression de délai avant que le forwarding du bridge soit établi
|
||||
|
||||
### Configuration DRBD
|
||||
|
||||
#### /etc/drbd.d/drbd1.res
|
||||
|
||||
resource drbd1 {
|
||||
meta-disk internal;
|
||||
device /dev/drbd1;
|
||||
|
||||
startup {
|
||||
wfc-timeout 20;
|
||||
become-primary-on both;
|
||||
}
|
||||
net {
|
||||
verify-alg sha256;
|
||||
allow-two-primaries yes;
|
||||
max-buffers 10k;
|
||||
max-epoch-size 10k;
|
||||
unplug-watermark 32;
|
||||
sndbuf-size 0;
|
||||
rcvbuf-size 0;
|
||||
}
|
||||
disk {
|
||||
on-io-error detach;
|
||||
#no-disk-flushes;
|
||||
#no-disk-barrier;
|
||||
c-plan-ahead 10;
|
||||
c-fill-target 150M;
|
||||
c-min-rate 10k;
|
||||
c-max-rate 500M;
|
||||
}
|
||||
|
||||
on mother { # hostname must match `uname -n` output
|
||||
disk /dev/md1; # Logical Volume on the provided host
|
||||
address 192.169.254.2:7789; # IP Address to be used to connect to the node with port
|
||||
}
|
||||
|
||||
on aunt { # hostname must match `uname -n` output
|
||||
disk /dev/md1; # Logical Volume on the provided host
|
||||
address 192.169.254.3:7789; # IP Address to be used to connect to the node with port
|
||||
}
|
||||
}
|
||||
|
||||
#### /etc/ocfs2/cluster.conf
|
||||
|
||||
cluster:
|
||||
name = sharedfs
|
||||
heartbeat_mode = local
|
||||
node_count = 2
|
||||
|
||||
node:
|
||||
cluster = sharedfs
|
||||
number = 0
|
||||
ip_port = 7777
|
||||
ip_address = 192.169.254.3
|
||||
name = aunt
|
||||
|
||||
node:
|
||||
cluster = sharedfs
|
||||
number = 1
|
||||
ip_port = 7777
|
||||
ip_address = 192.169.254.2
|
||||
name = mother
|
||||
|
||||
### Configuration MTA
|
||||
|
||||
#### /etc/postfix/transport
|
||||
|
|
|
@ -63,6 +63,69 @@ Adresse ipv6 publique : 2001:910:1360::2
|
|||
bridge_waitport 0 # suppression du délai avant que le port soit disponible pour le bridge
|
||||
bridge_fd 0 # suppression de délai avant que le forwarding du bridge soit établi
|
||||
|
||||
### Configuration DRBD
|
||||
|
||||
#### /etc/drbd.d/drbd1.res
|
||||
|
||||
resource drbd1 {
|
||||
meta-disk internal;
|
||||
device /dev/drbd1;
|
||||
|
||||
startup {
|
||||
wfc-timeout 20;
|
||||
become-primary-on both;
|
||||
}
|
||||
net {
|
||||
verify-alg sha256;
|
||||
allow-two-primaries yes;
|
||||
max-buffers 10k;
|
||||
max-epoch-size 10k;
|
||||
unplug-watermark 32;
|
||||
sndbuf-size 0;
|
||||
rcvbuf-size 0;
|
||||
}
|
||||
disk {
|
||||
on-io-error detach;
|
||||
#no-disk-flushes;
|
||||
#no-disk-barrier;
|
||||
c-plan-ahead 10;
|
||||
c-fill-target 150M;
|
||||
c-min-rate 10k;
|
||||
c-max-rate 500M;
|
||||
}
|
||||
|
||||
on mother { # hostname must match `uname -n` output
|
||||
disk /dev/md1; # Logical Volume on the provided host
|
||||
address 192.169.254.2:7789; # IP Address to be used to connect to the node with port
|
||||
}
|
||||
|
||||
on aunt { # hostname must match `uname -n` output
|
||||
disk /dev/md1; # Logical Volume on the provided host
|
||||
address 192.169.254.3:7789; # IP Address to be used to connect to the node with port
|
||||
}
|
||||
}
|
||||
|
||||
#### /etc/ocfs2/cluster.conf
|
||||
|
||||
cluster:
|
||||
name = sharedfs
|
||||
heartbeat_mode = local
|
||||
node_count = 2
|
||||
|
||||
node:
|
||||
cluster = sharedfs
|
||||
number = 0
|
||||
ip_port = 7777
|
||||
ip_address = 192.169.254.3
|
||||
name = aunt
|
||||
|
||||
node:
|
||||
cluster = sharedfs
|
||||
number = 1
|
||||
ip_port = 7777
|
||||
ip_address = 192.169.254.2
|
||||
name = mother
|
||||
|
||||
### Configuration MTA
|
||||
|
||||
#### /etc/postfix/transport
|
||||
|
|
Loading…
Reference in New Issue