In my NAS box, I observed strange thing yesterday. I had the snapshot size (32MB) less than volume size was (10 GB) You can say I was trying to do failure analysis of my box. The LVM HOwto for snapshot says<br>"<br><br><table class="warning" border="0" width="100%"><tbody><tr><th align="left" valign="CENTER"><b></b><br></th></tr><tr><td><br></td><td align="left" valign="top"><div>           If the snapshot logical volume becomes full it will be dropped           (become unusable) so it is vitally important to allocate enough space.           The amount of space necessary is dependent on the usage of the           snapshot, so there is no set recipe to follow for this. If the           snapshot size equals the origin size, it will never overflow.         </div></td></tr></tbody></table>"<br>But my box was crashed in this scenario. <br>Was wondering why didn't it disable the snapshots.  <br>The underlying processor is MIPS and linux kernel version is 2.6.18.<br>After
 delving little bit in the sources I found that break is occurring while blowing away the snapshot facility -- so it`s not surprising that snapshots do not work anymore. Just before the error, kcopyd_client_destroy is called -- so that`s it for kcopyd jobs -- hence snapshots. The snapshot faciltiy is gone at that point, with or without the BUG_ON. The error actually occurs while freeing the exception tables in the slab cache.<br><br>Any pointers if this has been resolved?<br>I am working with lvm version 2.02.28.  and device mapper version 1.02.22<br><br>Here is the log <br><br>Ending XFS recovery on filesystem: dm-1 (logdev: internal)<br>xfs_force_shutdown(dm-1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.<br>Return address = 0x80302d7c<br>Filesystem "dm-1": I/O Error Detected.  Shutting down filesystem: dm-1<br>Please umount the filesystem, and rectify the problem(s)<br>xfs_force_shutdown(dm-1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.<br>Return
 address = 0x80302d7c<br>Buffer I/O error on device dm-1, logical block 2097024<br>Buffer I/O error on device dm-1, logical block 2097025<br>Buffer I/O error on device dm-1, logical block 2097026<br>Buffer I/O error on device dm-1, logical block 2097027<br>Buffer I/O error on device dm-1, logical block 2097028<br>Buffer I/O error on device dm-1, logical block 2097029<br>Buffer I/O error on device dm-1, logical block 2097030<br>Buffer I/O error on device dm-1, logical block 2097031<br>Buffer I/O error on device dm-1, logical block 2097024<br>Buffer I/O error on device dm-1, logical block 2097025<br>xfs_force_shutdown(dm-1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.<br>Return address = 0x80302d7c<br>xfs_force_shutdown(dm-1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.<br>Return address = 0x80302d7c<br>xfs_force_shutdown(dm-1,0x1) called from line 424 of file fs/xfs/xfs_rw.c.<br>Return address = 0x80302d7c<br>xfs_force_shutdown(dm-1,0x1) called from line 424 of
 file fs/xfs/xfs_rw.c.<br>Return address = 0x80302d7c<br>Break instruction in kernel code[#1]:<br>Cpu 0<br>$ 0   : 00000000 805d0000 00000000 812e2bc0<br>$ 4   : 816032c0 816032c0 9004e000 ffff00fe<br>$ 8   : 98c35fe0 0000e000 00000000 9f7b8000<br>$12   : 9bc2ad88 8051ba34 0000000a 00000002<br>$16   : c009d000 00000000 9715ee48 9d12a1c8<br>$20   : 00000200 816032c0 00000000 7f94cc60<br>$24   : ffffffff 00000004<br>$28   : 98c34000 98c35da0 00000000 803f4dbc<br>Hi    : 0000000d<br>Lo    : 70a3d716<br>epc   : 8016a1f0 kmem_cache_free+0x60/0xec     Not tainted<br>ra    : 803f4dbc exit_exception_table+0x58/0xa0<br>Status: 9004e003    KERNEL EXL IE<br>Cause : 00000024<br>PrId  : 000034c1<br>Modules linked in: aes bonding block2mtd<br>Process lvremove (pid: 31393, threadinfo=98c34000, task=9f5c6628)<br>Stack
 : 9d12a180 c009b020 00000001 c003b000 c009d000 00000000 00000000 803f4dbc<br>        00000000 00000000 9d12a180 c009b020 9d12a180 c009b020 00000001 c003b000<br>        100345d0 1002c7b8 803f5588 803f5570 00000000 8011df80 803edcd4 00000000<br>        c009b020 9bc33e80 803ecdb0 00000000 9bc33e80 9d12a580 00000000 c003b000<br>        9d12a580 9bc33e80 00000000 803ece6c 9ba67a00 9d12a580 9d12a580 9bc33e80<br>        ...<br>Call Trace:<br>[<8016a1f0>] kmem_cache_free+0x60/0xec<br>[<803f4dbc>] exit_exception_table+0x58/0xa0<br>[<803f5588>] snapshot_dtr+0x38/0x88<br>[<803ecdb0>] table_destroy+0x68/0xcc<br>[<803ece6c>] dm_table_put+0x38/0x44<br>[<803ec05c>] dm_put+0xac/0xc8<br>[<803f0200>] dev_remove+0xbc/0xe0<br>[<803f1460>]
 ctl_ioctl+0xf8/0x164<br>[<80183320>] do_ioctl+0x60/0x74<br>[<80183690>] vfs_ioctl+0x1e0/0x200<br>[<80183700>] sys_ioctl+0x50/0x90<br>[<8010c040>] stack_done+0x20/0x3c<br><br><br><br><br> <p>
      <hr size=1>Take the Internet to Go: Yahoo!Go puts the <a href="http://us.rd.yahoo.com/evt=48253/*http://mobile.yahoo.com/go?refer=1GNXIC">Internet in your pocket:</a> mail, news, photos & more.