View previous topic :: View next topic |
Author |
Message |
v0n n00b
Joined: 04 Dec 2002 Posts: 34
|
Posted: Tue Nov 18, 2003 4:08 am Post subject: sources-gentoo (2.4.20) and LVM2 grief |
|
|
I can't get kernel 2.4.20-gentoo-r8 to work with LVM2. I can't use 2.6 because certain drawbacks in code (namely inability to use pvmove, I have a bad disk and need to move contents to new one before it dies completely) but after 2 days of struggle I still can't get any of the 2.4 kernels to cooperate. After initial vgchange -ay I get
Code: |
device-mapper ioctl cmd 0 failed: Invalid argument
Incompatible libdevmapper 1.00.05-ioctl-cvs (2003-09-01)(compat) and kernel driver
0 logical volume(s) in volume group "vg1" now active
|
I don't even pretend to understand anymore what the heck is the problem but if any of you can help it could save me some data and, even more important, hair on my head. |
|
Back to top |
|
|
cybrjackle Apprentice
Joined: 09 Jan 2003 Posts: 248 Location: USA
|
Posted: Wed Dec 03, 2003 12:44 am Post subject: |
|
|
This might be to late, but I'm wanting to move up to 2.6, but keep 2.4 around for backup. I'm currently on lvm and I know I need to move to lvm2 or evms2 so it is compatible with 2.6. If you use USE="+evms2" with gentoo-sources, it will give you the "device-mapper" in the kernel so I think you will be able to move to lvm2. I'm trying it now. |
|
Back to top |
|
|
zaftro n00b
Joined: 07 Jan 2003 Posts: 39 Location: Melbourne, Australia
|
Posted: Wed Dec 03, 2003 8:46 am Post subject: |
|
|
Yo,
AFAIK lvm2 uses ioctl version 4.0 or some such (I don't know what that means tho...) and the 'dm-mod' in kernel 2.4.X (required for lvm2) seems to use ioctl version 1.0.
I couldn't find an option to use ioctl version 4.0 for the 'dm-mod' in my 2.4 kernel options. However the 2.6 kernel that I use (2.6.0-test9-mm2) has an option for using 'dm-mod' with ioctl verstion 4.0.
On a side note, in lvm2 all of the program files like 'vgchange', 'vgscan' are softlinked to the program 'lvm', which can be run as:
Code: | # lvm <command> <arguments> |
Where <command> could be 'vgchange' and <arguments> could be '-ay'.
Oh, v0n, your best bet would be to emerge 'lvm-user' (ie lvm1) and enable the 'lvm-mod'.
Later,
zaftro _________________ You may well be reading my signature. Don't be alarmed.
JID: dan.farrell@jabber.zim.net.au |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|