opensuse 15.0 安装ctdb

问题

1 2019/05/20 15:27:14.574363 ctdb-eventd[26329]: 60.nfs: /etc/ctdb/nfs-linux-kernel-callout: line 143: /proc/sys/net/ipv4/tcp_tw_recycle: No such file or directory

Answer: found out that this option was removed from kernel 4.12 and up

uname -a
Linux suse201 4.12.14-lp150.11-default #1 SMP Fri May 11 08:28:30 UTC 2018 (a9fee09) x86_64 x86_64 x86_64 GNU/Linux
解决方法:

注释掉nfs_startup函数中的这些行。

#_f="${PROCFS_PATH}/sys/net/ipv4/tcp_tw_recycle"
142     #if [ "$_f" ] ; then
143 #       echo 1 >"$_f"
144 #    fi

2. 2019/05/20 15:21:54.725859 ctdb-eventd[8290]: 60.nfs: service: no such service nfslock

Answer: 修改/etc/ctdb/nfs-linux-kernel-callout中的系统选择,默认为Red Hat, 改为SUSE, 并修改nfs_service="nfs"

nfs_service="nfs"
#nfs_service="nfsserver"
nfslock_service=""
nfs_config="/etc/sysconfig/nfs"
至于为何nfslock_service=""的解释为:nfslock is only needed for NFSv2 and NFSv3. 详见下面链接。

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/s1-nfs-start

 

猜你喜欢

转载自www.cnblogs.com/longchang/p/10894486.html