Date: Thu, 14 Jan 2016 14:23:46 +0400 From: Shahin Hasanov <shahinhasanov@hotmail.com> To: FREEBSD_QUESTION <freebsd-questions@freebsd.org> Subject: RE: the switching time hastd from secondary to primary Message-ID: <DUB127-W36479628640DB40F39E12BB6CC0@phx.gbl> In-Reply-To: <CAA2O=b84TtRyjYgFL9v1e36nERE4QFQoePx9LLFi10bC-cXHSA@mail.gmail.com> References: <DUB127-W2563827245EC96990575DDB6CC0@phx.gbl>, <CAA2O=b84TtRyjYgFL9v1e36nERE4QFQoePx9LLFi10bC-cXHSA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In /usr/local/sbin/ucarp_up.sh(below shown extract of it) script ucarp wa= iting while it became primary. It tooks about 20 sec as written http://www.= freebsd.org/cgi/man.cgi?query=3Dhast.conf&apropos=3D0&sektion=3D0&manpath= =3DFreeBSD+10.2-RELEASE&arch=3Ddefault&format=3Dhtml .=20 =20 for i in `jot 30`=3B do pgrep -f "hastd: ${resource} \(secondary\)" >/dev/null 2>&1 || brea= k sleep 1 done if pgrep -f "hastd: ${resource} \(secondary\)" >/dev/null 2>&1=3B then logger -p local0.error -t hast "Secondary process for resource ${re= source} is still running after 30 seconds." exit 1 fi =20 Date: Thu=2C 14 Jan 2016 11:31:58 +0300 Subject: Re: the switching time hastd from secondary to primary From: vsasjason@gmail.com To: shahinhasanov@hotmail.com CC: freebsd-questions@freebsd.org 14 =FF=ED=E2. 2016 =E3. 10:25 =EF=EE=EB=FC=E7=EE=E2=E0=F2=E5=EB=FC "Shahin = Hasanov" <shahinhasanov@hotmail.com> =ED=E0=EF=E8=F1=E0=EB: =0A= > =0A= > I can't change the switching time hastd from secondary to primary. it is = default time 20 sec.is it possible? In despite of that in etc/hast.conf was= written timeout 10 =0A= > =0A= > resource HAST0 { =0A= > replication memsync =0A= > compression lzf =0A= > timeout 10 =0A= > on node1 { =0A= > local /dev/da1p1 =0A= > remote 10.190.190.4 =0A= > } =0A= > on node2 { =0A= > local /dev/da1p1 =0A= > remote 10.190.190.3 =0A= > } =0A= > } =0A= http://www.freebsd.org/cgi/man.cgi?hastd =0A= A hastd daemon never picks its role automatically. The role has to be confi= gured with the hastctl(8) control utility by additional software like ucarp= or heartbeat that can reliably manage role separation and switch secondary= node to primary role in case of the primary's failure. =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB127-W36479628640DB40F39E12BB6CC0>