<div dir="ltr"><div>In fact I want to know if a hammer2 pfs could mirror to another mounted read-write hammer2 pfs.<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-04 21:23 GMT+08:00 Sven Gaerner <span dir="ltr"><<a href="mailto:sgaerner@gmx.net" target="_blank">sgaerner@gmx.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, May 04, 2014 at 08:31:38AM +0800, lhmwzy wrote:<br>
> In hammer1,the target of hammer-mirror must be a hammer pfs slave,which<br>
> means that the target can't be mounted and lived show the source hammer<br>
> pfs master changes.<br>
> For example,if the hammer pfs master is down,the mirror hammer pfs<br>
> slave will not online automaticly which like a cluster filesystem will do.<br>
><br>
> I read the hammer2 design document and find that hammer2 can do this,am<br>
> I correct?<br>
><br>
> All things I want is hammer-mirror run between many hammer pfs, each<br>
> hammer pfs can be mounted with read (and write) mode while a ongoing<br>
> hammer-mirror.<br>
><br>
> Sorry for my bad english.I wish you could understand what I have say.<br>
<br>
</div></div>You can only access a PFS slave in read-only mode. You have to upgrade<br>
(hammer pfs-upgrade) a PFS slave to a PFS master to also allow<br>
read-write access. But then you cannot use mirror-copy to update this<br>
master PFS. The hammer mirror-copy works only from one PFS master to<br>
many PFS slaves.<br>
<br>
But you can use mirror-stream to continuously update your PFS slave from<br>
you PFS master, while at least the master is in use.<br>
<br>
Automatically replacing a going down PFS master with one of its PFS<br>
slave might be possible, but this will manual work. I don't know if<br>
there is a out-of-the-box solution.<br>
<br>
In hammer2 this might change (I did not follow the latest changes in the<br>
development), but AFAIK hammer2 is still under heady development.<br>
<span class="HOEnZb"><font color="#888888"><br>
Sven<br>
<br>
</font></span></blockquote></div><br></div>