From: Chris Murphy <lists@colorremedies.com>
To: Nick Gilmour <nickeforos@gmail.com>
Cc: Chris Murphy <lists@colorremedies.com>,
Liu Bo <bo.li.liu@oracle.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: "BTRFS error (device vda1): couldn't get super buffer head for bytenr x"
Date: Mon, 9 Oct 2017 10:28:06 +0100 [thread overview]
Message-ID: <CAJCQCtSchpVsL2Gr3dm+4MQuHDBU96UG9Gf_imBWqXRMD01+yw@mail.gmail.com> (raw)
In-Reply-To: <CAH-drozNA1N6xO2dAknLD-JQu75BAEi+GpiEibA-R-Zk1U7xmA@mail.gmail.com>
On Mon, Oct 9, 2017 at 1:22 AM, Nick Gilmour <nickeforos@gmail.com> wrote:
>> I don't see a 'btrfs filesystem resize' command in your sequence. Did
>> you actually resize the file system before you resized the underlying
>> (virtual) block device?
>
>
> OK. I guess, this is it. I didn't do any 'btrfs filesystem resize' . The
> guides I was following didn't mention something like that. I was assuming
> that if it works for other FS like this it should also work for BTRFS.
Literally all other file systems require the fs be resized first when
shrinking, before the underlying partition or virtual block device is
reduced. There is nothing unique about Btrfs in this respect.
Some tools will use fsadm in the sequence to make sure the file system
is properly resized. So the question is whether any of the resize
tools you did use, expect to use fsadm. And if they do or did, whether
and why there wasn't an error if fsadm doesn't support Btrfs before
the block device was resized anyway. I don't know offhand if Btrfs is
supported by fsadmn, the man page does not list it as one of the
supported file systems.
> # btrfs filesystem resize -350g /home ?
>
> Should it be before or after I shrink the .img?
When shrinking, the fs resize must happen first. Then the block device
can be reduced to match.
When growing, the block device is extended, then the fs is resized.
--
Chris Murphy
next prev parent reply other threads:[~2017-10-09 9:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 10:25 "BTRFS error (device vda1): couldn't get super buffer head for bytenr x" Nick Gilmour
2017-10-07 0:08 ` Liu Bo
2017-10-08 15:39 ` Nick Gilmour
2017-10-08 21:03 ` Chris Murphy
2017-10-09 0:26 ` Nick Gilmour
[not found] ` <CAH-drozNA1N6xO2dAknLD-JQu75BAEi+GpiEibA-R-Zk1U7xmA@mail.gmail.com>
2017-10-09 9:28 ` Chris Murphy [this message]
[not found] ` <CAH-drozVaiXMoXqs8hiHvd5n8qDvbGLnp=1OPndsibhxjGkNxw@mail.gmail.com>
[not found] ` <59df4db2.8508370a.40c79.2c64.GMRIR@mx.google.com>
2017-10-12 11:12 ` Delivery Status Notification (Failure) Nick Gilmour
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=CAJCQCtSchpVsL2Gr3dm+4MQuHDBU96UG9Gf_imBWqXRMD01+yw@mail.gmail.com \
--to=lists@colorremedies.com \
--cc=bo.li.liu@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=nickeforos@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).