Bug 1024600

Summary: glusterfsd does not release a file.
Product: [Community] GlusterFS Reporter: hiro-su <h-sugimoto>
Component: glusterdAssignee: krishnan parthasarathi <kparthas>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: gluster-bugs, nsathyan, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-30 05:16:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hiro-su 2013-10-30 03:36:42 UTC
Description of problem:
-----------------------
glusterfsd does not release a file,

[server(server1) info]:
# glusterfs --version
glusterfs 3.4.0 built on Jul 17 2013 01:31:52

# gluster volume info
Volume Name: d01r1
Type: Distribute
Volume ID: 9485c9a8-dfe4-435b-a27d-38ef6d7c2729
Status: Started
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: server1:/var/service/gluster/fs/d01r01

# ls /var/service/gluster/fs/d01r01
total 0

[client(client1) info]:
# mount | grep glusterfs
server1:/d01r1 on /mnt/d01r1 type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)

# ls /mnt/d01r1
total 0

[execute client code]:
# cd /mnt/d01r1
# for i in `seq 4`; do dd if=/dev/zero of=mogera$i bs=102 count=102; done; mv -f * /tmp

[then server]:
# lsof -c glsuterfsd | grep mogera
glusterfs 877 root   15r   REG                8,0    10404 2147483721 /var/service/dplat/var/gluster/fs/d01r01/mogera1 (deleted)
glusterfs 877 root   16r   REG                8,0    10404 2147483723 /var/service/dplat/var/gluster/fs/d01r01/mogera2 (deleted)
glusterfs 877 root   17r   REG                8,0    10404 2147483725 /var/service/dplat/var/gluster/fs/d01r01/mogera3 (deleted)
glusterfs 877 root   18r   REG                8,0    10404 2147483727 /var/service/dplat/var/gluster/fs/d01r01/mogera4 (deleted)

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
3.4.0

How reproducible:
-----------------
always

Steps to Reproduce:
-------------------
1.create a plain volume
2.mount a plain volume
3.execute "for i in `seq 4`; do dd if=/dev/zero of=mogera$i bs=102 count=102; done; mv -f * /tmp"

Actual results:
---------------
glusterfsd does not release a file.

Expected results:
-----------------
release a file.

Additional info:
----------------
This problem does not exist in version 3.3.1.

Comment 1 Vijay Bellur 2013-10-30 04:05:45 UTC
Can you please try by disabling open-behind? open-behind can be disabled by:

#gluster volume set d01r1 open-behind off

If this addresses the problem, a fix is available in 3.4.1.

Comment 2 hiro-su 2013-10-30 04:14:41 UTC
(In reply to Vijay Bellur from comment #1)
> Can you please try by disabling open-behind? open-behind can be disabled by:
> 
> #gluster volume set d01r1 open-behind off
> 
> If this addresses the problem, a fix is available in 3.4.1.

Thanks!
I'll try "pen-behind off" and glusterfs version 3.4.1.

Comment 3 hiro-su 2013-10-30 05:16:50 UTC
> #gluster volume set d01r1 open-behind off
It solved at "open-behind off" at version 3.4.0.

> If this addresses the problem, a fix is available in 3.4.1.
I checked the fix at version 3.4.1.

Thanks for your help.

Comment 4 hiro-su 2013-10-30 05:52:56 UTC
http://www.gluster.org/download/
Latest Version: GlusterFS 3.4 (ver. 3.4.0 – July 14, 2013)

Is it possibly ver. 3.4.1?

Comment 5 Vijay Bellur 2013-10-30 05:55:39 UTC
(In reply to hiro-su from comment #4)
> http://www.gluster.org/download/
> Latest Version: GlusterFS 3.4 (ver. 3.4.0 – July 14, 2013)
> 
> Is it possibly ver. 3.4.1?

Yes, this should be 3.4.1. We will have it fixed.

Comment 6 Vijay Bellur 2013-10-30 06:01:10 UTC
(In reply to Vijay Bellur from comment #5)
> (In reply to hiro-su from comment #4)
> > http://www.gluster.org/download/
> > Latest Version: GlusterFS 3.4 (ver. 3.4.0 – July 14, 2013)
> > 
> > Is it possibly ver. 3.4.1?
> 
> Yes, this should be 3.4.1. We will have it fixed.

and thanks for letting us know!