DRBD

http://www.sgenomics.org/~jtang/blog/posts/Experimenting_with_DRBD_for_data_replication_for_backup_purposes/

DRBD http://www.drbd.org - I downloaded the centos srpms for v8.3.x and rebuilt them for scientificlinux.

Scientificlinux 5.4 http://www.scientificlinux.org

# # please have a a look at the example configuration file in # /usr/share/doc/drbd83/drbd.conf # global { usage-count no; } common { syncer { rate 33M; verify-alg sha1; } } resource r0 { protocol C; startup { wfc-timeout 0; degr-wfc-timeout 120; } net { cram-hmac-alg "sha1"; shared-secret "mysharedkey"; } on myhost.mydomain1 { device /dev/drbd0; disk /dev/sdb2; address 10.0.0.1:7788; meta-disk internal; } }
/etc/init.d/drbd restart drbdadm create-md r0 /etc/init.d/drbd restart drbdadm -- --overwrite-data-of-peer primary r0 /etc/init.d/drbd restart mkfs.ext3 /dev/drbd0 mount /dev/drbd0 /mnt/r0
on myhost.mydomain2 { device /dev/drbd0; disk /dev/sdb2; address 10.0.0.2:7788; meta-disk internal; }
drbdadm disconnect all drbdadm invalidate-remote all drbdadm primary all drbdadm connect all
drbdadm disconnect all drbdadm invalidate all drbdadm connect all
/dev/drbd0 /home ext3 defaults,noauto,usrquota,grpquota 0 0
drbdadm primary all mount /home

[root@myhost.mydomain1 ~]# drbdadm primary r0
0: State change failed: (-2) Refusing to be Primary without at least one UpToDate disk
Command 'drbdsetup 0 primary' terminated with exit code 17

drbdadm -- --overwrite-data-of-peer primary all