Made disk space tests non mandatory
This commit is contained in:
parent
6f91d4a442
commit
3a6d2b405a
|
@ -292,6 +292,11 @@ function _CheckDiskSpaceRemote {
|
|||
function CheckDiskSpace {
|
||||
__CheckArguments 0 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG
|
||||
|
||||
if [ $MINIMUM_SPACE -eq 0 ]; then
|
||||
Logger "Skipped minimum space check." "NOTICE"
|
||||
return 0
|
||||
fi
|
||||
|
||||
local pids
|
||||
|
||||
_CheckDiskSpaceLocal "${INITIATOR[1]}" &
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
###### osync - Rsync based two way sync engine with fault tolerance
|
||||
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
||||
###### osync v1.1x config file rev 2016071801
|
||||
###### osync v1.1x / v1.2x config file rev 2016080301
|
||||
|
||||
## ---------- GENERAL OPTIONS
|
||||
|
||||
|
@ -26,7 +26,7 @@ CREATE_DIRS=no
|
|||
## Log file location. Leaving this empty will create a logfile at /var/log/osync_version_SYNC_ID.log (or current directory if /var/log doesn't exist)
|
||||
LOGFILE=""
|
||||
|
||||
## Generate an alert if initiator or target replicas have less free space than given value in KB.
|
||||
## Generate an alert if initiator or target replicas have less free space than given value in KB. Set this to zero to skip disk space tests.
|
||||
MINIMUM_SPACE=10240
|
||||
|
||||
## Bandwidth limit Kbytes / second. Leave 0 to disable limitation
|
||||
|
|
Loading…
Reference in New Issue