REDIS持久化报错失败

最近在生成环境中发现REDIS无法持久化,报错信息如下:


redis log报错: 
[7666] 15 Jan 00:22:36.028 # Error moving temp DB file on the final destination: Invalid cross-device link 
[1937] 15 Jan 00:22:36.513 # Background saving error 
[1937] 15 Jan 00:22:36.614 * 1 changes in 900 seconds. Saving... 


[7679] 15 Jan 00:27:15.659 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 
[7679] 15 Jan 00:27:35.287 * DB loaded from disk: 19.629 seconds


处理方案:

根据提示,在配置文件/etc/sysctl.conf中加入:

vm.overcommit_memory=1


重启REDIS即可


你可能感兴趣的:(REDIS故障处理,持久化SAVE)