* [linux-lvm] LVM reducing.
@ 2004-02-19 12:48 Christian Reiss
2004-02-20 8:18 ` Patrick Caulfield
0 siblings, 1 reply; 2+ messages in thread
From: Christian Reiss @ 2004-02-19 12:48 UTC (permalink / raw)
To: linux-lvm
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?
-Christian.
--
Christian Reiss <email@demonlord.de>
demonserver.de
Key fingerprint = 2999 B7CD A218 06DF D658 5BE3 18B6 B232 02FF 71B2
Public Key can be obtained here: http://www.demonlord.de/pgp.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] LVM reducing.
2004-02-19 12:48 [linux-lvm] LVM reducing Christian Reiss
@ 2004-02-20 8:18 ` Patrick Caulfield
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Caulfield @ 2004-02-20 8:18 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-20 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 12:48 [linux-lvm] LVM reducing Christian Reiss
2004-02-20 8:18 ` Patrick Caulfield
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.