version 1.5, 2005/02/03 17:51:12 |
version 1.6, 2005/02/07 06:08:10 |
|
|
run "ifconfig carp0 advskew 10" |
run "ifconfig carp0 advskew 10" |
run "ifconfig carp1 advskew 10" |
run "ifconfig carp1 advskew 10" |
} |
} |
if ! $net |
if ! $net |
set-state demoted |
set-state demoted |
} |
} |
|
|
state demoted { |
state demoted { |
|
|
run "ifconfig carp0 advskew 254" |
run "ifconfig carp0 advskew 254" |
run "ifconfig carp1 advskew 254" |
run "ifconfig carp1 advskew 254" |
} |
} |
if $net |
if $net |
set-state primary |
set-state primary |
} |
} |
|
|
state promoted { |
state promoted { |
|
|
run "ifconfig carp1 advskew 100" |
run "ifconfig carp1 advskew 100" |
} |
} |
# The "sleep 5" below is a hack to dampen the $carp_sync when we come |
# The "sleep 5" below is a hack to dampen the $carp_sync when we come |
# out of promoted state. Thinking about the correct fix... |
# out of promoted state. Thinking about the correct fix... |
if ! $carp_sync && $net && "sleep 5" every 10 |
if ! $carp_sync && $net && "sleep 5" every 10 |
if ! $carp_sync && $net |
if ! $carp_sync && $net |
set-state promoted |
set-state promoted |