FreeBSD version: 10.3-RELEASE-p7 amd64
Zrep instalation form port.
Two host A and B, ssh between them works ok.
(ZREP documentation http://www.bolthole.com/solaris/zrep/zrep.documentation.html)
On host A create zpool, zfs:
initialization ZREP correctly
host A
host B (zprep correctly create test009)
but when i want to sync test009, i have this ERROR:
in ZREP source code https://github.com/bolthole/zrep/blob/master/zrep i find this (line 231)
maybe someone can help what is wrong with my /proc ??
thanks, kazix
Zrep instalation form port.
Two host A and B, ssh between them works ok.
(ZREP documentation http://www.bolthole.com/solaris/zrep/zrep.documentation.html)
On host A create zpool, zfs:
root@A:~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
big 839M 724G 192K /big
big/jails/test009 192K 724G 192K /usr/jails/test009
initialization ZREP correctly
root@A:~ # zrep init big/jails/test009 B big2/jails/test009
host A
root@opio1:~ # zrep status
big/jails/test009 last synced Fri Oct 14 5:59 2016
host B (zprep correctly create test009)
root@B:~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
...
big2/jails/test009 192K 725G 192K /usr/jails/test009
but when i want to sync test009, i have this ERROR:
root@A:~ # zrep sync big/jails/test009
[B]Error: /proc fs must be functional to use zrep[/B]
in ZREP source code https://github.com/bolthole/zrep/blob/master/zrep i find this (line 231)
Code:
#Note: it is an ERROR to call this if you already have lock
#It is binary, not recursive ownership.
zrep_get_global_lock(){
typeset retry_count=$Z_LOCK_RETRY
# Even though we use lockf if present.. check for stale locks still requires
# /proc. So quit if not available
[[ -d /proc/$$ ]] || zrep_errquit "/proc fs must be functional to use zrep"
if [[ -f /usr/bin/lockf ]] ; then
lockf -ks -t $retry_count $Z_GLOBAL_LOCKFILE true
if [[ $? -ne 0 ]] ; then return 1; fi
echo $Z_GLOBAL_PID >> $Z_GLOBAL_LOCKFILE
return 0
fi
ln -s /proc/$Z_GLOBAL_PID $Z_GLOBAL_LOCKFILE && return 0
thanks, kazix