Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2010 09:07:37 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "hiroshi@soupacific.com" <hiroshi@soupacific.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: HAST configuration?
Message-ID:  <20100424070737.GC3067@garage.freebsd.pl>
In-Reply-To: <4BD24E16.8000302@soupacific.com>
References:  <20100416065126.GG1705@garage.freebsd.pl> <4BCD3979.8050107@soupacific.com> <4BCD5AD7.8070502@soupacific.com> <4BCFA4C2.6000109@soupacific.com> <4BCFB1C5.5000908@soupacific.com> <4BD01800.9040901@soupacific.com> <4BD0438B.5080308@soupacific.com> <4BD0E432.1000108@soupacific.com> <20100423061521.GC1670@garage.freebsd.pl> <4BD24E16.8000302@soupacific.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--XuV1QlJbYrcVoo+x
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 24, 2010 at 10:49:10AM +0900, hiroshi@soupacific.com wrote:
> Hi !
>=20
> I checked ucarp_up.sh and modified like this.
>=20
> # Wait few seconds for provider to appear.
> ##for i in `jot 50`; do
> for i in `jot 2000`; do
> 	[ -c "${device}" ] && break
> 	sleep 0.1
> done
>=20
> Then 30 seconds to a minute after login the box, /dev/hast and /hapool=20
> appears.
>=20
> So hastctl role primary test takes a while when nodeb is downed.
>=20
> I hope this info help you some.

That makes sense. Connection attempts are made in background, but with
one exception - role change. When the role is changed to primary I try to
connect to secondary _before_ creating /dev/hast/ provider, so if
secondary is fine, we will connect and everything will work. I wanted
to avoid situation where we create /dev/hast/ provider, system will
start to use it and we will connect to secondary a bit later. This will
trigger synchronization, which isn't desiriable when both nodes are in
good shape. I think the way to fix it is would be to decrease initial
connection timeout. I'll look into this.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--XuV1QlJbYrcVoo+x
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkvSmLkACgkQForvXbEpPzSZJwCdHhHVXDiwomU77Ou9cGoylSdM
lUoAn2PwvgZoYsREo2PIOVo0PW8bPBf6
=P6wc
-----END PGP SIGNATURE-----

--XuV1QlJbYrcVoo+x--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100424070737.GC3067>