From: Heinz Mauelshagen <mauelshagen@redhat.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] LVM Problems :)
Date: Sat Feb 14 05:18:00 2004 [thread overview]
Message-ID: <20040214101848.GE22753@redhat.com> (raw)
In-Reply-To: <200402132123.i1DLNfS26985@ecstasy.winternet.com>
Ken,
the missing task was to shrink the LV.
On Fri, Feb 13, 2004 at 03:23:41PM -0600, Ken Fuchs wrote:
> Heinz Mauelshagen wrote:
>
> >the size of your filesystem and logical volume differs already.
> >That's why e2fsadm fails.
> >Did you eventually run resize2fs in order to shrink the filesystem ?
>
> >Your logical volume size is 1091456MB (32MB/PE * 34108 PE) but your
> >filesystem size is 963584GB (941GB * 1024MB/GB; check with
> >"tune2fs -l" and look for the block count and block size to calculate
> >this correctly).
>
> >In case the result shows, that your filesystem is already smaller than the LV,
> >lvreduce the logical volume appropriately.
>
> >Use the block count * block size result and round it up to the next PE!
>
> To avoid an error in calculating the correct number of logical extents,
> and possibly doing an lvreduce(8) to a size smaller than the filesystem:
>
> Use resize_ext2(8) without a size argument. This will resize the ext2
> or ext3 filesystem to be the same size as the logical volume containing
> it. After doing this, e2fsadm(8) can be used to resize the filesystem
> and logical volume "simultaneously" to any desired size (that can
> contain the filesystem's data).
>
> Sincerely,
>
> Ken Fuchs <kfuchs@winternet.com>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat, Inc.
Consulting Development Engineer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2004-02-14 10:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-13 9:13 [linux-lvm] LVM Problems :) Christian Reiss
2004-02-13 9:38 ` Heinz Mauelshagen
2004-02-13 12:05 ` Christian Reiss
2004-02-13 12:31 ` Heinz Mauelshagen
2004-02-13 13:13 ` Christian Reiss
2004-02-14 5:10 ` Heinz Mauelshagen
2004-02-13 16:40 ` Chris Cox
2004-02-13 12:08 ` Christian Reiss
2004-02-13 16:14 ` Ken Fuchs
2004-02-14 5:18 ` Heinz Mauelshagen [this message]
2004-02-15 12:59 ` Ken Fuchs
2004-02-16 4:27 ` Heinz Mauelshagen
2004-02-16 18:10 ` Ken Fuchs
2004-02-13 9:47 ` AJ Lewis
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=20040214101848.GE22753@redhat.com \
--to=mauelshagen@redhat.com \
--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 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.