Bug 842652 - Renaming of directories fails on stripe volume
Summary: Renaming of directories fails on stripe volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: 2.0
Hardware: x86_64
OS: Linux
high
urgent
Target Milestone: ---
: ---
Assignee: Brian Foster
QA Contact: senaik
URL:
Whiteboard:
Depends On:
Blocks: 801887 842953
TreeView+ depends on / blocked
 
Reported: 2012-07-24 11:25 UTC by shylesh
Modified: 2015-09-03 14:07 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.4.0qa4-1.el6rhs
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 842953 (view as bug list)
Environment:
Last Closed: 2013-09-23 22:32:55 UTC
Embargoed:


Attachments (Terms of Use)

Description shylesh 2012-07-24 11:25:46 UTC
Description of problem:

Creating a directory and trying to rename it fails on stripe volume

Version-Release number of selected component (if applicable):
RHS 2.0.z

How reproducible:
Always

Steps to Reproduce:
1. Create a stripe volume
2. mount the volume and create a directory say dir1
3. renamve the directory : mv dir1 dir2
  
Actual results:
rename operation fails

[root@nec-em13 mnt]# mv dir1 dir2
mv: cannot move `dir1' to a subdirectory of itself, `dir2'




Expected results:


Additional info:
-07-24 06:32:52.121132] I [glusterfsd-mgmt.c:1565:mgmt_getspec_cbk] 0-glusterfs: No change in volfile, continuing
[2012-07-24 06:32:52.124715] I [client-handshake.c:1636:select_server_supported_programs] 0-volset-client-0: Using Program GlusterFS 3.3.0, Num (1298437), Version (330)
[2012-07-24 06:32:52.125201] I [client-handshake.c:1433:client_setvolume_cbk] 0-volset-client-0: Connected to 10.16.157.63:24011, attached to remote volume '/home/bricks/volset0'.
[2012-07-24 06:32:52.125231] I [client-handshake.c:1445:client_setvolume_cbk] 0-volset-client-0: Server and Client lk-version numbers are not same, reopening the fds
[2012-07-24 06:32:52.125537] I [client-handshake.c:453:client_set_lk_version_cbk] 0-volset-client-0: Server lk version = 1
[2012-07-24 06:34:02.342657] I [glusterfsd-mgmt.c:64:mgmt_cbk_spec] 0-mgmt: Volume file changed
[2012-07-24 06:34:02.346265] I [glusterfsd-mgmt.c:1565:mgmt_getspec_cbk] 0-glusterfs: No change in volfile, continuing
[2012-07-24 07:16:21.271285] W [fuse-bridge.c:1516:fuse_rename_cbk] 0-glusterfs-fuse: 71999: /dir1 -> /dir2 => -1 (Invalid argument)

Comment 1 Brian Foster 2012-07-24 13:11:28 UTC
http://review.gluster.com/3720

Comment 2 Vijay Bellur 2012-07-25 21:55:14 UTC
CHANGE: http://review.gluster.com/3720 (cluster/stripe: don't fail if no fctx on a non-regular file) merged in master by Anand Avati (avati)

Comment 4 senaik 2012-12-21 07:40:54 UTC
Verified in gluster version glusterfs 3.4.0qa5

Verification Steps : 
______________________

- Created a Stripe Volume 
- Created a directory from mount point and renamed the directory 
  [root@unused stripe_vol]# mkdir dir1
  [root@unused stripe_vol]# ls
  dir1

  [root@unused stripe_vol]# mv dir1 dir2
  [root@unused stripe_vol]# ls
  dir2

Tried the above operation with coalesce 'on' and it succeeded . 

Tried the similar operations on a Stripe-Replicate Volume and it succeeded .

Comment 5 Scott Haines 2013-09-23 22:32:55 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. 

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1262.html


Note You need to log in before you can comment on or make changes to this bug.