Re: pause device removal
Jukka Larja <[email protected]>
| Newsgroups | org.kernel.vger.linux-btrfs |
|---|---|
| Message-ID | <[email protected]> |
Stephan Mueller kirjoitti 17.7.2026 klo 12.15:
> we have 140T btrfs made from 10 LUNs. This file system is quite full with
> backups (and snapshots). Now we need to free one of the LUNs. A `btrfs
> device remove` is quite slow and also slows down nightly backups a lot.
>
> So we run the device remove during the day and the backups during the night.
> On another btrfs this worked quite well. But here, the backups fill the
> device we want to remove and currently we are not moving anywhere regarding
> the usage the LUN.
You can use btrfs device resize to incrementally decrease the device size,
then finally remove it with normal delete.
Like so: btrfs fi resize 1:-100G path-to-device
This will resize devid 1 100 gigabytes smaller. It will be a somewhat slower
process than just device delete, but not hugely so (in my experience anyway).
--
...Elämälle vierasta toimintaa...
Jukka Larja, [email protected]