From: Patrick Caulfield <pcaulfie@redhat.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] LVM reducing.
Date: Fri Feb 20 08:18:03 2004 [thread overview]
Message-ID: <20040220131910.GC3949@tykepenguin.com> (raw)
In-Reply-To: <4034F710.7050106@demonlord.de>
On Thu, Feb 19, 2004 at 06:49:04PM +0100, Christian Reiss wrote:
> Greetings,
>
> I am running the LVM2 version now, as LVM1 corrupted the VG.
> So i converted it to LVM2 (figured it would re-do the
> master-data-thingy), and it works.
>
> Now, (presumably Heinz :) how can I safely reduce the size under LVM2?
> LVM1 had this e2fsadm jiggamagic-thingy-thing - anything LVM2 offers to
> safely reduce the data?
There is no e2fsadm for LVM2.
What I tend to do is to reduce the filesystem by a little more than I need, then
reduce the LV by the "correct" amount, then resize the the filesystem to fill
the LV. It's a little bit of a faff but it avoids any nasty accidents or
rounding errors:
eg: To remove 2Gig from an LV
# resize_reiserfs -s -2300M /dev/vg00/fs
# lvreduce -L -2G /dev/vg00/fs
# resize_reiserfs /dev/vg00/fs
That works for ext2/3 etc as well as reiser, just use the relevant resize
command.
patrick
prev parent reply other threads:[~2004-02-20 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-19 12:48 [linux-lvm] LVM reducing Christian Reiss
2004-02-20 8:18 ` Patrick Caulfield [this message]
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=20040220131910.GC3949@tykepenguin.com \
--to=pcaulfie@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox