Bug 761846 (GLUSTER-114)

Summary: Creating files or directories gives "Invalid argument"
Product: [Community] GlusterFS Reporter: Vikas Gorur <vikas>
Component: nufaAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: mainlineCC: amarts, pavan, tuulos, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vikas Gorur 2009-07-07 12:26:28 UTC
Setup: NUFA with 8 subvolumes, server and client being different processes on each host.

Both touch and mkdir return -1, EINVAL.

The errno is being set in the following lines in nufa.c

nufa_local_lookup_cbk:

 if (op_ret == -1)
                goto out

out:
  if (!local->hashed_subvol) {
    gf_log (this->name, GF_LOG_DEBUG,
	    "no subvolume in layout for path=%s",
	    local->loc.path);

	op_errno = EINVAL;
	goto err;
  }

One of the subvolumes (3rd - brick3) is down.

Comment 1 Amar Tumballi 2010-03-09 10:29:50 UTC
*** Bug 218 has been marked as a duplicate of this bug. ***

Comment 2 Anand Avati 2010-03-12 09:09:42 UTC
PATCH: http://patches.gluster.com/patch/2882 in master (send lookup on every subvolume if local->hashed_subvol is NULL in nufa/switch)