[dm-devel] Kernel panic issue of kernel 2.6.16-rc1 + latest device mapper patches

Juer(ZH-CN) jlee at plasmon.cn
Fri Feb 17 01:26:43 UTC 2006


Hi, 

 

Thanks for the team working on the device mapper driver.

I have installed Fedora Core 4 and downloaded latest device mapper patches
from the website
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/ and
applied them to the kernel 2.6.16-rc1, but I still experience problems when
removing snapshots if there are large I/Os and tens of snapshots have been
created. Before applying those patches to the kernel, kernel panic even when
removing the only one snapshot created for a LV if there are large I/Os on
the LV.

 

The steps to produce the issue:

 

1.       Create PV on the disk partition directly 

2.       Create VG on the PV just created

3.       Create a 20G LV on the VG

4.       Create XFS file system on the LV

5.       Mount the LV

6.       Run a script to generate large I/Os on the LV. The job will keep
running till interrupted by me.

7.       2 snapshots have been created for the LV successfully

8.       All snapshots have been removed one by one successfully

9.       21 snapshots have been created for the LV successfully

10.   Try to remove all snapshots by ("lvremove -f /dev/vg/snap*").

I have seen following messages in the system log before kernel panic
information were logged.

Feb 15 15:39:43 sit-fc4 kernel: attempt to access beyond end of device

Feb 15 15:39:43 sit-fc4 kernel: dm-14: rw=17, want=4194320, limit=4194304

 

       Kernel panic

Kernel panic information:

 

Feb 15 15:40:22 sit-fc4 kernel: Unable to handle kernel paging request at
virtual address 8b8a8988

Feb 15 15:40:22 sit-fc4 kernel:  printing eip:

Feb 15 15:40:22 sit-fc4 kernel: f8abe0ab

Feb 15 15:40:22 sit-fc4 kernel: *pde = 9b9a9998

Feb 15 15:40:22 sit-fc4 kernel: Oops: 0000 [#1]

Feb 15 15:40:22 sit-fc4 kernel: SMP

Feb 15 15:40:22 sit-fc4 kernel: Modules linked in: smbfs xfs exportfs
dm_zero dm_snapshot dm_mod ipv6 parport_pc lp parport autofs4

rfcomm l2cap bluetooth sunrpc video button battery ac uhci_hcd i2c_i801
i2c_core shpchp e1000 ext3 jbd sata_mv libata aic79xx scsi_t

ransport_spi sd_mod scsi_mod

Feb 15 15:40:22 sit-fc4 kernel: CPU:    0

Feb 15 15:40:22 sit-fc4 kernel: EIP:    0060:[<f8abe0ab>]    Not tainted VLI

Feb 15 15:40:22 sit-fc4 kernel: EFLAGS: 00010212   (2.6.16rc2)

Feb 15 15:40:22 sit-fc4 kernel: EIP is at exit_exception_table+0x3b/0x70
[dm_snapshot]

Feb 15 15:40:22 sit-fc4 kernel: eax: 00000046   ebx: 8b8a8988   ecx:
f6fa38c0   edx: dde13988

Feb 15 15:40:22 sit-fc4 kernel: esi: f8bf6ec0   edi: f6fa38c0   ebp:
000001d8   esp: dfb28da4

Feb 15 15:40:22 sit-fc4 kernel: ds: 007b   es: 007b   ss: 0068

Feb 15 15:40:22 sit-fc4 kernel: Process lvremove (pid: 4057,
threadinfo=dfb28000 task=c85e4aa0)

Feb 15 15:40:22 sit-fc4 kernel: Stack: <0>e66b84d8 00004000 e66b8480
d8b097c0 f8ac3700 f8a3e080 f8abe619 f8a3e080

Feb 15 15:40:22 sit-fc4 kernel:        e66b8280 00000000 00000000 f8aaff16
00000004 e66b8280 f59e68e0 00000004

Feb 15 15:40:22 sit-fc4 kernel:        f8ab2a00 f8ab1f33 f8abb6ec f8ad8000
f8ab2a44 00000000 00000000 f8ad8000

Feb 15 15:40:22 sit-fc4 kernel: Call Trace:

Feb 15 15:40:22 sit-fc4 kernel:  [<f8abe619>] snapshot_dtr+0x99/0x110
[dm_snapshot]

Feb 15 15:40:22 sit-fc4 kernel:  [<f8aaff16>] dm_table_put+0x56/0xd0
[dm_mod]

Feb 15 15:40:22 sit-fc4 kernel:  [<f8ab2a00>] dev_remove+0x0/0x90 [dm_mod]

Feb 15 15:40:22 sit-fc4 kernel:  [<f8ab1f33>] __hash_remove+0x63/0x80
[dm_mod]

Feb 15 15:40:22 sit-fc4 kernel:  [<f8ab2a44>] dev_remove+0x44/0x90 [dm_mod]

Feb 15 15:40:22 sit-fc4 kernel:  [<f8ab2105>] ctl_ioctl+0x1b5/0x2c0 [dm_mod]

Feb 15 15:40:22 sit-fc4 kernel:  [<c0150607>] __alloc_pages+0x57/0x320

Feb 15 15:40:22 sit-fc4 kernel:  [<c017f6fa>] do_ioctl+0x8a/0xa0

Feb 15 15:40:22 sit-fc4 kernel:  [<c017f76c>] vfs_ioctl+0x5c/0x2f0

Feb 15 15:40:22 sit-fc4 kernel:  [<c0106b2a>] do_syscall_trace+0x21a/0x240

Feb 15 15:40:22 sit-fc4 kernel:  [<c017fa72>] sys_ioctl+0x72/0x90

Feb 15 15:40:22 sit-fc4 kernel:  [<c0104205>] syscall_call+0x7/0xb

Feb 15 15:40:22 sit-fc4 kernel: Code: d2 89 54 24 04 7e 43 8b 40 04 31 ed 8d
74 26 00 8d 34 e8 8b 16 39 d6 8b 1a 75 07 eb 1a 8d 76 0

0 89 c3 89 f8 e8 a7 ab 6a c7 39 de <8b> 03 89 da 75 ef 8b 14 24 8b 42 04 45
39 6c 24 04 75 d2 83 c4

Feb 15 15:40:22 sit-fc4 kernel:  <0>Fatal exception: panic in 5 seconds

11.   Reboot the system, then remove all snapshots

12.   Repeat step 6 - Run a script to generate large I/Os on the LV. The job
will keep running till interrupted by me.

13.   5 snapshots have been created for the LV successfully

14.   All snapshots have been removed by ("lvremove -f /dev/vg/snap*")
successfully.

15.   9 snapshots have been created for the LV successfully

16.   Try to remove all snapshots by ("lvremove -f /dev/vg/snap*").

17.   Kernel panic again

18.   5 snapshots have been created for the LV successfully

19.   All snapshots have been removed by ("lvremove -f /dev/vg/snap*")
successfully.

20.    

 

Juer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20060217/61506955/attachment.htm>


More information about the dm-devel mailing list