Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2012 11:18:31 +0800
From:      Marcelo Araujo <araujobsdport@gmail.com>
To:        Daniel Kalchev <daniel@digsys.bg>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Mirror of Raidz for data reliability
Message-ID:  <CAOfEmZi6vOhO=4eYd9YJau3Kad6rGF148sYax5LtSv5aAUwEzw@mail.gmail.com>
In-Reply-To: <4FB77248.50709@digsys.bg>
References:  <CBDBEF7C.2B265%trent@snakebite.org> <4FB77248.50709@digsys.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/5/19 Daniel Kalchev <daniel@digsys.bg>

>
>
> On 18.05.12 19:55, Trent Nelson wrote:
>
>> So, my thinking is=C5=A0 because both machines can see all disks, the ma=
ster
>> could import the zpool as normal, and the slave could import it read-onl=
y.
>> (Or not import it at all...)
>>
>
> The proper way of doing it is "not import it at all". ZFS is not an share=
d
> filesystem.
>
> If you have the second host mount the zpool even if read-only, you only
> guarantee that data on the pool will not be corrupted, but you cannot avo=
id
> the second "read-only" host panic or otherwise crash if it tries to acces=
s
> data which is no longer where it thinks it is, because the second host
> doesn't have access to the primary host's in-memory metadata about ZFS.
> Since ZFS is copy on write filesystem, chances are you will be accessing
> data that is no longer valid. Refreshing the internal ZFS state between t=
wo
> or more hosts is non-trivial (if it was, Sun would have done this, as it
> suits their usage) and in any case performance will suffer at least as mu=
ch
> as an true networked filesystem does, compared to "native" ZFS.
>
>

Yeap, you are right! In my environment I'm not doing ACTIVE-ACTIVE servers,
so, one of those controller always will be in stand-by mode. In case
someone need to have all data available in both machines at the same time,
the best choice right now is use HAST.

But my solution is to reach another necessity.

Best Regards,
--=20
Marcelo Araujo
araujo@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfEmZi6vOhO=4eYd9YJau3Kad6rGF148sYax5LtSv5aAUwEzw>