public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: "Ralf Groß" <ralf.gross+xfs@gmail.com>
Cc: linux-xfs@vger.kernel.org
Subject: Re: copy / move reflink files to new filesystem / or whole fs
Date: Tue, 15 Jun 2021 08:23:50 -0700	[thread overview]
Message-ID: <20210615152350.GA158209@locust> (raw)
In-Reply-To: <CANSSxykVgGj5PHzfPm_xvJi_dpooS_vBpO14-S3KhM6BZfBFtA@mail.gmail.com>

On Tue, Jun 15, 2021 at 07:45:59AM +0200, Ralf Groß wrote:
> Hi,
> 
> is there any way to copy or move data between 2 xfs fs with reflinks
> on the same host, so that the data is not rehydrated (I guess cp
> --reflink will not be working)? If this is not possible, would it be
> able to clone the existing fs to a new one and then continue to use
> both?
>
> Background: I've backup data on a 350 TB reflink xfs fs, now a second
> fs will be added to the server and parts of existing data should be
> moved to it. If it's possible to clone the whole fs I could delete
> parts of it afterwards, but copying/moving single directories would be
> easier.

Reflinking (aka data block sharing) can only be performed between files
within a single filesystem.  You could use xfs_copy to clone the fs
which would be faster than dd, though not as fast as targeted copying of
parts of the directory tree as needed.

--D

> 
> Ralf

      reply	other threads:[~2021-06-15 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-15  5:45 copy / move reflink files to new filesystem / or whole fs Ralf Groß
2021-06-15 15:23 ` Darrick J. Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210615152350.GA158209@locust \
    --to=djwong@kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=ralf.gross+xfs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox