insmod Error inserting `/lib/raid456.ko` -1 File Exist


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat insmod Error inserting `/lib/raid456.ko` -1 File Exist
# 8  
Old 06-08-2011
No you got it right I was wrong in assuming that the module will be in /etc/sysconfig/modules/ as it is external to mine understanding but it looks like it is loaded all together as basic module.

Code:
Adding module raid456
Adding module raid456

If it is appearing twice this means that the module will be included twice - not successful resulting in your error.

So in order to fix this I`m attaching patched version of the mkinitrd this version is also included in this rpm

RPM Search Fedora 7 mkinitrd 6.0.9 rpm

You have to download mkinitrd.gz and run

Code:
gunzip mkinitrd.gz
mv /sbin/mkinitrd /sbin/mkinitrd.old
mv ./mkinitrd /sbin/mkinitrd
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)

Or install the rpm and run

Code:
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)

Since this is not tested, please provide the output before rebooting.
If anything goes wrong do

Code:
mv /sbin/mkinitrd.old /sbin/mkinitrd
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)

# 9  
Old 06-08-2011
many thanks click for the update ,
well ,
i started from here first :-
(1)- downloading/installing the "mkinitrd-6.0.9-7.1.x86_64.rpm"
-some dependencies troubles occurred!, even after satisfying all the missing
dependencies , problems were still there !

(1.A) using yum :-
Code:
yum install /home/src/mkinitrd-6.0.9-7.1.x86_64\(2\).rpm
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
 * base: centos.fastbull.org
 * centosplus: centos.fastbull.org
 * contrib: centos.fastbull.org
 * extras: centos.fastbull.org
 * updates: centos.fastbull.org
Reading version lock configuration
Setting up Install Process
Examining /home/src/mkinitrd-6.0.9-7.1.x86_64(2).rpm: mkinitrd-6.0.9-7.1.x86_64
Marking /home/src/mkinitrd-6.0.9-7.1.x86_64(2).rpm as an update to mkinitrd-5.1.19.6-68.el5_6.1.x86_64
Marking /home/src/mkinitrd-6.0.9-7.1.x86_64(2).rpm as an update to mkinitrd-5.1.19.6-68.el5_6.1.i386
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: libbdevid.so.5.1.19.6 for package: mkinitrd-devel
--> Processing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 for package: mkinitrd-devel
--> Processing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 for package: libbdevid-python
--> Processing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 for package: mkinitrd-devel
--> Processing Dependency: libbdevid.so.5.1.19.6()(64bit) for package: mkinitrd-devel
--> Processing Dependency: libbdevid.so.5.1.19.6()(64bit) for package: libbdevid-python
--> Processing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 for package: mkinitrd-devel
--> Processing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 for package: libbdevid-python
--> Processing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 for package: mkinitrd-devel
---> Package mkinitrd.x86_64 0:6.0.9-7.1 set to be updated
--> Processing Dependency: nash = 6.0.9-7.1 for package: mkinitrd
--> Processing Dependency: libbdevid.so.6.0.9()(64bit) for package: mkinitrd
--> Processing Dependency: libdhcp4client-3.0.5.so.0()(64bit) for package: mkinitrd
--> Processing Dependency: libdhcp6client-0.10.so.0()(64bit) for package: mkinitrd
--> Processing Dependency: libnash.so.6.0.9()(64bit) for package: mkinitrd
--> Processing Dependency: libparted-1.8.so.6()(64bit) for package: mkinitrd
--> Finished Dependency Resolution
mkinitrd-6.0.9-7.1.x86_64 from /mkinitrd-6.0.9-7.1.x86_64(2) has depsolving problems
  --> Missing Dependency: libparted-1.8.so.6()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
mkinitrd-devel-5.1.19.6-68.el5_6.1.i386 from installed has depsolving problems
  --> Missing Dependency: libbdevid.so.5.1.19.6 is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.i386 (installed)
mkinitrd-devel-5.1.19.6-68.el5_6.1.i386 from installed has depsolving problems
  --> Missing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.i386 (installed)
mkinitrd-devel-5.1.19.6-68.el5_6.1.x86_64 from installed has depsolving problems
  --> Missing Dependency: libbdevid.so.5.1.19.6()(64bit) is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.x86_64 (installed)
mkinitrd-6.0.9-7.1.x86_64 from /mkinitrd-6.0.9-7.1.x86_64(2) has depsolving problems
  --> Missing Dependency: libdhcp6client-0.10.so.0()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
libbdevid-python-5.1.19.6-68.el5_6.1.x86_64 from installed has depsolving problems
  --> Missing Dependency: libbdevid.so.5.1.19.6()(64bit) is needed by package libbdevid-python-5.1.19.6-68.el5_6.1.x86_64 (installed)
libbdevid-python-5.1.19.6-68.el5_6.1.x86_64 from installed has depsolving problems
  --> Missing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 is needed by package libbdevid-python-5.1.19.6-68.el5_6.1.x86_64 (installed)
mkinitrd-6.0.9-7.1.x86_64 from /mkinitrd-6.0.9-7.1.x86_64(2) has depsolving problems
  --> Missing Dependency: libnash.so.6.0.9()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
mkinitrd-6.0.9-7.1.x86_64 from /mkinitrd-6.0.9-7.1.x86_64(2) has depsolving problems
  --> Missing Dependency: libdhcp4client-3.0.5.so.0()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
mkinitrd-6.0.9-7.1.x86_64 from /mkinitrd-6.0.9-7.1.x86_64(2) has depsolving problems
  --> Missing Dependency: nash = 6.0.9-7.1 is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
mkinitrd-6.0.9-7.1.x86_64 from /mkinitrd-6.0.9-7.1.x86_64(2) has depsolving problems
  --> Missing Dependency: libbdevid.so.6.0.9()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
mkinitrd-devel-5.1.19.6-68.el5_6.1.x86_64 from installed has depsolving problems
  --> Missing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.x86_64 (installed)
Error: Missing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 is needed by package libbdevid-python-5.1.19.6-68.el5_6.1.x86_64 (installed)
Error: Missing Dependency: libdhcp4client-3.0.5.so.0()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
Error: Missing Dependency: nash = 6.0.9-7.1 is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
Error: Missing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.i386 (installed)
Error: Missing Dependency: libbdevid.so.6.0.9()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
Error: Missing Dependency: libbdevid.so.5.1.19.6()(64bit) is needed by package libbdevid-python-5.1.19.6-68.el5_6.1.x86_64 (installed)
Error: Missing Dependency: libbdevid.so.5.1.19.6()(64bit) is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.x86_64 (installed)
Error: Missing Dependency: mkinitrd = 5.1.19.6-68.el5_6.1 is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.x86_64 (installed)
Error: Missing Dependency: libnash.so.6.0.9()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
Error: Missing Dependency: libbdevid.so.5.1.19.6 is needed by package mkinitrd-devel-5.1.19.6-68.el5_6.1.i386 (installed)
Error: Missing Dependency: libdhcp6client-0.10.so.0()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
Error: Missing Dependency: libparted-1.8.so.6()(64bit) is needed by package mkinitrd-6.0.9-7.1.x86_64 (/mkinitrd-6.0.9-7.1.x86_64(2))
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

# sure i tried it once more with the options yum suggested :-
1)package-cleanup --dupes
2)package-cleanup --problems
3)rpm -Va --nofiles --nodigest
4)--skip-broken
All in vain !

(1.B) using rpm -ivh
Code:
rpm -ivh /home/src/mkinitrd-6.0.9-7.1.x86_64\(2\).rpm
warning: /home/src/mkinitrd-6.0.9-7.1.x86_64(2).rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
    libbdevid.so.6.0.9()(64bit) is needed by mkinitrd-6.0.9-7.1.x86_64
    libdhcp4client-3.0.5.so.0()(64bit) is needed by mkinitrd-6.0.9-7.1.x86_64
    libdhcp6client-0.10.so.0()(64bit) is needed by mkinitrd-6.0.9-7.1.x86_64
    libnash.so.6.0.9()(64bit) is needed by mkinitrd-6.0.9-7.1.x86_64
    libparted-1.8.so.6()(64bit) is needed by mkinitrd-6.0.9-7.1.x86_64
    nash = 6.0.9-7.1 is needed by mkinitrd-6.0.9-7.1.x86_64

(1.C)- checking for installed dependincies :-

[code]
yum list installed | grep -i libbdevid
libbdevid-python.x86_64 5.1.19.6-68.el5_6.1 installed

yum list installed | grep -i libdhcp4client
libdhcp4client.i386 12:3.0.5-23.el5_6.4 installed
libdhcp4client.x86_64 12:3.0.5-23.el5_6.4 installed
libdhcp4client-devel.i386 12:3.0.5-23.el5_6.4 installed
libdhcp4client-devel.x86_64 12:3.0.5-23.el5_6.4 installed


yum list installed | grep -i libdhcp6client
libdhcp6client.i386 1.0.10-20.el5 installed
libdhcp6client.x86_64 1.0.10-20.el5 installed
libdhcp6client-devel.i386 1.0.10-20.el5 installed
libdhcp6client-devel.x86_64 1.0.10-20.el5 installed

yum list installed | grep -i nash
nash.x86_64 5.1.19.6-68.el5_6.1 installed

# i tried to install some of the missing dependincies , but i ran into sub-missing dependinces which made the problem even more complex !

(2) - You have to download mkinitrd.gz and run..

(1.A)
Code:
gunzip mkinitrd.gz
mv /sbin/mkinitrd /sbin/mkinitrd.old
mv ./mkinitrd /sbin/mkinitrd
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)

mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)
/sbin/mkinitrd: line 53: .: /etc/sysconfig/mkinitrd: is a directory
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd 
Looking for deps of module jbd
Found RAID component md1
Looking for deps of module raid5: xor raid456 
Looking for deps of module xor
Looking for deps of module raid456: xor 
Looking for driver for device sdd
Looking for deps of module pci:v00008086d00003B22sv00001028sd000002A6bc01sc06i01: scsi_mod libata ahci scsi_mod libata ahci 
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod 
Looking for deps of module libata: scsi_mod 
Looking for deps of module ahci: scsi_mod libata 
Looking for driver for device sdc
Looking for deps of module pci:v00008086d00003B22sv00001028sd000002A6bc01sc06i01: scsi_mod libata ahci scsi_mod libata ahci 
Looking for driver for device LABEL=SWAP-sda2
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod dm-log 
Looking for deps of module dm-log: dm-mod 
Looking for deps of module dm-zero: dm-mod 
Looking for deps of module dm-snapshot: dm-mod 
Using modules:  /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/xor.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/raid456.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/raid456.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/ata/ahci.ko  /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-log.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-snapshot.ko
Building initrd in /tmp/initrd.LM7156
/sbin/nash -> /tmp/initrd.LM7156/bin/nash
/sbin/insmod -> /tmp/initrd.LM7156/bin/insmod
  /lib64/libc.so.6 -> /tmp/initrd.LM7156/lib64/libc.so.6
    /lib64/libc-2.5.so -> /tmp/initrd.LM7156/lib64/libc-2.5.so
      /lib64/ld-lsb-x86-64.so.3 -> /tmp/initrd.LM7156/lib64/ld-lsb-x86-64.so.3
        /lib64/ld-2.5.so -> /tmp/initrd.LM7156/lib64/ld-2.5.so
/sbin/rmmod -> /tmp/initrd.LM7156/bin/rmmod
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/usb/host/uhci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/uhci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/usb/host/ohci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/ohci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/usb/host/ehci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/ehci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/fs/jbd/jbd.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/jbd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/fs/ext3/ext3.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/ext3.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/xor.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/xor.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/raid456.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/raid456.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/raid456.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/raid456.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/scsi/scsi_mod.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/scsi_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/scsi/sd_mod.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/sd_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/ata/libata.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/libata.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/ata/ahci.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/ahci.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-mod.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/dm-mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-log.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/dm-log.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-mirror.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/dm-mirror.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-zero.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/dm-zero.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.9.1.el5xen/kernel/drivers/md/dm-snapshot.ko' [elf64-x86-64] to `/tmp/initrd.LM7156/lib/dm-snapshot.ko' [elf64-x86-64]
/sbin/mdadm -> /tmp/initrd.LM7156/sbin/mdadm
/etc/mdadm.conf -> /tmp/initrd.LM7156/etc/mdadm.conf
/sbin/lvm -> /tmp/initrd.LM7156/bin/lvm
  /sbin/lvm.static -> /tmp/initrd.LM7156/sbin/lvm.static
