Re: Running a shell script on becoming the CARP master?

From: Matthew Hagerty (matthew_at_digitalstratum.com)
Date: 11/27/05

  • Next message: John-Mark Gurney: "Re: to list all the devices in freebsd &definition analyse"
    Date: Sat, 26 Nov 2005 21:56:44 -0500
    To: Dominic Marks <dom@goodforbusiness.co.uk>
    
    

    Dominic Marks wrote:

    >On Saturday 26 November 2005 15:14, Matthew Hagerty wrote:
    >
    >
    >>Greetings,
    >>
    >>Are there any hooks into CARP to run a shell script when a machine
    >>becomes the master? Also, is there a way to force a machine to become
    >>the master without powering off the current master (for example to do
    >>maintenance on the current master)?
    >>
    >>
    >
    >I believe there was supposed to be a utility for this sort of thing
    >but I haven't seen or heard anything about it. In the mean time a
    >program which read the data could probably be built from the ifconfig
    >code quite simply. It would be really nice if there were kevent
    >notifications for CARP events.
    >
    >
    >
    >>Thanks,
    >>Matthew
    >>_______________________________________________
    >>freebsd-hackers@freebsd.org mailing list
    >>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    >>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    >>
    >>
    >>
    >
    >
    >
    I was looking at the ifconfig output and it certainly could be parsed
    for the CARP status I suppose, but it just seemed a little crude and I
    wanted to make sure I was not missing something more obvious. Do you
    know if the CARP interface is up, available, and stable by the time
    /usr/local/etc/rc.d scripts are run?

    Thanks,
    Matthew

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: John-Mark Gurney: "Re: to list all the devices in freebsd &definition analyse"

    Relevant Pages

    • Re: CARP-related error on 5.4RC3
      ... Sorry to follow up on my own post, but more CARP weirdness on 5.4RC3. ... When I reboot the master, the backup quickly takes over -- just as you ... > above the carp interfaces. ...
      (freebsd-stable)
    • Re: CARP not balancing automatically
      ... I need one carp interface to be master and one backup on box A, and the opposite master/backup on box B. Or am I totally misunderstanding with the preemtp sysctl is for? ... other host: ...
      (freebsd-stable)
    • Re: Running a shell script on becoming the CARP master?
      ... On Saturday 26 November 2005 15:14, Matthew Hagerty wrote: ... > Are there any hooks into CARP to run a shell script when a machine ... > the master without powering off the current master (for example to do ... notifications for CARP events. ...
      (freebsd-hackers)
    • Re: CARP not balancing automatically
      ... My only problem is that the balancing doesn't happen ... The configuration is just from the carp man page: ... MASTER for both carp0 and carp1 interfaces and remains so even after ... The only way to make the balance change is to bring down carp0 on the ...
      (freebsd-stable)
    • Re: CARP + PFSYNC + NAT
      ... balancing, which CARP only does for LAN traffic, not routed) I believe the ... problem you have is no carp interface is set to be a master ... "advskew" in CARP man page). ... > pass bar ...
      (comp.unix.bsd.openbsd.misc)