Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.ru>
To: helmut@hullen.de
Cc: Hullen@t-online.de, linux-btrfs@vger.kernel.org
Subject: Re: Resize command syntax wrong?
Date: Thu, 1 Dec 2011 02:07:30 +0600	[thread overview]
Message-ID: <20111201020730.33980a5e@natsu> (raw)
In-Reply-To: <ByrP+cZy1uB@helmut.hullen.de>

[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]

On 30 Nov 2011 20:43:00 +0100
"Helmut Hullen" <Hullen@t-online.de> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-11-30 20:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 18:47 Resize command syntax wrong? Phillip Susi
2011-11-30 18:59 ` Helmut Hullen
2011-11-30 19:15   ` Roman Mamedov
2011-11-30 19:37     ` Goffredo Baroncelli
2011-11-30 19:43     ` Helmut Hullen
2011-11-30 20:07       ` Roman Mamedov [this message]
2011-11-30 20:48         ` Goffredo Baroncelli
2011-11-30 20:55         ` Helmut Hullen
2011-12-01  0:01   ` Phillip Susi
2011-12-01  6:46     ` Helmut Hullen
2011-12-01 15:57       ` Phillip Susi
2011-12-01 16:19         ` Helmut Hullen

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=20111201020730.33980a5e@natsu \
    --to=rm@romanrm.ru \
    --cc=Hullen@t-online.de \
    --cc=helmut@hullen.de \
    --cc=linux-btrfs@vger.kernel.org \
    /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