From: Hugo Mills <hugo@carfax.org.uk>
To: "Christian Völker" <cvoelker@knebb.de>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Resizing BTRFS - raw partition
Date: Wed, 2 Nov 2016 09:12:49 +0000 [thread overview]
Message-ID: <20161102091249.GL16645@carfax.org.uk> (raw)
In-Reply-To: <92e3c63e-0301-7a25-7c56-56447a1948cc@knebb.de>
[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]
On Wed, Nov 02, 2016 at 09:58:41AM +0100, Christian Völker wrote:
> Hi all,
>
> I am using btrfs as follows:
> root@srv:/srv# btrfs filesystem show
> Label: none uuid: c8f24351-ddc4-4866-843c-4e95fcb498d4
> Total devices 2 FS bytes used 1005.37GB
> devid 2 size 1.00TB used 1023.98GB path /dev/sdc
> devid 1 size 1.46TB used 1.00TB path /dev/sdb
>
> Btrfs Btrfs v0.19
That's positively antique. If your kernel is anything close to the
same age, this experience with btrfs is probably going to be extremely
painful for you.
> It is running inside a virtual machines running on VMware ESXi. I
> increased both virtual disks to 1.5TB now. I did a scsi-rescan and fdisk
> -l tells me the new size:
> Disk /dev/sdb: 1610.6 GB, 1610612736000 bytes
> Disk /dev/sdc: 1610.6 GB, 1610612736000 bytes
>
> There are no partitions created on the disks, just raw devices used for
> BTRFS. I found several sites where they resized a btrfs filesystem based
> on LVM and the new size was immediately recognized. But how to do on raw
> partitions?
Than those sites are mistaken. :)
> How do I tell btrfs the devices have been resized?
> I did not find a rescan command. btrfs scan does not change anything.
> Do I really have to reboot?
btrfs fi resize <devid>:max /mountpoint
btrfs dev scan is just used to tell the kernel which devices
contain [parts of] which btrfs filesystems.
Hugo.
--
Hugo Mills | In one respect at least, the Martians are a happy
hugo@... carfax.org.uk | people: they have no lawyers
http://carfax.org.uk/ |
PGP: E2AB1DE4 | John Carter, A Princess of Mars
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2016-11-02 9:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 8:58 Resizing BTRFS - raw partition Christian Völker
2016-11-02 9:12 ` Hugo Mills [this message]
2016-11-02 9:18 ` Christian Völker
2016-11-02 9:29 ` Hugo Mills
2016-11-02 10:14 ` Adam Borowski
2016-11-02 10:16 ` Christian Völker
2016-11-02 11:40 ` Austin S. Hemmelgarn
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=20161102091249.GL16645@carfax.org.uk \
--to=hugo@carfax.org.uk \
--cc=cvoelker@knebb.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 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.