/etc/lvm -> /tmp/initrd.LM7156/etc/lvm
`/etc/lvm/lvm.conf' -> `/tmp/initrd.LM7156/etc/lvm/lvm.conf'
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module xor
Adding module raid456
Adding module raid456
Adding module scsi_mod
Adding module sd_mod
Adding module libata
Adding module ahci
Adding module dm-mod
Adding module dm-log
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
This initrd uses dynamic shared objects.
Adding dynamic linker configuration files.
/etc/ld.so.conf -> /tmp/initrd.LM7156/etc/ld.so.conf
/etc/ld.so.conf.d/qt4-x86_64.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/qt4-x86_64.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.12.1.el5.centos.plus.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/kernelcap-2.6.18-238.12.1.el5.centos.plus.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.9.1.el5.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/kernelcap-2.6.18-238.9.1.el5.conf
/etc/ld.so.conf.d/xulrunner-32.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/xulrunner-32.conf
/etc/ld.so.conf.d/xulrunner-64.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/xulrunner-64.conf
/etc/ld.so.conf.d/qt4-i386.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/qt4-i386.conf
/etc/ld.so.conf.d/mysql-x86_64.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/mysql-x86_64.conf
/etc/ld.so.conf.d/qt-x86_64.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/qt-x86_64.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.el5.conf -> /tmp/initrd.LM7156/etc/ld.so.conf.d/kernelcap-2.6.18-238.el5.conf
Running ldconfig

