All of lore.kernel.org
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@inwind.it>
To: Roman Mamedov <rm@romanrm.ru>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Resize command syntax wrong?
Date: Wed, 30 Nov 2011 20:37:25 +0100	[thread overview]
Message-ID: <3915641.RCn2N3DEUb@venice> (raw)
In-Reply-To: <20111201011547.66633b20@natsu>

On Thursday, 01 December, 2011 01:15:47 you wrote:
> On 30 Nov 2011 19:59:00 +0100
> 
> "Helmut Hullen" <Hullen@t-online.de> wrote:
> > > Currently the resize command is under filesystem, and takes a path
> > > to
> > > the mounted filesystem.  This seems wrong to me.  Shouldn't it be
> > > under device, and take a path to a device to resize?
> > 
> > No - it's a filesystem operation.
> 
> Are you sure about that?

I confirm that. In fact "btrfs filesystem resize" doesn't change the device(s). 
It only expands or shrinks the filesystem.
Of course if you want to expand the filesystem, you have to expand the 
underling device *before*. Otherwise if you want to shrink the filesystem, you 
have to not shrink the device before shrinking the filesystem.

> 
> > p.e.
> > You start with a system of 2 disks. They get filled nearly
> > simultaneously.
> > Then you add a 3rd disk (which is empty at that time). Now it's a good
> > idea to run "balance" for equalizing the filling.
> 
> What if I need to replace an individual device with a smaller or a larger
> one?

This is a more simpler case

As general rule:
# btrfs device add <new device> <btrfs root>
# btrfs device delete <old device> <btrfs root>

May be that the device removing is blocked in some RAID setup.




-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

  reply	other threads:[~2011-11-30 19:37 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 [this message]
2011-11-30 19:43     ` Helmut Hullen
2011-11-30 20:07       ` Roman Mamedov
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=3915641.RCn2N3DEUb@venice \
    --to=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=rm@romanrm.ru \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.