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
# 15  
Old 06-13-2011
I will try to reproduce this in an vm tonight/tomorrow and will came back to you.
It should not show that line with the pached version - this is one of the fixes.

If I get it right you cannot see the kernel avaliable at boot? As per your grub conf you should see the entry of this kernel at boot. Can you try without hiddenmenu flag?
# 16  
Old 06-14-2011
Quote:
I will try to reproduce this in an vm tonight/tomorrow and will came back to you.
that would be a great help bro ,apologies if i`m causing such a headache Smilie


Quote:
If I get it right you cannot see the kernel avaliable at boot? As per your grub conf you should see the entry of this kernel at boot. Can you try without hiddenmenu flag
yes you got it right , but unfortunately after omitting the
"hiddenmenu flag" , nothing new showed up !
also i`ve noticed that after applying the code u provided , and starts to build the initrd image , some of the modules gets ( bad subscriptions )
i dont understands what that should mean ??
waiting for your feedback..
Regards

# 17  
Old 06-17-2011
Sorry for the delay, work and stuff Smilie
Actually the patch from the bug report works perfectly


Code:
[root@localhost ~]# uname -a;date;uptime; mkinitrd -v -f /boot/initrd.$(uname -r).img $(uname -r)
Linux localhost.localdomain 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
Fri Jun 17 14:53:56 EEST 2011
 14:53:56 up 16 min,  2 users,  load average: 0.00, 0.15, 0.18
Creating initramfs
Looking for deps of module ehci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module uhci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Found RAID component md2
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 sdd3
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module scsi_transport_sas: scsi_mod
Looking for deps of module mptbase
Looking for deps of module mptscsih: scsi_mod mptbase
Looking for deps of module mptsas: scsi_mod scsi_transport_sas mptbase mptscsih
Looking for driver for device sdc3
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for driver for device sdb3
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for driver for device sda3
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Found RAID component md1
Looking for deps of module raid5: xor raid456
Looking for driver for device sdd2
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for driver for device sdc2
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for driver for device sdb2
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for driver for device sda2
Looking for deps of module pci:v00001000d00000054sv00001000sd00008000bc01sc00i00: scsi_mod scsi_transport_sas mptbase mptscsih mptsas
Looking for deps of module ata_piix: scsi_mod libata
Looking for deps of module libata: scsi_mod
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
Looking for deps of module dm-mem-cache
Looking for deps of module dm-region_hash: dm-mod dm-log
Looking for deps of module dm-message
Looking for deps of module dm-raid45: dm-message dm-mod dm-mem-cache dm-log dm-region_hash
Using modules:  /lib/modules/2.6.18-238.el5/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-238.el5/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-238.el5/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-238.el5/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-238.el5/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/xor.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/raid456.ko /lib/modules/2.6.18-238.el5/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-238.el5/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-238.el5/kernel/drivers/scsi/scsi_transport_sas.ko /lib/modules/2.6.18-238.el5/kernel/drivers/message/fusion/mptbase.ko /lib/modules/2.6.18-238.el5/kernel/drivers/message/fusion/mptscsih.ko /lib/modules/2.6.18-238.el5/kernel/drivers/message/fusion/mptsas.ko /lib/modules/2.6.18-238.el5/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-238.el5/kernel/drivers/ata/ata_piix.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-log.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-snapshot.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-mem-cache.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-region_hash.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-message.ko /lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-raid45.ko
/sbin/nash -> /tmp/initrd.Ja9708/bin/nash
/sbin/insmod.static -> /tmp/initrd.Ja9708/bin/insmod
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/usb/host/ehci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/ehci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/usb/host/ohci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/ohci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/usb/host/uhci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/uhci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/fs/jbd/jbd.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/jbd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/fs/ext3/ext3.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/ext3.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/xor.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/xor.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/raid456.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/raid456.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/scsi/scsi_mod.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/scsi_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/scsi/sd_mod.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/sd_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/scsi/scsi_transport_sas.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/scsi_transport_sas.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/message/fusion/mptbase.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/mptbase.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/message/fusion/mptscsih.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/mptscsih.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/message/fusion/mptsas.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/mptsas.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/ata/libata.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/libata.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/ata/ata_piix.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/ata_piix.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-mod.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-log.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-log.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-mirror.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-mirror.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-zero.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-zero.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-snapshot.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-snapshot.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-mem-cache.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-mem-cache.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-region_hash.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-region_hash.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-message.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-message.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-238.el5/kernel/drivers/md/dm-raid45.ko' [elf64-x86-64] to `/tmp/initrd.Ja9708/lib/dm-raid45.ko' [elf64-x86-64]
/sbin/lvm.static -> /tmp/initrd.Ja9708/bin/lvm
/sbin/dmraid.static -> /tmp/initrd.Ja9708/bin/dmraid
/sbin/kpartx.static -> /tmp/initrd.Ja9708/bin/kpartx
Adding module ehci-hcd
Adding module ohci-hcd
Adding module uhci-hcd
Adding module jbd
Adding module ext3
Adding module xor
Adding module raid456
Adding module scsi_mod
Adding module sd_mod
Adding module scsi_transport_sas
Adding module mptbase
Adding module mptscsih
Adding module mptsas
Adding module libata
Adding module ata_piix
Adding module dm-mod
Adding module dm-log
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
Adding module dm-mem-cache
Adding module dm-region_hash
Adding module dm-message
Adding module dm-raid45

[root@localhost ~]#
[root@localhost ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid1]
md0 : active raid1 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      513984 blocks [4/4] [UUUU]

md1 : active raid5 sdd2[3] sdc2[2] sdb2[1] sda2[0]
      3059712 blocks level 5, 256k chunk, algorithm 2 [4/4] [UUUU]

md2 : active raid5 sdd3[3] sdc3[2] sdb3[1] sda3[0]
      26843904 blocks level 5, 256k chunk, algorithm 2 [4/4] [UUUU]

unused devices: <none>
[root@localhost ~]#

So to sum up, this bug appears if you have more than 1 RAID5 arrays.
The reason is that the mkinitrd script tryes to load the kernel driver raid456 rwice or more(depends on you raid5 arrays, if you have 300 it will try to load it 300 time)

The fix is rather simple:

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

In the attachment you will find the fixed mkinitrd just run

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

And we are ready Smilie
# 18  
Old 07-01-2011
MySQL

So sorry for the dead Slow Response Click,
that was a summer vacation Smilie
i `d like to thank you for takin the time and effort tryin` to help me solve my problem
as i ended up reinstalling the system from scratch ,
did the patching part , and everything went good Smilie
i`m greatfull for your help my friend .
plz accept my apology for being too late
Regards
Saed
# 19  
Old 07-03-2011
No problem, I am going on vacation myself soon Smilie. Glad I helped you and enjoy the forums Smilie
This User Gave Thanks to click For This Post:
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