On 30 Nov 2011 20:43:00 +0100 "Helmut Hullen" <Hullen@xxxxxxxxxxx> wrote: > Hallo, Roman, > > Du meintest am 01.12.11: > > > What if I need to replace an individual device with a smaller or a > > larger one? > > 1) add the new device > 2) balance (may be it's not necessary) > 3) run "remove" for the "individual" device > 4) remove it > 5) balance Okay, adding a new device wasn't the best example to explain my point. What I meant is resizing a BTRFS partition, enlarging it or shrinking it as needed, while still on the same device. Of course in the enlarge scenario the partition(or the LV) is resized upwards first, and then the filesystem, and on shrinking it's vice versa. Suppose I used half of a 1000GB disk for BTRFS (a 500GB partition), and the second half for something else. Now I want to remove this other partition, and make BTRFS occupy the whole disk. Resizing in both 'directions' seems to work very well on single-device BTRFS filesystems, and also it's very useful that BTRFS is almost the only modern FS (besides ext4) that can be shrinked. But with multi-device filesystems, don't you agree it's non-obvious how (or is not even possible) to resize the areas that BTRFS occupies on individual devices? -- With respect, Roman ~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Stallman had a printer, with code he could not see. So he began to tinker, and set the software free."
Attachment:
signature.asc
Description: PGP signature
