From 77eadb32ae9a38f82680c864435c9d7a0f93c1d6 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Wed, 12 May 2021 12:54:13 +0200 Subject: [PATCH] nfs: add possibility to configure BerkeleyDB client store Motivation: The BerkeleyDB used by NFS door to store client records. As default configuration of BerkeleyDB is too restrictive, a simple way to change the configuration is required. Modification: Introduce nfs.clientdb.config property prefix to populate the BerkeleyDB configuration. Update nfs door to inject configuration into client store. Set freeDisk property to zero, as (a) client db is quite small and (b) loosing this information is not critical for current implementation (write after reboot is not supported). Result: - the nfs door is not picky about free disk space in /var/lib/dcache/nfs - the BerkeleyDB used as client store by nfs door can be configured with properties. Fixes: #5810 Ticket: #10135 Acked-by: Marina Sahakyan Acked-by: Lea Morschel Target: master, 7.1, 7.0, 6.2 Require-book: no Require-notes: yes --- .../chimera/nfsv41/door/nfsv41-common.xml | 6 +++++- skel/share/defaults/nfs.properties | 20 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/modules/dcache-nfs/src/main/resources/org/dcache/chimera/nfsv41/door/nfsv41-common.xml b/modules/dcache-nfs/src/main/resources/org/dcache/chimera/nfsv41/door/nfsv41-common.xml index 54141280fae..d235bae7df5 100644 --- a/modules/dcache-nfs/src/main/resources/org/dcache/chimera/nfsv41/door/nfsv41-common.xml +++ b/modules/dcache-nfs/src/main/resources/org/dcache/chimera/nfsv41/door/nfsv41-common.xml @@ -190,9 +190,13 @@ - + + + + +