Différences entre versions de « DRBD »
Sauter à la navigation
Sauter à la recherche
imported>SylvainBeucler m (Nouvelle page : Distributed Replicated Block Device apt-get install drbd8-utils drbd8-modules-2.6-686 # ou variante: apt-get install drbd8-utils drbd8-modules-2.6-vserver-686 == Liens == * [ht...) |
imported>SylvainBeucler m |
||
Ligne 4 : | Ligne 4 : | ||
# ou variante: | # ou variante: | ||
apt-get install drbd8-utils drbd8-modules-2.6-vserver-686 | apt-get install drbd8-utils drbd8-modules-2.6-vserver-686 | ||
+ | |||
+ | == Configuration simple == | ||
+ | |||
+ | Primary/Secondary (il existe aussi Primary/Primary): | ||
+ | |||
+ | <pre> | ||
+ | global { | ||
+ | usage-count yes; | ||
+ | } | ||
+ | common { | ||
+ | protocol C; | ||
+ | syncer { rate 40M; } | ||
+ | startup { | ||
+ | become-primary-on VM1; | ||
+ | wfc-timeout 15; | ||
+ | degr-wfc-timeout 15; | ||
+ | #outdated-wfc-timeout 15; # not in DRBD 8.0/Lenny | ||
+ | } | ||
+ | } | ||
+ | resource r0 { | ||
+ | on VM1 { | ||
+ | device /dev/drbd0; | ||
+ | disk /dev/VG0/test; | ||
+ | address 192.168.101.115:7789; | ||
+ | meta-disk /dev/VG0/test-drbdmeta[0]; | ||
+ | } | ||
+ | on VM2 { | ||
+ | device /dev/drbd0; | ||
+ | disk /dev/VG0/test; | ||
+ | address 192.168.101.118:7789; | ||
+ | meta-disk /dev/VG0/test-drbdmeta[0]; | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
== Liens == | == Liens == | ||
* [http://www.drbd.org/users-guide/ The DRBD User's Guide] | * [http://www.drbd.org/users-guide/ The DRBD User's Guide] | ||
+ | * [[LVM]] |
Version du 30 octobre 2009 à 20:20
Distributed Replicated Block Device
apt-get install drbd8-utils drbd8-modules-2.6-686 # ou variante: apt-get install drbd8-utils drbd8-modules-2.6-vserver-686
Configuration simple
Primary/Secondary (il existe aussi Primary/Primary):
global { usage-count yes; } common { protocol C; syncer { rate 40M; } startup { become-primary-on VM1; wfc-timeout 15; degr-wfc-timeout 15; #outdated-wfc-timeout 15; # not in DRBD 8.0/Lenny } } resource r0 { on VM1 { device /dev/drbd0; disk /dev/VG0/test; address 192.168.101.115:7789; meta-disk /dev/VG0/test-drbdmeta[0]; } on VM2 { device /dev/drbd0; disk /dev/VG0/test; address 192.168.101.118:7789; meta-disk /dev/VG0/test-drbdmeta[0]; } }