Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2016 21:06:13 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   hastd operation, stale primary
Message-ID:  <20161116140613.GA39850@admin.sibptus.transneft.ru>

Next in thread | Raw E-Mail | Index | Archive | Help
Dear Colleagues,

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?20161116140613.GA39850>