linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Sebastian Walter <sebastian.walter@fu-berlin.de>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Find Correct LE Size of ext4 Filesystem (16TB)
Date: Wed, 09 Oct 2013 09:57:53 +0200	[thread overview]
Message-ID: <52550C81.2020607@fu-berlin.de> (raw)
In-Reply-To: <1381273135.70303.YahooMailNeo@web181501.mail.ne1.yahoo.com>

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

Hi Matthew,

On 10/09/2013 12:58 AM, matthew patton wrote:

> 
> The whole point of using LVM is to dispense with the malarky of hard disk partitions so I don't know why you're resizing them. If I read your email correctly you're going about this dangerously.> 

Thanks for pointing this out. Now I realize that I used the term
"partition" instead of "filesystem" erroneously (changed subject).

What I initially wanted to do is to extend the filesystem to the whole
size of the underlying physical disks. So first I extended the LV to
fill the disks (19TB). As the second step I wanted to resize the ext4
filesystem to the LV size of 19TB. This last step failed with an error
message saying that tune4fs can't allocate more than 16TB. Setting the
filesystem's size to 16T worked.

Now I have a 16TB filesystem on a 19.18TB logical volume. The additional
3TB are unused on the LV so I want to reduce the LV to the same size as
the filesystem. This way I could use the 3TB for other LVs.

> 3) resize2fs (no args) <LV device>
> 
> Step 3 will resize the FS to as close as the LV size allows and won't let you write past the LV's endpoint like your method makes so easy to screw up when doing the extent calculation. Maybe your maths are always perfect but I wouldn't risk my data for a measly few bytes. Do it the fool-proof way.

I agree with you that resizing the filesystem to the therotical values
of the LV geometry is much too risky.

What would be the fool-proof way? Creating a new filesystem on a 16TB LV
and copying the data from the backup?

Or is it really safe to reduce the LV by some amount - let's say 2.5TB -
and sacrifice 500GB for safety?

Thanks! Sebastian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5045 bytes --]

  reply	other threads:[~2013-10-09  7:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08  9:06 [linux-lvm] Find Correct LE Size of ext4 Partition (16TB) Sebastian Walter
2013-10-08 20:11 ` Gabriel
2013-10-08 22:58   ` matthew patton
2013-10-09  7:57     ` Sebastian Walter [this message]
2013-10-09  9:42       ` [linux-lvm] Find Correct LE Size of ext4 Filesystem (16TB) Gabriel
2013-11-07 10:02         ` Sebastian Walter

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=52550C81.2020607@fu-berlin.de \
    --to=sebastian.walter@fu-berlin.de \
    --cc=linux-lvm@redhat.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).