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

From: David S. Madole (david_at_madole.net)
Date: 11/26/05

  • Next message: Dag-Erling Smørgrav: "Re: Running a shell script on becoming the CARP master?"
    To: <matthew@digitalstratum.com>, <freebsd-hackers@freebsd.org>
    Date: Sat, 26 Nov 2005 11:15:38 -0500
    
    

    From: "Matthew Hagerty" <matthew@digitalstratum.com>
    >
    > 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 don't know of any way to do the former, but for the latter it's easy
    enough to temporarily adjust the advbase setting higher on the master
    until failover occurs. Set it to at least three times the setting on the
    slave.

    Or simply ifconfig down the carp interface on the master.

    David

    _______________________________________________
    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: Dag-Erling Smørgrav: "Re: Running a shell script on becoming the CARP master?"

    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: Running a shell script on becoming the CARP master?
      ... >>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. ... I was looking at the ifconfig output and it certainly could be parsed ...
      (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)