Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Thanks! That's exactly what I needed to know. So, my next question is, after doing this, pulling the network cable out and watching heartbeat perform as desired, plugging the network cable back in and watching heartbeat perform as desired, I see that things didn't quite return to normal. One node sees a DRBD disk in Primary/Unknown, and the other sees the disk in Secondary/Unknown. I'm able to use the disk just fine on the primary, but why isn't each node able to see the state of the other node? And should I be worried? On Mar 25, 2006, at 1:52 PM, Gary W. Smith wrote: > It breaks down like this > > node1 > # Take over the primary drbd node > drbddisk::web > # Mount that node > Filesystem::/dev/drbd0::/mnt/ha > # Assign on IP > 192.168.0.1 > # Start httpd > httpd > > So, if you just want to take over the disk, assign an ip and start > httpd > then logically you can just skip the Filesystem command that mounts > the > drive. > > Something to note, httpd in this case is /etc/rc.d/init.d/httpd. We > found it useful for creating custom actions. Basically you can make a > custom script (say emailing us that a node has changed) as well as it > conforms to the init.d standard. You might find this useful for your > HA/xen stuff. > > BTW, there is much more information on this in the linux-ha list. > > Hope this helps. > > Gary Wayne Smith > > -----Original Message----- > From: drbd-user-bounces at lists.linbit.com > [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Ben > Sent: Saturday, March 25, 2006 1:34 PM > To: drbd-user at lists.linbit.com > Subject: [DRBD-user] newbie drbd/HA configuration question > > 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? > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user