# my current mkinitrd version is :-

Code:
rpm -qf /sbin/mkinitrd
mkinitrd-5.1.19.6-68.el5_6.1
mkinitrd-5.1.19.6-68.el5_6.1

a friend told me to go and remove the presisting module from here ,
Code:
ls /lib/modules/`uname -r`
ls /lib/modules/`uname -r`
total 1608
drwxr-xr-x 2 root root   4096 Jun  1 18:35 weak-updates
drwxr-xr-x 2 root root   4096 Jun  1 18:35 updates
drwxr-xr-x 2 root root   4096 Jun  1 18:35 extra
lrwxrwxrwx 1 root root     67 Jun  8 16:05 build -> ../../../usr/src/kernels/2.6.18-238.12.1.el5.centos.plus-xen-x86_64
drwxr-xr-x 9 root root   4096 Jun  8 16:06 kernel
lrwxrwxrwx 1 root root      5 Jun  8 16:06 source -> build
-rw-r--r-- 1 root root 412869 Jun  8 16:06 modules.usbmap
-rw-r--r-- 1 root root 160682 Jun  8 16:06 modules.symbols
-rw-r--r-- 1 root root   4033 Jun  8 16:06 modules.seriomap
-rw-r--r-- 1 root root 277649 Jun  8 16:06 modules.pcimap
-rw-r--r-- 1 root root     74 Jun  8 16:06 modules.ofmap
-rw-r--r-- 1 root root  13402 Jun  8 16:06 modules.isapnpmap
-rw-r--r-- 1 root root    375 Jun  8 16:06 modules.inputmap
-rw-r--r-- 1 root root    887 Jun  8 16:06 modules.ieee1394map
-rw-r--r-- 1 root root 369035 Jun  8 16:06 modules.dep
-rw-r--r-- 1 root root     69 Jun  8 16:06 modules.ccwmap
-rw-r--r-- 1 root root 339826 Jun  8 16:06 modules.alias

