Linux:R1Soft hcp模块错误:无法初始化mrf哈希!
时间:2020-02-23 14:39:57 来源:igfitidea点击:
在某些情况下,R1Soft备份可能会失败,即使未进行任何更改,代理和内核hcp模块也会正确安装,并显示未检测到复制驱动程序的消息,如下所示:
8/26/20 5:14:58 PM Error Protected Machine An exception occurred during the request. The replication driver was not detected (detail: An error occurred while loading the hcpdriver module, please check your system logs; Please run "r1soft-setup --get-module " on your Agent to install one. ). 8/26/20 5:14:58 PM Error Manager Error replicating device/(99b71fd6-4676-4fdf-b6fe-8923a64a0531) 8/26/20 5:14:58 PM Error Manager Agent reported error during requested operation
查看受保护机器系统日志,我们可以观察到"呼叫跟踪",与内存相关的条目以及有关"复制驱动程序"(hcp)的以下内容:
hcp: ERROR: Could not init mrf hash!
知道模块已经安装并且代理正在运行,我们可以使用以下命令查看模块是否未加载到内核中:
lsmod | grep hcpdriver
如果以上内容未返回任何内容(如本例所示),则通常是由内存碎片引起的。
如果可能,建议的修复方法是重新启动服务器,或者压缩内存并清除磁盘缓存。
第二种选择是仅在无法重新启动时才使用,因为在某些情况下可能会导致问题。
我肯定会避免,尤其是在数据库服务器上。
这是第二种方法的过程:
1.压缩内存:
sync; echo 1 > /proc/sys/vm/compact_memory
2.清除磁盘缓存:
sync; echo 1 > /proc/sys/vm/drop_caches
依次使用"数字回显"到drop_caches,以" 1"开头,并查看每个步骤之间是否解决了您的问题:
echo 1: Clears PageCache only echo 2: Clears dentries and inodes echo 3: Clears PageCache, dentries and inodes
警告:仅将选项3用于最后的手段。
您绝对应该考虑重新启动,因为这可能会对生产产生严重影响。
3.重新启动R1Soft代理:
/etc/init.d/cdp-agent restart