-
Notifications
You must be signed in to change notification settings - Fork 149
Description
我在使用rsync+sersync+进行文件同步的时候,遇到一个问题。
环境:
CentOS Linux release 7.6.1810 (Core)
rsync version 3.1.2
sersync version 2.5.4
inotify-tools version 3.14
磁盘利用率:
[root@server1 sersync]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/centos-root 550G 67G 484G 13% /
devtmpfs 63G 0 63G 0% /dev
tmpfs 63G 0 63G 0% /dev/shm
tmpfs 63G 4.0G 59G 7% /run
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/sda2 1014M 138M 877M 14% /boot
/dev/sda1 200M 12M 189M 6% /boot/efi
tmpfs 13G 0 13G 0% /run/user/0
/dev/mapper/centos-home 3.6T 1.2T 2.4T 34% /home
/dev/mapper/BYairportFaceVolume 27T 1.7T 25T 7% /mnt/files
内存利用率:
[root@localhost ~]# free -h
total used free shared buff/cache available
Mem: 30G 16G 1.9G 47M 11G 12G
Swap: 15G 2.4G 13G
rsync配置文件如下:
uid = root
gid = root
port =873
#use chroot = yes
use chroot = no
max connections =100
#use dns = no
#read batch = 8192 # 修改为 8MB
#write batch = 8192 # 修改为 8MB
#socket options = TCP_NODELAY
pid file =/var/run/rsyncd.pid
lock file =/var/run/rsync.lock
log file =/var/log/rsyncd.log
[backup]
path =/mnt/files/img
comment = used for web-data root
read only = no
#write only = no
list = yes
ignore errors = yes
hosts allow = 172.26.99.2,172.26.99.4
auth users = rsyncuser
secrets file =/etc/rsync.passwd
sersync配置如下:
现象描述:
文件同步在运行了差不多2个星期左右后,sersync进程被杀死了。
rsync报错信息如下:
terminate called after throwing an instance of 'std::out_of_rangersync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]
sersync报错信息如下:
Mar 16 00:06:38 server1 systemd: sersyncd.service: main process exited, code=killed, status=6/ABRT
Mar 16 00:06:38 server1 stop_sersync.sh: sersync2 process is not running.
Mar 16 00:06:38 server1 systemd: Unit sersyncd.service entered failed state.
Mar 16 00:06:38 server1 systemd: sersyncd.service failed.
最后我的问题是:
这个是什么原因导致的?