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)
http://review.gluster.com/3720
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)
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 .
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