Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Sat, Mar 25, 2006 at 01:34:00PM -0800, Ben wrote: > I'm attempting to integrate heartbeat with drbd, and I'm a bit > confused as to how to adapt the getting started guides to make it > work for me. > > My understanding is that if I make a heartbeat resource that looks > like this: > > node1 drbddisk::web Filesystem::/dev/drbd0::/mnt/ha 192.168.0.1 httpd > > ...then /mnt/ha will be mounted or unmounted as required, which is > cool if I actually wanted my drbd disk mounted. However, I'm planning > on using Xen, and that is not the case. All I want out of heartbeat > is to switch around whether a disk should be primary/secondary. > (Well, and also to kick off/kill a domU when needed, but that > configuration comes later.) > > So.... do I need to rewrite the Filesystem heartbeat resource to > something that doesn't require a mountpoint argument? Or am I missing > something? You'll have to create a script in /etc/init.d or /etc/ha.d/resource.d that does the starting and stoping of the domU instance. Use one of the scripts already on resource.d as a template, and change your haresources to call the new script (after drbddisk::whatever). -- lfr 0/0