# Overrides for the s6-supervised nfsdcld service (NFSv4 client tracking).
#
# This file is sourced by run-script-daemon; see /etc/default/TEMPLATE_FOR_S6
# for the full list of DAEMON_* variables. The service directory already sets
# reasonable maintainer defaults (DAEMON=/usr/sbin/nfsdcld, foreground -F);
# uncomment below only to override them.
#
# HA / FAILOVER (important):
# nfsdcld keeps a per-client stable-storage database (default
# /var/lib/nfs/nfsdcld). For a failover cluster this database MUST live on the
# same shared or replicated storage that fails over together with the exported
# filesystems. Otherwise the takeover node starts with an empty database and
# refuses ALL NFSv4 state reclaims during the grace period, so clients silently
# lose their locks and open state.
#
# Point nfsdcld at the shared storage directory (this also overrides the
# storagedir set in /etc/nfs.conf). Do NOT add -F here, it is applied
# automatically.
#DAEMON_OPTIONS="-s /srv/nfs-ha/nfsdcld"

# Reminder: for a working failover the exports in /etc/exports must use the
# SAME explicit fsid= on every cluster node, otherwise clients get ESTALE after
# a takeover because the NFS filehandles no longer match.
