- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
This is an old revision of the document!
Note: Fibre channel - cheap stuff!!!
Requirements
- Two disks (preferably same size and my lovely LVM)
- Networking between machines (node1 & node2), Tip: VMPlayer LAN Segments
- Working DNS resolution (/etc/hosts file)
- Selinux disabled
- Iptables ports (7788) allowed
- and lot of patience
Install ELRepo repository on your both system:
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
Update both repo:
yum update -y
Install DRBD:
[root@node1 ~]# yum -y install drbd84-utils kmod-drbd84 [root@node2 ~]# yum -y install drbd84-utils kmod-drbd84
Insert drbd module manually on both machines or reboot:
/sbin/modprobe drbd
Partition DRBD on both machines (the ugly way):
[root@node1 ~]# fdisk -cu /dev/sdb [root@node2 ~]# fdisk -cu /dev/sdb
and the right way:
[root@node1 ~]# lvcreate -L 4GB -n mail_disk vg_jahoda [root@node2 ~]# lvcreate -L 4GB -n mail_disk vg_boruvka
resource mail_disk { startup { wfc-timeout 30; outdated-wfc-timeout 20; degr-wfc-timeout 30; } net { cram-hmac-alg sha1; shared-secret sync_disk; } syncer { rate 100M; al-extents 257; on-no-data-accessible io-error; } on node1 { device /dev/drbd0; disk /dev/jahoda/mail; address 10.1.1.1:7788; flexible-meta-disk internal; } on node2 { device /dev/drbd0; disk /dev/boruvka/mail; address 10.1.1.2:7788; meta-disk internal; } }
drbdadm – –overwrite-data-of-peer primary repdata
drbdadm – –overwrite-data-of-peer primary repdata
linux/skoleni/ha.1424911132.txt.gz · Last modified: 2015/02/26 01:38 by admin