public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Thornber <joe@fib011235813.fsnet.co.uk>
To: Wil Reichert <wilreichert@yahoo.com>
Cc: Greg KH <greg@kroah.com>, kernel list <linux-kernel@vger.kernel.org>
Subject: Re: "bio too big" error
Date: Thu, 12 Dec 2002 09:12:09 +0000	[thread overview]
Message-ID: <20021212091209.GA1299@reti> (raw)
In-Reply-To: <20021212001542.51940.qmail@web40109.mail.yahoo.com>

On Wed, Dec 11, 2002 at 04:15:42PM -0800, Wil Reichert wrote:
> Ok, 2.5.51 plus dm patches result in the following:
> 
> Initializing LVM: device-mapper: device
> /dev/ide/host2/bus1/target0/lun0/disc too small for target
> device-mapper: internal error adding target to table
> device-mapper: destroying table
>   device-mapper ioctl cmd 2 failed: Invalid argument
>   Couldn't load device 'cheese_vg-blah'.
>   0 logical volume(s) in volume group "cheese_vg" now active
> lvm2.
> 
> Was fine (minus of course the entire bio thing) in 50, did something
> break in 51 or is it just my box?

I've had a couple of reports of this problem.  The offending patch is:

http://people.sistina.com/~thornber/patches/2.5-stable/2.5.51/2.5.51-dm-1/00005.patch

back it out if necc.


All it does is:

--- diff/drivers/md/dm-table.c	2002-12-11 11:59:51.000000000 +0000
+++ source/drivers/md/dm-table.c	2002-12-11 12:00:00.000000000 +0000
@@ -388,7 +388,7 @@
 static int check_device_area(struct dm_dev *dd, sector_t start, sector_t len)
 {
 	sector_t dev_size;
-	dev_size = dd->bdev->bd_inode->i_size;
+	dev_size = dd->bdev->bd_inode->i_size >> SECTOR_SHIFT;
 	return ((start < dev_size) && (len <= (dev_size - start)));
 }


ie. previously we were accidentally comparing bytes with sectors to
verify the device sizes.  So either I'm being very stupid (likely) and
the above patch is bogus, or you really don't have room for this lv.
Can you send me 3 bits of information please:

1) disk/partition sizes for your PVs
2) an LVM2 backup of the metadata (the nice readable ascii one).
3) The version of LVM that *created* the lv.

Thanks,

- Joe

  reply	other threads:[~2002-12-12  9:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 22:44 Confusing help texts? Pavel Machek
2002-12-11 23:45 ` Greg KH
2002-12-12  0:15   ` "bio too big" error Wil Reichert
2002-12-12  9:12     ` Joe Thornber [this message]
2002-12-12 17:33       ` Wil Reichert
2002-12-12 21:51       ` Kevin Corry
2002-12-13  8:41         ` [lvm-devel] " Joe Thornber
  -- strict thread matches above, loose matches on Subject: below --
2002-12-11  2:17 Wil Reichert
2002-12-11  2:44 ` Andrew Morton
2002-12-11  3:38   ` Wil Reichert
2002-12-11  5:11     ` Greg KH
2002-12-11 13:40       ` Wil Reichert
2002-12-11 19:16         ` Greg KH
2002-12-11  5:18     ` Andrew Morton
2002-12-11 12:09       ` Wil Reichert
2002-12-11  7:21     ` Jens Axboe
2002-12-12  9:22       ` Joe Thornber
2002-12-12 12:08 ` Joe Thornber
2002-12-12 18:34   ` Wil Reichert
2002-12-12 20:29     ` Joe Thornber

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=20021212091209.GA1299@reti \
    --to=joe@fib011235813.fsnet.co.uk \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wilreichert@yahoo.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