any help attemp with this regard ?

Kind Regards..




# 10  
Old 06-09-2011
You should be OK just with the attached version of the mkinitrd(i`ve just extracted it from the version 6) since version 6 contains some other stuff which you actually don`t need, if you want the hole rpm(as I said it not needed since the bug is only in mkinitrd) you can install it with --nodeps flag of the rpm command. You can also remove the driver from /lib/modules/`uname -r` but you have to locate it and be sure not to delete the two instances of the module which will render your system unbootlable.

This is the actual patch to mkinitrd you can apply it on your current version or use the one which I`ve attached.

Code:
    # only need to add each module once     case " $MODULES " in         *" $fmPath "*)             return ;;         *)             MODULES="$MODULES $fmPath"             ;;     esac

It should go before

Quote:
# need to handle prescsimods here -- they need to go _after_ scsi_mod
if [ "$modName" = "scsi_mod" ]; then
Does

Code:
gunzip mkinitrd.gz
mv /sbin/mkinitrd /sbin/mkinitrd.old
mv ./mkinitrd /sbin/mkinitrd
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)

Works? Do you still get the error after rebooting?
# 11  
Old 06-12-2011
Hello Click , long time no see : ) , i had to finish my MS.Exchange Exam ..
yeah i`m MS Sys Admin , who got a Crush on Linux & won`t stop until i feed my gluttonySmilie

Still out of luck with my problem after doing as u said ..Smilie
- installing
mkinitrd-6.0.9-7.1.x86_64.rpm with no deps
- patching the existing
mkinitrd-5.1.19-6.x86_64.el_6.1

Code:

Code:
rpm -ivh --nodeps mkinitrd-6.0.9-7.1.x86_64.rpm 
warning: mkinitrd-6.0.9-7.1.x86_64(2).rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:mkinitrd               ########################################### [100%]



Code:
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)
/sbin/mkinitrd: line 53: .: /etc/sysconfig/mkinitrd: is a directory
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd 
Looking for deps of module jbd
Found RAID component md1
Looking for deps of module raid5: xor raid456 
Looking for deps of module xor
Looking for deps of module raid456: xor 
Looking for driver for device sdd
Looking for deps of module pci:v00008086d00003B22sv00001028sd000002A6bc01sc06i01: scsi_mod libata ahci scsi_mod libata ahci 
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod 
Looking for deps of module libata: scsi_mod 
Looking for deps of module ahci: scsi_mod libata 
Looking for driver for device sdc
Looking for deps of module pci:v00008086d00003B22sv00001028sd000002A6bc01sc06i01: scsi_mod libata ahci scsi_mod libata ahci 
Looking for driver for device LABEL=SWAP-sda2
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod dm-log 
Looking for deps of module dm-log: dm-mod 
Looking for deps of module dm-zero: dm-mod 
Looking for deps of module dm-snapshot: dm-mod 
Using modules:  /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/xor.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/raid456.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/raid456.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/ata/ahci.ko  /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-log.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-snapshot.ko
Building initrd in /tmp/initrd.r23719
/sbin/nash -> /tmp/initrd.r23719/bin/nash
/sbin/insmod -> /tmp/initrd.r23719/bin/insmod
  /lib64/libc.so.6 -> /tmp/initrd.r23719/lib64/libc.so.6
    /lib64/libc-2.5.so -> /tmp/initrd.r23719/lib64/libc-2.5.so
      /lib64/ld-lsb-x86-64.so.3 -> /tmp/initrd.r23719/lib64/ld-lsb-x86-64.so.3
        /lib64/ld-2.5.so -> /tmp/initrd.r23719/lib64/ld-2.5.so
/sbin/rmmod -> /tmp/initrd.r23719/bin/rmmod
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/usb/host/uhci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/uhci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/usb/host/ohci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/ohci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/usb/host/ehci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/ehci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/fs/jbd/jbd.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/jbd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/fs/ext3/ext3.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/ext3.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/xor.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/xor.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/raid456.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/raid456.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/raid456.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/raid456.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/scsi/scsi_mod.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/scsi_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/scsi/sd_mod.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/sd_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/ata/libata.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/libata.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/ata/ahci.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/ahci.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-mod.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/dm-mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-log.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/dm-log.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-mirror.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/dm-mirror.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-zero.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/dm-zero.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.12.1.el5.centos.plusxen/kernel/drivers/md/dm-snapshot.ko' [elf64-x86-64] to `/tmp/initrd.r23719/lib/dm-snapshot.ko' [elf64-x86-64]
/sbin/mdadm -> /tmp/initrd.r23719/sbin/mdadm
/etc/mdadm.conf -> /tmp/initrd.r23719/etc/mdadm.conf
/sbin/lvm -> /tmp/initrd.r23719/bin/lvm
  /sbin/lvm.static -> /tmp/initrd.r23719/sbin/lvm.static
/etc/lvm -> /tmp/initrd.r23719/etc/lvm
`/etc/lvm/lvm.conf' -> `/tmp/initrd.r23719/etc/lvm/lvm.conf'
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module xor
Adding module raid456
Adding module raid456
Adding module scsi_mod
Adding module sd_mod
Adding module libata
Adding module ahci
Adding module dm-mod
Adding module dm-log
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
This initrd uses dynamic shared objects.
Adding dynamic linker configuration files.
/etc/ld.so.conf -> /tmp/initrd.r23719/etc/ld.so.conf
/etc/ld.so.conf.d/qt4-x86_64.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/qt4-x86_64.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.12.1.el5.centos.plus.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/kernelcap-2.6.18-238.12.1.el5.centos.plus.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.9.1.el5.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/kernelcap-2.6.18-238.9.1.el5.conf
/etc/ld.so.conf.d/xulrunner-32.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/xulrunner-32.conf
/etc/ld.so.conf.d/xulrunner-64.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/xulrunner-64.conf
/etc/ld.so.conf.d/qt4-i386.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/qt4-i386.conf
/etc/ld.so.conf.d/mysql-x86_64.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/mysql-x86_64.conf
/etc/ld.so.conf.d/qt-x86_64.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/qt-x86_64.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.el5.conf -> /tmp/initrd.r23719/etc/ld.so.conf.d/kernelcap-2.6.18-238.el5.conf
Running ldconfig


Appreciated ...



# 12  
Old 06-12-2011
Hi Saed, good for you. I`m completely lost if I had to troubleshoot MS Exchange Smilie.


Hmm, could you find the line

Quote:
# only need to add each module once
in mkinitrd

and add that below it - make a backup of mkinitrd since I don`t have access to any testing machine right now to try it.

Code:
   case " $(eval echo \${$modlist}) " in
        *" $modName "*)
            return ;;
        *)
            eval $modlist=\"\${$modlist} $modName\"
            ;;
    esac

