2007/6/27, Madison Kelly <[EMAIL PROTECTED]>:
Ciro Iriarte wrote:
> Hi, i have a basic heartbeat2 cluster running (the only resource is a
> floating ip address) and drbd-0.7.14 running on it's own on SLES9SP3.
> Anybody has a procedure to tie them up?, i'm kind of lost even with
> hb_gui (i'm not sure about Master/Slave ID for example).
>
> I can live with an active/standby filesystem but don't know if i
> should use a drbd, drbddisk or filesystem resource.
>
> Thanks in advanced
>
> Ciro
Can I assume you have DRBD working manually and Heartbeat working on
it's own?
If so, here is what I did on my Debian Etch install to tie the two
together (I asked the same question last week!). I am using DRBD8 but I
am also using an Active/Passive setup formatted as 'ext3' so it should
be the same for you. Also, I am using the '/etc/ha.d/haresources' file.
I haven't yet played with CRM but will do so once I get STONITH working.
# If you haven't already, add 'drbd' to modules so that it's loaded
# on boot
echo drbd >> /etc/modules
# In your case, you can ignore the PgSQL and Apache2 bits
# Update '/etc/ha.d/haresources' to fail over the DRBD partition.
# Edit the line to look like:
vash 192.168.2.13 drbddisk::r0 Filesystem::/dev/drbd0::/ha::ext3
postgresql-8.1 apache2
# On Each machine add the following lines to '/etc/rc.local'.
# If necessary set this file to 'chmod 755':
# The last line in '/etc/rc.local' must be 'exit 0'!
drbdadm up all
# Change the '/dev/drbd0', '/ha' and 'ext3' to match your setup.
# Edit the '/etc/fstab' file on either machine:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/drbd0 /ha ext3 defaults,noauto 0 0
That should do it!
Madison
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Thanks, i'll try to adapt this to the crm config. So, should I use
drbddisk (which isn't included on heartbeat2) instead of the oficial
drbd ocf script?
Ciro
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems