Difference between revisions of "Btrfs"

show commands better
(out of space problem)
(show commands better)
Line 292: Line 292:
There is an '''easy and secure way''' to move a volume to another disk/device. If you use Btrfs itself to move the volume, there will be no danger. You even can do this '''while the volume is in use'''.
There is an '''easy and secure way''' to move a volume to another disk/device. If you use Btrfs itself to move the volume, there will be no danger. You even can do this '''while the volume is in use'''.
* Create the partition you want to use as ''destination'' '''without formatting''' it. Or remove the filesystem when one is present
* Create the partition you want to use as ''destination'' '''without formatting''' it. Or remove the filesystem when one is present
* Add the ''destination'' device to your volume by '''btrfs device add /dev/nvme9n1p3'''
* Add the ''destination'' device to your volume by {{RootCmd|command=btrfs device add /dev/[destination]}}
* Remove the ''source'' device from your volume by '''btrfs device remove /dev/sdz3'''
* Remove the ''source'' device from your volume by {{RootCmd|command=btrfs device remove /dev/[source]}}
Btrfs will notice, that it is necessary for this setup to move all data from the source device to the destination device. And it will start immediately to move data in the background. Meanwhile you can use your PC as you want.  
Btrfs will notice, that it is necessary for this setup to move all data from the source device to the destination device. And it will start immediately to move data in the background. Meanwhile you can use your PC as you want.  
* Empty Blocks will not be moved
* Empty Blocks will not be moved
translator
987

edits