Hi, list How I can use CARP for failover? I need run script from CARP, when machine status change from backup to master? By. Dmitriy
On Wednesday 15 June 2005 22:39, Dmitriy Kirhlarov wrote:> Hi, list > > How I can use CARP for failover? > I need run script from CARP, when machine status change from backup to > master?Take a look at net/ifstated from ports. As far as I understand devd can do something like this as well since the new dhclient is around. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050615/7b448e5c/attachment.bin
Hi Ivan! On Thu, 16 Jun 2005, Ivan B. Serezhkin wrote:> Dmitriy Kirhlarov wrote: > > >Hi, list > > > >How I can use CARP for failover? > >I need run script from CARP, when machine status change from backup to > >master? > > > > > Try to use freevrrpd.I try. In my /var/log/messages I get: kernel: carp_input: packet received on non-carp interface: rl1 kernel: carp_input: packet received on non-carp interface: rl0 kernel: carp_input: packet received on non-carp interface: rl1 kernel: carp_input: packet received on non-carp interface: rl0 kernel: carp_input: packet received on non-carp interface: rl1 By. Dmitriy
Hello, Have a look at: http://www.countersiege.com/doc/pfsync-carp/ and man carp(4). Use pfsync for state synchronization. Try ifstated to run script when host status change (master/backup). You should redirect your question to freebsd-pf. Regards, Benjamin Constant TI Automotive> -----Original Message----- > From: owner-freebsd-stable@freebsd.org > [mailto:owner-freebsd-stable@freebsd.org] On Behalf Of > Dmitriy Kirhlarov > Sent: jeudi 16 juin 2005 13:49 > To: freebsd-stable@freebsd.org > Subject: Re: carp run script > > Hi Ivan! > > On Thu, 16 Jun 2005, Ivan B. Serezhkin wrote: > > > Dmitriy Kirhlarov wrote: > > > > >Hi, list > > > > > >How I can use CARP for failover? > > >I need run script from CARP, when machine status change > from backup > > >to master? > > > > > > > > Try to use freevrrpd. > > I try. > In my /var/log/messages I get: > kernel: carp_input: packet received on non-carp interface: rl1 > kernel: carp_input: packet received on non-carp interface: rl0 > kernel: carp_input: packet received on non-carp interface: rl1 > kernel: carp_input: packet received on non-carp interface: rl0 > kernel: carp_input: packet received on non-carp interface: rl1 > > By. > Dmitriy > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" >The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. This communication is from TI Automotive.
On Thu, Jun 16, 2005 at 12:39:57AM +0400, Dmitriy Kirhlarov wrote: D> How I can use CARP for failover? Just create CARP interfaces on both boxes, assign them same IP address, same vhid and password. D> I need run script from CARP, when machine status change from backup to master? If the last sentence was a question, then the answer is: no, you don't need any scripts for CARP to failover. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE