Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Nov 2016 21:56:22 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   Re: hastd operation, stale primary
Message-ID:  <20161119145622.GA30297@admin.sibptus.transneft.ru>
In-Reply-To: <20161116140613.GA39850@admin.sibptus.transneft.ru>
References:  <20161116140613.GA39850@admin.sibptus.transneft.ru>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Nobody is using HAST?

Victor Sudakov wrote:
> 
> I have read https://www.freebsd.org/doc/handbook/disks-hast.html and
> https://wiki.freebsd.org/HAST and still don't understand one thing.
> 
> I configure host1 as "hastctl role primary all" and host2 as 
> "hastctl role secondary all"
> 
> Then I switch off host1 and configure host2 as 
> "hastctl role primary all", fsck and mount /dev/hast/test, and write
> files to it. So far so good.
> 
> Then I switch on host1 again, unmount /dev/hast/test on host2 and
> configure it as "hastctl role secondary all" and host1 as 
> "hastctl role primary all" again. 
> 
> When I mount /dev/hast/test on host1, I see that all the changes to my
> files which have been made on host2, are gone!!
> 
> Should not hastd detect that the primary on host1 is stale and
> replicate the changes from host2?
> 
> What am I doing wrong? How is host1 supposed to preempt host2 and
> inherit the changes made while host2 was primary?
> 

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20161119145622.GA30297>