From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] read_intr errors
Date: Fri Oct 26 03:29:02 2001 [thread overview]
Message-ID: <20011026091007.A587@tykepenguin.com> (raw)
In-Reply-To: <011101c15ded$a59767c0$0300000a@pacbell.net>; from e@arix.com on Fri, Oct 26, 2001 at 12:13:00AM -0700
On Fri, Oct 26, 2001 at 12:13:00AM -0700, Erick Calder wrote:
> Patrick,
>
> looking over the man page on lvreduce it states:
>
> > lvreduce allows you to reduce the size of a logical volume.
> > Be careful when reducing a logical volume's size,
> > because data in the reduced part is lost!!!
>
> the above warning is not conclusive as to whether data loss occurs only when
> the LV is full i.e. it has no choice but to lose data, of if data loss may
> occur regardless i.e. there's no smarts in lvreduce to move data around...
>
> can you clarify this point and perhaps reword the above for a next release
> of that man page?
What it's warning you about is reducing the size of the LV without first changing
the size of the filesystem that is using it. eg (for reiserfs) you *must*
# resize_reiserfs <blah>
# lvreduce <blah>
Otherwise the filesystem will still think it is the same size as before and try
to read/write off the end of the block device. This is almost guaranteed to
cause problems.
> anyhow, I understand what you're suggesting... however it's not clear to me
> what "a little" means... would 1K do? 1M?
>
> with the above, would I do:
>
> # lvreduce -l -1 /dev/LVM/mp3z
>
> to test this theory?
You should reduce it by at least 1 Physical Extent (default is 4Meg), if you
use the lower-case l to lvreduce it will do that for you (Capital L is for
K/Meg/Gigabyes, lowercase l is for PEs) so
# lvreduce -l 1 /dev/LVM/mp3z
Will do the job *BUT YOU MUST RESIZE THE FILESYSTEM FIRST*
If you are using an ext2 filesystem then you can use the e2fsadm command:
# e2fsadm -l -1 /dev/LVM/mp3z
patrick
next prev parent reply other threads:[~2001-10-26 3:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-16 16:19 [linux-lvm] Remount a LVM Vol after a system crash Christoph Berger
2001-10-16 21:40 ` Heinz J . Mauelshagen
2001-10-17 9:27 ` [linux-lvm] read_intr errors Erick Calder
2001-10-17 14:29 ` Patrick Caulfield
2001-10-17 20:08 ` Erick Calder
2001-10-18 7:42 ` Patrick Caulfield
2001-10-23 23:19 ` Erick Calder
2001-10-24 4:25 ` Patrick Caulfield
2001-10-26 2:13 ` Erick Calder
2001-10-26 3:29 ` Patrick Caulfield [this message]
2001-10-26 16:16 ` Erick Calder
2001-10-30 2:55 ` Patrick Caulfield
-- strict thread matches above, loose matches on Subject: below --
2001-10-17 20:21 Karl
2001-10-17 21:20 ` Erick Calder
2001-10-18 0:09 ` Wolfgang Weisselberg
2001-10-17 22:27 Karl
2001-10-24 11:36 Karl
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=20011026091007.A587@tykepenguin.com \
--to=caulfield@sistina.com \
--cc=linux-lvm@sistina.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.