<div dir="ltr"><div>Note that for slave pfs, if you are to newly create one by pfs-slave,</div><div>you can not either cd, stat or mount it until you once sync with</div><div>a master.</div><div><br></div><div>This is because a slave doesn't have a root inode (root directory)</div><div>right after initialization.</div><div><br></div><div>It does have a pfs meta data that identifies the existence of the</div><div>slave pfs (@@0x00000... thing you see on readlink(2)), but it's</div><div>different from that slave filesystem being mountable.</div><div><br></div><div><br></div><div># hammer pfs-slave slave > /dev/null</div><div># file ./slave/</div><div>./slave/: cannot open `./slave/' (No such file or directory)</div><div># cd ./slave/</div><div>cd: no such file or directory: ./slave/</div><div># mount_null ./slave /mnt</div><div>mount_null: /HAMMER/@@0x0000000000000001:00002: No such file or directory</div><div># hammer pfs-update slave shared-uuid=337aa2d9-ea95-11e4-9a6a-75d435a9db68 > /dev/null</div><div># hammer mirror-copy ./master ./slave</div><div>Prescan to break up bulk transfer</div><div>Prescan 1 chunks, total 0 MBytes (208)</div><div>Mirror-read ./master succeeded</div><div># file ./slave/</div><div>./slave/: directory</div><div># cd ./slave/</div><div># cd ..</div><div># mount_null ./slave /mnt</div><div># mount | grep /mnt</div><div>/HAMMER/@@0x00000001000080e0:00002 on /mnt (null)</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-21 21:42 GMT+09:00  <span dir="ltr"><<a href="mailto:nans_nans1@yahoo.de" target="_blank">nans_nans1@yahoo.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I create a hammer slave with "hammer -v mirror-stream /pfs/master /pfs/slave"<br>
Is it necessary to create a softlink "ln -s /pfs/slave /somewhere" or mountpoint "mount_null /pfs/slave /mnt/slave" to access the hammer slave?<br>
Or can i directly access the hammer slave with "cd /pfs/slave"?<br>
<br>
What about the master? The same questions as above.<br>
<br>
(Sorry for my incredibly bad english)<br>
<br>
</blockquote></div><br></div>