Editing
DRBD
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Configure DRBD=== Create an entry in <tt>/etc/drbd.conf</tt> using your favorite editor: <pre> resource vs03 { protocol C; incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f"; startup { wfc-timeout 100; degr-wfc-timeout 120; # 2 minutes. } disk { on-io-error pass_on; } net { # sndbuf-size 512k; # timeout 60; # 6 seconds (unit = 0.1 seconds) # connect-int 10; # 10 seconds (unit = 1 second) # ping-int 10; # 10 seconds (unit = 1 second) # max-buffers 2048; # max-epoch-size 2048; # ko-count 4; # on-disconnect reconnect; } syncer { rate 10M; group 1; al-extents 257; } on cel600 { device /dev/drbd1; disk /dev/vg0/lvvs03; address 192.168.0.22:7789; meta-disk /dev/vg0/lvvs03md[0]; } on xp2400 { device /dev/drbd1; disk /dev/vg0/lvvs03; address 192.168.0.21:7789; meta-disk /dev/vg0/lvvs03md[0]; } } </pre> Start DRBD /etc/init.d/drbd start The DRBD resource is in an undefined state. It needs to be forced to be 'primary' on the current node. drbdsetup /dev/drbd1 primary --do-what-I-say Obviously a filesystem is needed on top of DRBD: mke2fs -j /dev/drbd1 Also we need a mount point somewhere: mkdir /mnt/vs03 As heartbeat is intended to manage the vserver, using the heartbeat script for mounting is a first test: /etc/ha.d/resource.d/Filesystem /dev/drbd1 /mnt/vs03 ext3 start
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information