Re: CephFS Octopus mv: Invalid cross-device link [Errno 18] / slow move

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

 



Hi Luís,

Am 18.08.2021 um 19:02 schrieb Luis Henriques:
> Sebastian Knust <sknust@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> 
>> Hi,
>>
>> I am running a Ceph Oc,topus (15.2.13) cluster mainly for CephFS. Moving (with
>> mv) a large directory (mail server backup, so a few million small files) within
>> the cluster takes multiple days, even though both source and destination share
>> the same (default) file layout and - at least on the client I am performing the
>> move on - are located within the same mount point.
>>
>> I also see that the move is done by recursive copying and later deletion, as I
>> would only expect between different file systems / mount points.
> 
> A reason for that to happen could be the usage of quotas in the
> filesystem.  If you have quotas set in any of the source or destination
> hierarchies the rename(2) syscall will fail with -EXDEV (the "Invalid
> cross-device link" error).  And I guess that 'mv' will then revert to
> the less efficient recursive copy.
> 
> A possible solution would be to temporarily remove the quotas
> (i.e. setting them to '0'), and setting them back after the rename.
> 
> Cheers,

That's it! Setting quota temporarily to 0 allows for immediate move by
rename.

Thanks a lot.

Cheers
Sebastian
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[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