HAST secondary identifying when it's dirty?

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Aug 22 11:39:10 UTC 2010


On Wed, Aug 18, 2010 at 02:33:00PM -0400, Michael W. Lucas wrote:
> Hi,
> 
> I have a HAST device set up between two systems.  It appears that the
> secondary doesn't know when it's dirty.  Is there any way for the
> secondary to know that its copy is incomplete?
> 
> For example, I had to resync my HAST partition due to a firewall
> issue.  While the master knows the secondary is dirty, the secondary
> thinks it's complete.  For example:
> 
> master# hastctl status
> mirror:
>   role: primary
>   provname: mirror
>   localpath: /dev/da0s2
>   extentsize: 2097152
>   keepdirty: 64
>   remoteaddr: 192.168.0.1
>   replication: memsync
>   status: complete
>   dirty: 24385683456 bytes
> 
> secondary# hastctl status
> mirror:
>   role: secondary
>   provname: mirror
>   localpath: /dev/da0s2
>   extentsize: 2097152
>   keepdirty: 0
>   remoteaddr: 192.168.0.2
>   replication: memsync
>   status: complete
>   dirty: 0 bytes
> 
> The secondary doesn't realize it's 24GB out of sync.
> 
> Is there any way for the secondary to get this information?

Nope. Secondary doesn't even know that synchronization is progress.
The only thing you can do is to:

	# ssh primary hastctl status

:)

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20100822/de2eb067/attachment.pgp


More information about the freebsd-fs mailing list