# 13  
Old 06-12-2011
i`m supposing you haven`t found the mkinitrd.pl copy i`ve attached in the last thread
, any way i `ve updated the mkinitrd with the code u sent again.
problem still persists still the same .
please have a look on the attached mkinitrd after update
i`ll be glad if i can give you any help with your MS.exchange : )


Code:
mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)
/sbin/mkinitrd: line 53: .: /etc/sysconfig/mkinitrd: is a directory
Creating initramfs
Looking for deps of module uhci-hcd
/sbin/mkinitrd: line 329: ${}: bad substitution
/sbin/mkinitrd: line 333: ${} uhci-hcd: bad substitution
Looking for deps of module ext3: jbd 
Looking for deps of module jbd
/sbin/mkinitrd: line 329: ${}: bad substitution
/sbin/mkinitrd: line 333: ${} jbd: bad substitution
Looking for deps of module ahci: scsi_mod libata 
Looking for deps of module scsi_mod
/sbin/mkinitrd: line 329: ${}: bad substitution
/sbin/mkinitrd: line 333: ${} scsi_mod: bad substitution
Looking for deps of module ide-disk
/sbin/mkinitrd: line 329: ${}: bad substitution
/sbin/mkinitrd: line 333: ${} ide-disk: bad substitution
Looking for deps of module dm-mod
/sbin/mkinitrd: line 329: ${}: bad substitution
/sbin/mkinitrd: line 333: ${} dm-mod: bad substitution
Using modules: 
Building initrd in /tmp/initrd.I24637
/sbin/nash -> /tmp/initrd.I24637/bin/nash
/sbin/insmod -> /tmp/initrd.I24637/bin/insmod
  /lib64/libc.so.6 -> /tmp/initrd.I24637/lib64/libc.so.6
    /lib64/libc-2.5.so -> /tmp/initrd.I24637/lib64/libc-2.5.so
      /lib64/ld-lsb-x86-64.so.3 -> /tmp/initrd.I24637/lib64/ld-lsb-x86-64.so.3
        /lib64/ld-2.5.so -> /tmp/initrd.I24637/lib64/ld-2.5.so
/sbin/rmmod -> /tmp/initrd.I24637/bin/rmmod
This initrd uses dynamic shared objects.
Adding dynamic linker configuration files.
/etc/ld.so.conf -> /tmp/initrd.I24637/etc/ld.so.conf
/etc/ld.so.conf.d/qt4-x86_64.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/qt4-x86_64.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.12.1.el5.centos.plus.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/kernelcap-2.6.18-238.12.1.el5.centos.plus.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.9.1.el5.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/kernelcap-2.6.18-238.9.1.el5.conf
/etc/ld.so.conf.d/xulrunner-32.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/xulrunner-32.conf
/etc/ld.so.conf.d/xulrunner-64.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/xulrunner-64.conf
/etc/ld.so.conf.d/qt4-i386.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/qt4-i386.conf
/etc/ld.so.conf.d/mysql-x86_64.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/mysql-x86_64.conf
/etc/ld.so.conf.d/qt-x86_64.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/qt-x86_64.conf
/etc/ld.so.conf.d/kernelcap-2.6.18-238.el5.conf -> /tmp/initrd.I24637/etc/ld.so.conf.d/kernelcap-2.6.18-238.el5.conf
Running ldconfig

REgards
# 14  
Old 06-12-2011
Hold it , i forgot to mention something here , after i add the code u provided , rebuilt the image .
although that the image is being created without adding duplicated modules ( should be workin at this point)
i made sure of my kernel Ver and /etc/grub.conf file , even reinstalled grub but still the same !
it shows the following :-
Code:
 uname -r
2.6.18-238.12.1.el5.centos.plusxen

Code:
at /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/lvm_raid/volroot
#          initrd /initrd-version.img
#boot=/dev/md0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-238.12.1.el5.centos.plusxen)
    root (hd0,0)
    kernel /xen.gz-2.6.18-238.12.1.el5.centos.plus crashkernel=320M@32M
    module /vmlinuz-2.6.18-238.12.1.el5.centos.plusxen ro root=/dev/lvm_raid/volroot rhgb quiet
    module /initrd-2.6.18-238.12.1.el5.centos.plusxen.img

at boot time i cant see the exact kernel version , as it shows
CentOs ( 2.6.18-238.9.1.el5xen)
Centos ( 2.6.18-238-el5xen )
1) why it still showing the insmod Error inserting `/lib/raid456.ko` -1 File Exist if it didn`t add it twice
2) why cant i see my exact kernel version at boot

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error inserting a clob file into DB table

