[RHEL5.3] Error "Incorrect number of segments after building list" seen on LVM over MD RAID
Issue
- Messages seen similar to the following see on a system with LVM over MD raid:
Jun 15 23:18:15 linux kernel: end_request: I/O error, dev sdcs, sector 1660944368 Jun 15 23:18:18 linux kernel: Incorrect number of segments after building list Jun 15 23:18:18 linux kernel: counted 94, received 64 Jun 15 23:18:18 linux kernel: req nr_sec 992, cur_nr_sec 8 - Kernel oops when cciss driver hits BUG_ON(creq->nr_phys_segments > MAXSGENTRIES) resulting in an oops like this:
kernel BUG at drivers/block/cciss.c:2862! EFLAGS: 00010012 (2.6.18-155.el5PAE #1) EIP is at do_cciss_request+0x46/0x3a3 [cciss] Call Trace: [] cfq_set_request+0x0/0x31f [] cfq_resort_rr_list+0x23/0x8b [] cfq_add_crq_rb+0xba/0xc3 [] cfq_insert_request+0x42/0x498 [] elv_insert+0xc7/0x160 [] __make_request+0x2fb/0x344 [] generic_make_request+0x255/0x265 [] __bio_clone+0x6f/0x8a [] make_request+0x174/0x543 [raid1] [] generic_make_request+0x255/0x265 [] __bio_clone+0x6f/0x8a [] __map_bio+0x44/0x103 [dm_mod] [] __split_bio+0x428/0x438 [dm_mod] [] __handle_mm_fault+0x79c/0xcf8 [] dm_request+0xe2/0xe8 [dm_mod] [] generic_make_request+0x255/0x265 [] lock_timer_base+0x15/0x2f [] del_timer+0x41/0x47 [] __generic_unplug_device+0x1d/0x1f [] generic_unplug_device+0x1f/0x2c [] unplug_slaves+0x4f/0x83 [raid1] [] raid1_unplug+0xe/0x1a [raid1] [] dm_table_unplug_all+0x2d/0x60 [dm_mod] [] bio_add_page+0x25/0x2e [] dm_unplug_all+0x17/0x21 [dm_mod] [] blk_backing_dev_unplug+0x2f/0x32 [] __blockdev_direct_IO+0x9a9/0xba9 [] blkdev_direct_IO+0x30/0x35 [] blkdev_get_blocks+0x0/0xb5 [] generic_file_direct_IO+0xd0/0x118 [] __generic_file_aio_read+0xd2/0x198 [] lock_kernel+0x16/0x25 [] generic_file_read+0x0/0xab [] generic_file_read+0x97/0xab [] autoremove_wake_function+0x0/0x2d [] vfs_read+0x9f/0x141 [] sys_read+0x3c/0x63 [] syscall_call+0x7/0xb ======================= Code: 08 8b 82 f8 00 00 00 84 c0 0f 88 65 03 00 00 8b 44 24 04 e8 87 62 c1 c7 85 c0 89 44 24 10 0f 84 50 03 00 00 66 83 78 54 1f 76 08 <0f> 0b 2e 0b 20 93 8c f8 8b 44 24 08 ba 01 00 00 00 e8 ff d3 ff EIP: [] do_cciss_request+0x46/0x3a3 [cciss]
Environment
- Red Hat Enterprise Linux 5.3 (or earlier)
- kernel before 2.6.18-162
- Storage configuration
- LVM --> md raid
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
