Sponsored Content
Top Forums UNIX for Advanced & Expert Users NFS active/active cluster with gluster and NFS-ganesha, I can create dirs, but not files! Post 303045800 by Linusolaradm1 on Monday 13th of April 2020 05:52:02 PM
Old 04-13-2020
NFS active/active cluster with gluster and NFS-ganesha, I can create dirs, but not files!

Following this fantastic guide I finally setup an active working active/active nfs4 cluster.
The setup is not too difficult: two servers with ganesha+glusterfs other two with haproxy and keepalived.
The cluster works fine, from one client I have mount the nfs share called "nfshare" without problem


Code:
mount -t nfs4

nfsserver:/nfsshare on /mnt type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.2.0.170,local_lock=none,addr=10.2.0.7)


I have created some dirs on mnt and works perfect(there are replicated on nfsgluster servers). I have also rebooted for testing the nfs server one or two, and after a very little downtime (2 seconds) the connection is up and working.
The problem is..mkdir works, but every file operation(dd,cp,touch) fails(stuck,freeze until ctrl+c is pressed).

On both the nfs servers and keepalived servers there is no problem with selinux


Code:
grep -i denied /var/log/audit/audit.log


What can be?Why mkdir works and file operation not?

--- Post updated at 05:52 PM ---

Solution found, ganesha was misconfigured, I have forgot to add the ports for services.
 

We Also Found This Discussion For You

1. AIX

Very Active NFS and Disk Usage

Here is the scenario... NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote clients. ... (1 Reply)
Discussion started by: masterpengu
1 Replies
PACEMAKER(8)						  System Administration Utilities					      PACEMAKER(8)

NAME
Pacemaker - Part of the Pacemaker cluster resource manager SYNOPSIS
crm_shadow (query|command) [modifiers] DESCRIPTION
crm_shadow - Perform configuration changes in a sandbox before updating the live cluster. Sets up an environment in which configuration tools (cibadmin, crm_resource, etc) work offline instead of against a live cluster, allowing changes to be previewed and tested for side-effects. OPTIONS
-?, --help This text -$, --version Version information -V, --verbose Increase debug output Queries: -w, --which Indicate the active shadow copy -p, --display Display the contents of the active shadow copy -E, --edit Edit the contents of the active shadow copy with your favorite $EDITOR -d, --diff Display the changes in the active shadow copy -F, --file Display the location of the active shadow copy file Commands: -c, --create=value Create the named shadow copy of the active cluster configuration -e, --create-empty=value Create the named shadow copy with an empty cluster configuration -C, --commit=value Upload the contents of the named shadow copy to the cluster -D, --delete=value Delete the contents of the named shadow copy -r, --reset=value Recreate the named shadow copy from the active cluster configuration -s, --switch=value (Advanced) Switch to the named shadow copy Additional Options: -f, --force (Advanced) Force the action to be performed -b, --batch (Advanced) Don't spawn a new shell -a, --all (Advanced) Upload the entire CIB, including status, with --commit EXAMPLES
Create a blank shadow configuration: # crm_shadow --create-empty myShadow Create a shadow configuration from the running cluster: # crm_shadow --create myShadow Display the current shadow configuration: # crm_shadow --display Discard the current shadow configuration (named myShadow): # crm_shadow --delete myShadow Upload the current shadow configuration (named myShadow) to the running cluster: # crm_shadow --commit myShadow AUTHOR
Written by Andrew Beekhof REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org Pacemaker 1.1.7 April 2012 PACEMAKER(8)
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy