Re: CephFS "move" operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is this move between directories on the same file system?

Rename as a system call only works within a file system.

The user space mv command becomes a copy when not the same file system. 

Regards,

Ric


On Fri, May 25, 2018, 8:51 AM John Spray <jspray@xxxxxxxxxx> wrote:
On Fri, May 25, 2018 at 1:10 PM, Oliver Freyermuth
<freyermuth@xxxxxxxxxxxxxxxxxx> wrote:
> Dear Cephalopodians,
>
> I was wondering why a simple "mv" is taking extraordinarily long on CephFS and must note that,
> at least with the fuse-client (12.2.5) and when moving a file from one directory to another,
> the file appears to be copied first (byte by byte, traffic going through the client?) before the initial file is deleted.
>
> Is this true, or am I missing something?

A mv should not involve copying a file through the client -- it's
implemented in the MDS as a rename from one location to another.
What's the observation that's making it seem like the data is going
through the client?

John

>
> For large files, this might be rather time consuming,
> and we should certainly advise all our users to not move files around needlessly if this is the case.
>
> Cheers,
>         Oliver
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux