[Gluster-users] Error to move files

Pepe Charli ppcharli at gmail.com
Fri Jun 10 09:17:21 UTC 2016


In the previous mail had a typing error,  the correct command are


>From client (mount with FUSE)
---------------------------
$ ls -li /u01/2016/03/fichero.xml
12240677508402255910 -rw-rw---- 1 nginx nginx 1797 Mar 23 17:55
/u01/2016/03/fichero.xml

$ ls -li /u01/procesados/2016/03/fichero.xml
ls: cannot access  /u01/procesados/2016/03/fichero.xml: No such file
or directory


$ mv /u01/2016/03/fichero.xml /u01/procesados/2016/03/
mv: ‘/u01/2016/03/fichero.xml’ and
‘/u01/procesados/2016/03/fichero.xml’ are the same file

$ cp /u01/2016/03/fichero.xml  /u01/procesados/2016/03/
cp: ‘/u01/2016/03/fichero.xml’ and
‘/u01/procesados/2016/03/fichero.xml’ are the same file


>From server (Gluster 3.7.6)
------------------------------
$ ls -li /brick/u01/procesados/2016/03/fichero.xml
ls: cannot access /brick/u01/procesados/2016/03/fichero.xml: No such
file or directory

$ ls -li /brick/u01/2016/03/fichero.xml
2684355134 -rw-rw---- 2 nginx nginx 1797 Mar 23 17:55
/brick/u01/2016/03/fichero.xml

$ getfattr -d -e hex -m.  /brick/u01/2016/03/fichero.xml
# file: /brick/u01/2016/03/fichero.xml
trusted.afr.dirty=0x000000000000000000000000
trusted.bit-rot.version=0x020000000000000056c2c3090001217f
trusted.gfid=0xaee7e1be15cd4ef7a9df9f570a6e1826

$ stat /brick/u01/2016/03/fichero.xml
  File: ‘/brick/u01/2016/03/fichero.xml’
  Size: 1797            Blocks: 8          IO Block: 4096   regular file
Device: fc04h/64516d    Inode: 2684355134  Links: 2
Access: (0660/-rw-rw----)  Uid: (  997/   nginx)   Gid: (  994/   nginx)
Access: 2016-03-23 17:55:41.885494971 +0100
Modify: 2016-03-23 17:55:42.104494830 +0100
Change: 2016-06-10 08:53:16.849313580 +0200
 Birth: -

2016-06-10 10:48 GMT+02:00 Pepe Charli <ppcharli at gmail.com>:
> Hi,
>
> I have encountered a strange situation where mv seems to think that two
> files on the gluster mount are the same file and one of them does not exist.
>
> From client (mount with FUSE)
> ----------------------------
> $ ls -li /u01/2016/03/fichero.xml
> 12240677508402255910 -rw-rw---- 1 nginx nginx 1797 Mar 23 17:55
> /u01/2016/03/fichero.xml
>
> $ ls -li /u01/procesados/2016/03/fichero.xml
> ls: cannot access procesados /u01/2016/03/fichero.xml: No such file or directory
>
> $ mv: ‘/u01/2016/03/fichero.xml’ and ‘procesados
> /u01//2016/03/fichero.xml’ are the same file
>
>
> From server (Gluster 3.7.6)
> ------------------------------
> $ ls -li /brick/u01/000002/ticket/procesados/2016/03/fichero.xml
> ls: cannot access
> /brick/u01/000002/ticket/procesados/2016/03/fichero.xml: No such file
> or directory
>
> $ ls -li /brick/u01/000002/ticket/2016/03/fichero.xml
> 2684355134 -rw-rw---- 2 nginx nginx 1797 Mar 23 17:55
> 000002/ticket/2016/03/fichero.xml
>
> $ getfattr -d -e hex -m.  /brick/u01/000002/ticket/2016/03/fichero.xml
> # file: 000002/ticket/2016/03/fichero.xml
> trusted.afr.dirty=0x000000000000000000000000
> trusted.bit-rot.version=0x020000000000000056c2c3090001217f
> trusted.gfid=0xaee7e1be15cd4ef7a9df9f570a6e1826
>
> $ stat /brick/u01/000002/ticket/2016/03/fichero.xml
>   File: ‘000002/ticket/2016/03/fichero.xml’
>   Size: 1797            Blocks: 8          IO Block: 4096   regular file
> Device: fc04h/64516d    Inode: 2684355134  Links: 2
> Access: (0660/-rw-rw----)  Uid: (  997/   nginx)   Gid: (  994/   nginx)
> Access: 2016-03-23 17:55:41.885494971 +0100
> Modify: 2016-03-23 17:55:42.104494830 +0100
> Change: 2016-06-10 08:53:16.849313580 +0200
>  Birth: -
>
> Could anyone help me?
>
> Thanks,


More information about the Gluster-users mailing list