Skip to content

NFS_OPTS variable is not honored #138

@peyoz

Description

@peyoz

Disaster Recovery Linux Manager (DRLM) Issue Template

Quick response time is not guaranteed with free support, if you are using DRLM in a production environment and enterprise grade level support services are required, please see: http://www.brainupdaters.net/en/drlm-services.

Please fill in the following items before submitting a new issue:

Issue details:
  • Issue type (Bug):
  • Impact (Low):
  • How often it happens (Always):
  • Brief description of the issue:
    NFS_OPTS variable is not honored because /usr/share/drlm/lib/nfs-functions.sh has static exports options.
    Evidence is below
# grep -E "rw,|ro," nfs-functions.sh
    echo "$STORDIR/$CLI_NAME $CLI_NAME(rw,sync,no_root_squash,no_subtree_check)" | tee -a $NFS_FILE > /dev/null
  exportfs -vo ro,sync,no_root_squash,no_subtree_check ${CLI_NAME}:${STORDIR}/${CLI_NAME}
  #exportfs -vo rw,sync,no_root_squash,no_subtree_check ${CLI_NAME}:${STORDIR}/${CLI_NAME}
                echo "$STORDIR/$CLI_NAME $CLI_NAME(rw,sync,no_root_squash,no_subtree_check)" | tee -a $NFS_FILE > /dev/nulll
  • Work-around, if any:
    Add your parameters directly in /usr/share/drlm/lib/nfs-functions.sh
DRLM Server information:
  • DRLM version : Disaster Recovery Linux Manager 2.3.1-git / 2019-07-24
  • OS version : RHEL / CentOS 7
  • DRLM configuration files output:
    • cat /etc/drlm/local.conf
      NFS_SVC_NAME="nfs-server"
      BKP_CLI_PER=2
      HISTBKPMAX=10
      NFS_OPTS="rw,async,no_root_squash,no_subtree_check"

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions