From owner-freebsd-stable@FreeBSD.ORG Wed Jan 17 15:10:30 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BB2116A59A for ; Wed, 17 Jan 2007 15:10:30 +0000 (UTC) (envelope-from lists@leewelle.de) Received: from mail.verwayen.com (mail.verwayen.com [88.198.161.26]) by mx1.freebsd.org (Postfix) with ESMTP id 4121F13C448 for ; Wed, 17 Jan 2007 15:10:30 +0000 (UTC) (envelope-from lists@leewelle.de) Received: from localhost (localhost [127.0.0.1]) by mail.verwayen.com (Postfix) with ESMTP id 4DBF95844A; Wed, 17 Jan 2007 15:12:16 +0000 (UTC) Received: from mail.verwayen.com ([127.0.0.1]) by localhost (mail.verwayen.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05333-08; Wed, 17 Jan 2007 15:12:04 +0000 (UTC) Received: from [10.3.1.11] (gate.sntt.de [217.86.154.151]) by mail.verwayen.com (Postfix) with ESMTP id 799C558413; Wed, 17 Jan 2007 15:12:04 +0000 (UTC) From: Richard To: Nikos Vassiliadis In-Reply-To: <200701171608.55482.nvass@teledomenet.gr> References: <1169038057.23831.24.camel@richard02> <200701171608.55482.nvass@teledomenet.gr> Content-Type: text/plain Date: Wed, 17 Jan 2007 16:10:17 +0100 Message-Id: <1169046617.23831.46.camel@richard02> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Failover-HA-Setup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 15:10:30 -0000 Hi Nikos! Am Mittwoch, den 17.01.2007, 16:08 +0200 schrieb Nikos Vassiliadis: > > I am running heartbeat on a STABLE-system, the failover works fine for > > IP-adresses and I am able to see that a > > '/usr/local/etc/rc.d/mysql-server start' statement is issued. BUT since > > the variables for mysql are not set in rc.conf (Otherwise it would be > > started at startup), it isn't starting at all. > > > > So my question: How to set those rc.conf-variables in order to start > > services in such an setup? Or is there a better solution? > > Which service is highly available in this setup? MySQL? > How do you sync the data? ggate? I am using a "shared" SCSI-Storage inbetween these servers. The acive node mounts a Volume and the service is started. (Yes, I know, it isn't really HA since there is still a SPOF) > > I remember that heartbeat can call any script you it tell to. > So, you have to let heartbeat start MySQL. rc will just start > heartbeat. Yes, you are right, and exactly that was my problem. It didn't start. I worked around it by copying the startup-scripts from /usr/local/etc/rc.d to /usr/local/etc/ha.d/resource.d/ and removed the critical test which ask for the variables set in rc.conf. Thanks for all your help! Richard