From owner-freebsd-stable@FreeBSD.ORG Wed Jan 17 16:24:31 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 A672716A407 for ; Wed, 17 Jan 2007 16:24:31 +0000 (UTC) (envelope-from freebsd@milfordmail.com) Received: from smtp109.sbc.mail.mud.yahoo.com (smtp109.sbc.mail.mud.yahoo.com [68.142.198.208]) by mx1.freebsd.org (Postfix) with SMTP id 637A713C428 for ; Wed, 17 Jan 2007 16:24:29 +0000 (UTC) (envelope-from freebsd@milfordmail.com) Received: (qmail 40095 invoked from network); 17 Jan 2007 15:57:49 -0000 Received: from unknown (HELO mail.milfordmail.com) (validateduser2@70.129.128.251 with login) by smtp109.sbc.mail.mud.yahoo.com with SMTP; 17 Jan 2007 15:57:49 -0000 X-YMail-OSG: RwlE2e8VM1ln.l4LqycTJEfEcb2Kya1sJP6rFyHub0zC6ODJ85h86i8QuGUyYp85LMHL_ejktmHzWB9WBo056c84hL0yOSk7Fw32_GhQFK3nxg_Zf83ypsOexSD1XnqIvyoWNqHwDQM2qZX1OZI_ujp9WZdcAKT7vv5Bp_EWir90ElnZqVWIbi7ZnEZg DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=mail; d=milfordmail.com; h=Received:From:To:References:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-Reply-To:Thread-Index:X-MimeOLE:Disposition-Notification-To:X-Scanner; b=pqqKzrpIFcwkqEeAEz37fRVOlzxv/t12HD1ndQPkFyyak5dMol1XhMVCzbu2FaJNN+2eulZLxdUjDMe5VDNI9SDjytmM4tKbSu76qHgDG8FGmmJ4QXTefVIBHbhDuTp5; Received: from [192.168.254.221] (helo=pentium4) by mail.milfordmail.com with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.66 (FreeBSD)) (envelope-from ) id 1H7DAa-000Hti-HU for freebsd-stable@freebsd.org; Wed, 17 Jan 2007 09:57:48 -0600 From: "Bill Milford" To: References: <1169038057.23831.24.camel@richard02><20070117142552.GC1225@dkirhlarov.mow.oilspace.com> <1169044590.23831.38.camel@richard02> Date: Wed, 17 Jan 2007 09:57:40 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1169044590.23831.38.camel@richard02> Thread-Index: Acc6TrTjSl2Kj9bLQfWZOOXUO0BM6AAAJQaw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Scanner: exiscan-acl for exim4 (http://duncanthrax.net/exiscan/) 9193967368ae5c0f674029126e0c840c3213f360 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 16:24:31 -0000 > From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd-stable@freebsd.org] On Behalf Of Richard > Sent: Wednesday, January 17, 2007 8:37 AM > To: freebsd-stable@freebsd.org > Subject: Re: Failover-HA-Setup > > Am Mittwoch, den 17.01.2007, 17:25 +0300 schrieb Dmitriy Kirhlarov: > > Hi! > > > > On Wed, Jan 17, 2007 at 01:47:37PM +0100, Richard wrote: > > > > > I am running heartbeat on a STABLE-system, the failover works fine for > > > IP-adresses and I am able to see that a > > > > Why you ignore carp(4) and ports/net/ifstated? > I asked for a better solution in my OP... > But since I am familiar with heartbeat on Linux, I thought I could give > it a try... > > > > > > '/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. > > > > You can use in /etc/rc.conf: > > > > [ -r /usr/local/etc/rc.mysql.conf ] && . /usr/local/etc/rc.mysql.conf > > > > and using this include for manipulate with mysql start variables. > > > > Your shared IP address moving with script, I think. This script can > > modify /usr/local/etc/rc.mysql.conf also. > At the moment, I am just using heartbeat which is capable of moving IPs > and Services from one Node to the other. > > > Thx! > > Richard > > _______________________________________________ You can modify the keyword section of the /usr/local/etc/rc.d/mysql-server(.sh) and add "nostart" This allows you to start it manually with /usr/local/etc/rc.d/mysql-server start, but it will not start at boot time as rcorder skips files with the nostart keyword. The startup variable can then be in /etc/rc.conf Bill