All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.net>
To: "Szalma László" <dblaci@dblaci.hu>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: BTRFS over LVM remounts read-only
Date: Sun, 12 Jan 2014 01:16:08 +0600	[thread overview]
Message-ID: <20140112011608.220a2ae3@natsu> (raw)
In-Reply-To: <52D19217.3060106@dblaci.hu>

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

On Sat, 11 Jan 2014 19:48:55 +0100
Szalma László <dblaci@dblaci.hu> wrote:

> 2014-01-11 18:10 keltezéssel, MegaBrutal írta:
> > How can I shrink the FS to the correct size right now, ensuring that I 
> > really shrink it to the exact LV size?
> 
> btrfs fi re 10G /dev/mapper/vg-lv
> lvresize -L 10G vg/lv

That's setting yourself up for a failure if these tools happen to disagree on
what "G" means (GB vs GiB). Maybe that's what happened here with the thread
starter's FS?

To be completely safe, I would recommend to resize the FS in two steps, leaving
some safety margin to the partition resize first:

  btrfs fi re 8G /dev/mapper/vg-lv
  lvresize -L 10G vg/lv
  btrfs fi re max /dev/mapper/vg-lv

-- 
With respect,
Roman

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2014-01-11 19:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-11 14:32 BTRFS over LVM remounts read-only MegaBrutal
2014-01-11 15:04 ` Hugo Mills
2014-01-11 17:10   ` MegaBrutal
2014-01-11 17:28     ` Hugo Mills
2014-01-11 18:03     ` Chris Murphy
2014-01-11 18:48     ` Szalma László
2014-01-11 19:16       ` Roman Mamedov [this message]
2014-01-11 19:24         ` Szalma László
2014-01-11 23:08         ` Chris Murphy
2014-01-11 23:03       ` Chris Murphy
2014-01-12  4:44         ` Duncan

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=20140112011608.220a2ae3@natsu \
    --to=rm@romanrm.net \
    --cc=dblaci@dblaci.hu \
    --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.