Hi all, I am reading control file log from my server and putting it to a variable for j in $(cat $dirname/ctl_file.log) do if then Y=${#fileclob_ctl_file} if then fileclob_ctl_file=$j else fileclob_ctl_file="${fileclob_ctl_file},${j}" fi fi ... (5 Replies)
Discussion started by: Pratiksha Mehra
5 Replies

2. UNIX for Dummies Questions & Answers

insmod error: disagrees about version of symbol module_layout

When I try to insert a simple kernel module I get the following error > insmod: error inserting 'test.ko': -1 Invalid module format > in dmesg I see: disagrees about version of symbol module_layout I have following kernel which I downloaded using apt-get: uname -r 2.6.32-24-generic ... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

3. UNIX for Dummies Questions & Answers

insmod: Invalid module format error

I have open suse kernel kernel 3.1.0-1.2-desktop on which I used kernel source 3.1.10-1.2 downloaded from kernel.org. The module gets built. While loading a kernel module I am getting Invalid module format error with description "first_driver: no symbol version for module_layout" The... (5 Replies)
Discussion started by: rupeshkp728
5 Replies

4. Shell Programming and Scripting

ORA-01756 Error while inserting a file in CLOB field

Hi, Please guide me where i am doing wrong, i am getting ORA-01756:quoted string not properly terminated when i am trying to insert file into CLOB cloumn of Oracle DB. Please find below the code where log file variable is myLogFile. Please let me know where i am doing wrong. ... (0 Replies)
Discussion started by: rajeshorpu
0 Replies

5. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

6. Shell Programming and Scripting

File exist checking error

Hi all, I have following code: export USERID=user export BATCHHOSTIP=190.113.3.324 remotePath=/home/user fileName=redbook.txt EXIST=`ssh $USERID@$BATCHHOSTIP 'if ; then echo 0; else echo 1 ; fi'` echo $EXIST II run the code from other server. The redbook.txt file is exist in... (1 Reply)
Discussion started by: suigion
1 Replies

7. Solaris

/usr/lib/snmp/snmpdx: can't open the file - Error Messages while rebooting

I have an X4500 server running solaris 10 and when I reboot my system it displays the following errors messages. Could someone help me with this ??? NOTICE: pci8086,1011 - e1000g : Adapter 100Mbps full duplex copper link is up. Nov 8 17:41:46 /usr/lib/snmp/snmpdx: can't open the file Nov 8... (2 Replies)
Discussion started by: bharu_sri
2 Replies

8. UNIX for Dummies Questions & Answers

insmod error - no such device

Hi Everyone, I am relatively new to Linux. After about three months of trying to compile a driver for a ESDCAN card, I finally found a version and kernel that worked. I am running Slackware V12.0 with kernel version 2.6.24.5-smp. When I use insmod to insert the driver file (esdcan-pci331.ko),... (1 Reply)
Discussion started by: Brian-UOIT
1 Replies

9. UNIX for Dummies Questions & Answers

If we need to add a .ko file to your kernel. What we do is use insmod every time you

If we need to add a .ko file to your kernel. What we do is use insmod every time you boot. But if we would like it to load at boot automatically, what would we do? (0 Replies)
Discussion started by: anupa
0 Replies

10. HP-UX

Error: file </tmp/srw25108193> does not exist

Hi Everybody I need help from you guys. I'm getting this message on PC where i'm running Unix User using Reflection in order to get graphically format for Oracle Report Server. What is causing this msg and how to solve it? Regards and thanks in advance. Gege *Error: file... (0 Replies)
Discussion started by: cgege
0 Replies
Login or Register to Ask a Question