Skip to content

Empty disk and moving data to other disks before removing it #1216

Closed Answered by trapexit
zombieagain asked this question in Q&A
Discussion options

You must be logged in to vote

Glad it's been working for you.

Nothing built in.

You are in the ballpark but there is a better strategy.

  1. Use the runtime control API of mergerfs to set the branch mode in the pool to RO. Or remount with it set to RO.
  2. mount a new instance of mergerfs minus the branch to remove to some temporary location
  3. rsync -avP /mnt/branch-to-remove/ /tmp/tmp-mergerfs/
  4. do 3 again to make sure you got everything in case something changed
  5. change the config for the main mergerfs pool to remove the branch in question and remount and/or use the runtime to do the same
  6. umount /mnt/branch-to-remove/

done

This always seemed to me to be the most obvious and flexible method of performing this procedure but many…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by zombieagain
Comment options

You must be logged in to vote
1 reply
@trapexit
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants