HAST and CARP
hiroshi at soupacific.com
hiroshi at soupacific.com
Thu Jul 1 07:29:28 UTC 2010
HI folks !
I finished to run HAST with CARP and ifstated.
Question I haove now.
SERVERA is master for CARP and HAST
then boot SERVERB
ServerB is using CARP and ifstated.
First CARP state is INIT then BACKUP
Similar to ucarp's method, vip-down.sh is called.
vip-down.sh calls carp_down.sh
Inside is almost same to ucarp_down.sh except delete ucarp staff.
if I do not put hastctl create xxxx, then hastd refuse connection and
message says
Split-brain detected secondary !
I put debug call but I can not figure out what kind value is correct.
} else if (res->hr_secondary_localcnt > res->hr_primary_remotecnt &&
res->hr_primary_localcnt > res->hr_secondary_remotecnt) {
/*
* Not good, we have split-brain condition.
*/
//hiroshi debug
pjdlog_error("secondary_remotecnt %lu, primary_remotecnt %lu",
res->hr_secondary_remotecnt, res->hr_primary_remotecnt);
pjdlog_error("secondary_localcnt %lu, primary_localcnt %lu",
res->hr_secondary_localcnt, res->hr_primary_localcnt);
pjdlog_error("Split-brain detected, exiting.");
nv_add_string(nvout, "Split-brain condition!", "errmsg");
free(map);
map = NULL;
mapsize = 0;
} else /* if (res->hr_secondary_localcnt < res->hr_primary_remotecnt ||
hastctl status return perfect as secondary.
Only looks like connection error.
When using ucarp with debug
Booting as secondary
vip-up.sh
then
vip-down.sh
But CARP,
only calls vip-dwon.sh directly.
Once I put hastctl create xxx before hastctl role secondary. Things
works fine.
Do I need hastctl create xxx or split-brain secondary is wrong?
My complete files are here.
http://www.soupacific.com/VivaFreeBSD_HAST/hastquick.html
Anybody to try HAST with CARP, please try! but any mistake I made, All
risk is your own please.
My HAST, CARP and ifstated works fine!
Thanks
Hiroshi Katayama
Hiorhis
More information about the freebsd-fs
mailing list