switch from 2.4.24 lvm1 to 2.6.10 lvm 2 problems
Hi!,
i have a pc running a home brewed 2.4.24 kernel with lvm1.
I want to switch to lvm2 and a 2.6.10 kernel.
So i installed both along with module-init-tools and the latest
version of initrd-tools.
I installed the 2.6.10 kernel, invoked initrd-tools to make an initrd
mkinitrd -o initrd.img-2.6.10-1-686-mine -r /dev/main/lv_root 2.6.10-1-686
Afterwards i also removed lvm1 after reading that having both them installed
could mean problems.
If i boot that kernel, it finds the initrd ok and starts loading from it
but then i get this:
1 PV(s) found for VG main: expected 0
Unable to find volume group main
ntfs drivber 2.1.22 [Flags: R/O module]
pivot_root: No such file or directory
/sbin/init: 431: Cannot open /dev/console: No such file
Kernel panic - not syncing: Attempted to kill init
Also, /dev/mapper isn't there.
dm-mod is added to /etc/modules
These are the program versions that i think matter:
ii lvm-common 1.5.17 The Logical Volume Manager for Linux
(common
rc lvm10 1.0.8-8 The Logical Volume Manager for Linux
ii lvm2 2.00.32-1 The Linux Logical Volume Manager
ii module-init-tools 3.2-pre1-2 tools for managing Linux kernel modules
ii modutils 2.4.26-1.2 Linux module utilities
ii initrd-tools 0.1.77 tools to create initrd image for ...
ii libdevmapper1.00 1.00.20-1 The Linux Kernel Device Mapper userspace
library
If i reboot the pc and use my 2.4.24 kernel again, everything loads ok but
when
running the various lvm tools, i get some weird errors:
root@arthur:/home/benedict[08:42:37]# lvmdiskscan
/dev/hda1 [ 94,10 MB] LVM physical volume
/dev/hda2 [ 478,50 MB]
/dev/hda5 [ 478,47 MB]
/dev/hda6 [ 188,23 MB]
/dev/hda7 [ 478,47 MB]
/dev/hda8 [ 666,73 MB]
/dev/hda9 [ 94,10 MB]
/dev/hda10 [ 34,85 GB] LVM physical volume
0 disks
6 partitions
0 LVM physical volume whole disks
2 LVM physical volumes
root@arthur:/home/benedict[08:43:20]# vgdisplay
/proc/lvm/VGs/main exists: Is the original LVM driver using this volume
group?
Can't lock main: skipping
root@arthur:/home/benedict[08:44:37]# vgscan
Reading all physical volumes. This may take a while...
/dev/loop0: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop1: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop2: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop3: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop4: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop5: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop6: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop7: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/proc/lvm/VGs/main exists: Is the original LVM driver using this volume
group?
Can't lock main: skipping
root@arthur:/home/benedict[08:43:55]# pvdisplay
VG data differs between PVs /dev/hda1 and /dev/hda10
1 PV(s) found for VG main: expected 0
--- Physical volume ---
PV Name /dev/hda1
VG Name main
PV Size 37,28 GB / not usable 58,03 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 1191
Free PE 887
Allocated PE 304
PV UUID aL8pR6-siOw-4PUF-TStB-epbL-FMfC-PexDbq
root@arthur:/home/benedict[08:46:37]# pvscan
/dev/loop0: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop1: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop2: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop3: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop4: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop5: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop6: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
/dev/loop7: ioctl BLKGETSIZE64 failed: Onbekend apparaat of adres
VG data differs between PVs /dev/hda1 and /dev/hda10
1 PV(s) found for VG main: expected 0
PV /dev/hda1 VG main lvm1 [37,22 GB / 27,72 GB free]
Total: 1 [37,22 GB] / in use: 1 [37,22 GB] / in no VG: 0 [0 ]
Any ideas of what's wrong?
Thanks,
Benedict
Reply to: