Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131302 - sys-fs/device-mapper - dm-stripe: Target length not divisible w/ 2.6.16 kernel
Summary: sys-fs/device-mapper - dm-stripe: Target length not divisible w/ 2.6.16 kernel
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 02:02 UTC by Erlend Davidson
Modified: 2006-11-02 11:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erlend Davidson 2006-04-26 02:02:11 UTC
Also here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186842
http://forums.gentoo.org/viewtopic-t-448587.html

Upgraded to 2.6.16 gentoo-sources, and now dmsetup no longer works.  Error message:

dm-stripe: Target length not divisible 

According to the post above, the problem also exists with dmraid.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-26 02:25:54 UTC
Which device-mapper version? Please, post exact ebuild name and version when filing bugs.
Comment 2 Erlend Davidson 2006-04-26 02:41:38 UTC
(In reply to comment #1)
> Which device-mapper version? Please, post exact ebuild name and version when
> filing bugs.
> 
Sorry, forgot about that.

The version I'm using is: sys-fs/device-mapper-1.02.02

However, the version in my initrd (I use dmsetup to boot) is...
dmsetup version:
Library version:   1.01.01 (2005-03-29)
Driver version:    4.4.0

That's quite old, so I'm guessing I should upgrade and see if the problem still exists?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-26 02:47:14 UTC
(In reply to comment #2)
> That's quite old, so I'm guessing I should upgrade and see if the problem still
> exists?

Sounds like a good idea... :) 

Comment 4 Erlend Davidson 2006-05-21 03:14:00 UTC
Okay, just tried dmsetup 1.02.03 and the problem still exists.  This is with gentoo-sources-2.6.16-r3.

The error is:
dm-stripe: Target length not divisible by chunk size.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-21 03:31:46 UTC
How about 1.02.07? Really please try w/ latest available version when reporting bugs.
Comment 6 Erlend Davidson 2006-05-26 02:06:12 UTC
(In reply to comment #5)
> How about 1.02.07? Really please try w/ latest available version when reporting
> bugs.
> 

Same error with 1.02.07.

Rebuilt by initrd with 1.02.07 and I boot using 2.6.15 kernel - everything goes fine.  I try and use the same initrd with a 2.6.16 kernel and I get the aforementioned error.
Comment 7 Erlend Davidson 2006-07-07 11:33:42 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > How about 1.02.07? Really please try w/ latest available version when reporting
> > bugs.
> > 
> 
> Same error with 1.02.07.
> 
> Rebuilt by initrd with 1.02.07 and I boot using 2.6.15 kernel - everything goes
> fine.  I try and use the same initrd with a 2.6.16 kernel and I get the
> aforementioned error.
> 

I read here: http://www.howtoforge.com/forums/archive/index.php/t-1664.html that the 2.6 kernels no longer support fakeraid setups (i.e. dmsetup).

Is this true?
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-11-02 10:17:53 UTC
No, 2.6 no longer supports ataraid but dmraid is the replacement.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2006-11-02 10:22:43 UTC
This problem is detailed at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186842 and seems to not be a bug.

Are you using dmraid or just plain device-mapper?

If just plain device mapper please post /etc/dmtab and describe how you created the setup in the first place
Comment 10 Erlend Davidson 2006-11-02 11:08:13 UTC
(In reply to comment #9)
> This problem is detailed at
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186842 and seems to not be
> a bug.
> 
> Are you using dmraid or just plain device-mapper?
> 
> If just plain device mapper please post /etc/dmtab and describe how you created
> the setup in the first place
> 

Unfortunately (due to a hard drive failure) I no longer have this setup.  I've read elsewhere however that the problem is just that the raid-cluster-size is not a factor of the total size of the device I created, and the newer device-mapper in the kernel dropped support for non-whole clusters at the end of the device.

It's not a bug - it was an intentional change in device-mapper.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2006-11-02 11:49:07 UTC
Indeed, closing...