znapzend 无法接收新的文件系统流:数据集正忙

znapzend 无法接收新的文件系统流:数据集正忙

有 2 个测试系统运行最新的 Nexenta 4.0.3-FP4community。主系统和从系统,

两台机器上都安装了 mbuffer,主机间 ssh 信任正常

当在主复制上运行 znapzend 时,快照未发送到从属系统,这里是我的 znapzend znapzend 调试日志:

你能解释一下问题出在哪里吗?

./znapzend --debug --runonce=oztssdpool/VMS
[Mon Jun  1 10:39:22 2015] [info] refreshing backup plans...
[Mon Jun  1 10:39:23 2015] [info] found a valid backup plan for oztssdpool/VMS...
[Mon Jun  1 10:39:23 2015] [debug] snapshot worker for oztssdpool/VMS spawned (28160)
[Mon Jun  1 10:39:23 2015] [info] creating recursive snapshot on oztssdpool/VMS
# zfs snapshot -r oztssdpool/VMS@2015-06-01-103923
[Mon Jun  1 10:39:23 2015] [debug] snapshot worker for oztssdpool/VMS done (28160)
[Mon Jun  1 10:39:23 2015] [debug] send/receive worker for oztssdpool/VMS spawned (28163)
[Mon Jun  1 10:39:23 2015] [info] starting work on backupSet oztssdpool/VMS
# zfs list -H -r -o name oztssdpool/VMS
[Mon Jun  1 10:39:23 2015] [debug] sending snapshots from oztssdpool/VMS to root@ozteksas1:oztsas1pool/VMS
# zfs list -H -o name -t snapshot -s creation -d 1 oztssdpool/VMS
# ssh -o Compression=yes -o CompressionLevel=1 -o Cipher=arcfour -o batchMode=yes -o ConnectTimeout=30 root@ozteksas1 zfs list -H -o name -t snapshot -s creation -d 1 oztsas1pool/VMS
# ssh -o Compression=yes -o CompressionLevel=1 -o Cipher=arcfour -o batchMode=yes -o ConnectTimeout=30 root@ozteksas1 zfs list -H -o name -t snapshot -s creation -d 1 oztsas1pool/VMS
[Mon Jun  1 10:39:24 2015] [debug] receive process on ozteksas1 spawned (28169)
# zfs send oztssdpool/VMS@2015-06-01-103923|/opt/csw/bin/mbuffer -q -s 128k -W 60 -m 256M -O 'ozteksas1:31338'
# ssh -o Compression=yes -o CompressionLevel=1 -o Cipher=arcfour -o batchMode=yes -o ConnectTimeout=30 root@ozteksas1 '/opt/csw/bin/mbuffer -q -s 128k -W 60 -m 256M -4 -I 31338|zfs recv -F oztsas1pool/VMS'
***cannot receive new filesystem stream: dataset is busy
[Mon Jun  1 10:39:28 2015] [debug] receive process on ozteksas1 done (28169)
Mojo::Reactor::Poll: Read failed: Event "close" failed:  at /opt/znapzend/bin/../lib/ZnapZend/ZFS.pm line 380.***
# ssh -o Compression=yes -o CompressionLevel=1 -o Cipher=arcfour -o batchMode=yes -o ConnectTimeout=30 root@ozteksas1 zfs list -H -o name -t snapshot -s creation -d 1 oztsas1pool/VMS
[Mon Jun  1 10:39:29 2015] [debug] cleaning up snapshots on root@ozteksas1:oztsas1pool/VMS
# zfs list -H -o name -t snapshot -s creation -d 1 oztssdpool/VMS
[Mon Jun  1 10:39:29 2015] [debug] cleaning up snapshots on oztssdpool/VMS
[Mon Jun  1 10:39:29 2015] [info] done with backupset oztssdpool/VMS in 6 seconds
[Mon Jun  1 10:39:29 2015] [debug] send/receive worker for oztssdpool/VMS done (28163)

答案1

我自己找到了答案,当目标 zvol 共享(lun 映射)时发生此错误,

取消共享目的地 zvol 后,znapzend 从昨天开始正常工作。

相关内容