Skip to content

What is the most efficient way to move files between different datasets in the same zpool? #15447

Answered by IvanVolosyuk
shivabohemian asked this question in Q&A
Discussion options

You must be logged in to vote

The 'mv' command between different datasets behaves like 'cp'. That's the reason why it is slow. On the other hand, in newly released ZFS 2.2 there is reflink support, so technically cp --reflink=auto src dst should be instant and you can delete the source file after that.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@shivabohemian
Comment options

@rincebrain
Comment options

@shivabohemian
Comment options

@rincebrain
Comment options

@shivabohemian
Comment options

Answer selected by shivabohemian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants