最新消息:

xinetd[2127]: FAIL: rsync per_source_limit from=1.1.1.1

rsync admin 4浏览

rsync client并发多个rsync时,经常失败,

rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(759) [sender=3.0.6]

查看rsync服务端的message

May  9 11:50:12 xxxx xinetd[2127]: FAIL: rsync per_source_limit from=1.1.1.1
May  9 11:50:12 xxxx xinetd[2127]: FAIL: rsync per_source_limit from=1.1.1.1
May  9 11:50:12 xxxx xinetd[2127]: FAIL: rsync per_source_limit from=1.1.1.1

google搜索了下,xinetd服务下的子服务进程有per_source_limit限制

 # cat /etc/xinetd.d/rsync
# This file is being maintained by Puppet.
# DO NOT EDIT

service rsync
{
        per_source = UNLIMITED
        instances = UNLIMITED
        port            = 873
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        group           = root
        groups          = yes
        server          = /usr/bin/rsync
        bind            = 0.0.0.0
        server_args     = --daemon --config /etc/rsync.conf
}
  1. 添加一下参数.
  • per_source = UNLIMITED
  • instances = UNLIMITED
  1. 修改 /etc/xinetd.conf 配置, per_source 参数
 # man xinetd.conf 5

转载请注明:爱开源 » xinetd[2127]: FAIL: rsync per_source_limit from=1.1.1.1

转载请注明:爱开源 » xinetd[2127]: FAIL: rsync per_source_limit from=1.1.1.1