1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

Add a variable CTDB_NFS_SKIP_SHARE_CHECK to sysconfig that can disable the check that all shares are accessable.

This can take very long if there are very many shares and is in that case better to implement in a separate cronjob than in ctdb eventscript

(This used to be ctdb commit 432604a1435cd2b5a7178fb5aedf1d4b61bffeb9)
This commit is contained in:
root 2009-03-04 07:21:55 +11:00
parent a590999f4c
commit 798553a9dc
2 changed files with 5 additions and 2 deletions

View File

@ -46,6 +46,7 @@
# of them are available during each monitoring interval.
# In that case this check can be disabled
# CTDB_SAMBA_SKIP_SHARE_CHECK=yes
# CTDB_NFS_SKIP_SHARE_CHECK=yes
# specify which ports we should check that there is a daemon listening to
# by default we use testparm and look in smb.conf to figure out.

View File

@ -98,8 +98,10 @@ case $cmd in
ctdb_check_rpc "NFS" 100003 3
# and that its directories are available
nfs_dirs=$(exportfs | grep -v '^#' | grep '^/' | awk {'print $1;'})
ctdb_check_directories "nfs" $nfs_dirs
[ "$CTDB_NFS_SKIP_SHARE_CHECK" = "yes" ] || {
nfs_dirs=$(exportfs | grep -v '^#' | grep '^/' | awk {'print $1;'})
ctdb_check_directories "nfs" $nfs_dirs
}
# check that lockd responds to rpc requests
ctdb_check_rpc "lockd" 100021 1