{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5028","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5028/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5028/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5028/events","html_url":"https://github.com/zfsonlinux/zfs/issues/5028","id":173396090,"number":5028,"title":"Pool import problem after unexpected reboot/powerloss","user":{"login":"arachnist","id":117764,"avatar_url":"https://avatars.githubusercontent.com/u/117764?v=3","gravatar_id":"","url":"https://api.github.com/users/arachnist","html_url":"https://github.com/arachnist","followers_url":"https://api.github.com/users/arachnist/followers","following_url":"https://api.github.com/users/arachnist/following{/other_user}","gists_url":"https://api.github.com/users/arachnist/gists{/gist_id}","starred_url":"https://api.github.com/users/arachnist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arachnist/subscriptions","organizations_url":"https://api.github.com/users/arachnist/orgs","repos_url":"https://api.github.com/users/arachnist/repos","events_url":"https://api.github.com/users/arachnist/events{/privacy}","received_events_url":"https://api.github.com/users/arachnist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-26T08:17:31Z","updated_at":"2016-10-22T21:10:31Z","closed_at":null,"body":"After an unexpected reboot/powerloss i get the following when trying to import the pool:\r\n```\r\n[   55.643119] VERIFY3(range_tree_space(rt) == space) failed (4110098 == 16834961408)\r\n[   55.643161] PANIC at space_map.c:127:space_map_load()\r\n[   55.643186] Showing stack for process 2640\r\n[   55.643189] CPU: 1 PID: 2640 Comm: zpool Tainted: P           OE   4.6.0-0.bpo.1-amd64 #1 Debian 4.6.3-1~bpo8+1\r\n[   55.643191] Hardware name:                  /DQ77KB, BIOS KBQ7710H.86A.0038.2012.0425.1537 04/25/2012\r\n[   55.643193]  0000000000000286 000000007079219c ffffffff81312465 ffffffffc0aa5f13\r\n[   55.643196]  ffff880407427bd8 ffffffffc067287f 0000000002404200 ffff880400000030\r\n[   55.643199]  ffff880407427be8 ffff880407427b88 2833594649524556 72745f65676e6172\r\n[   55.643201] Call Trace:\r\n[   55.643209]  [<ffffffff81312465>] ? dump_stack+0x5c/0x77\r\n[   55.643219]  [<ffffffffc067287f>] ? spl_panic+0xbf/0xf0 [spl]\r\n[   55.643224]  [<ffffffff815c664e>] ? mutex_lock+0xe/0x30\r\n[   55.643260]  [<ffffffffc09dbd53>] ? dmu_buf_hold_array_by_dnode+0x2d3/0x4c0 [zfs]\r\n[   55.643296]  [<ffffffffc0a11925>] ? range_tree_remove+0x2b5/0x2e0 [zfs]\r\n[   55.643324]  [<ffffffffc09dc621>] ? dmu_read+0x141/0x1a0 [zfs]\r\n[   55.643363]  [<ffffffffc0a2a799>] ? space_map_load+0x429/0x580 [zfs]\r\n[   55.643403]  [<ffffffffc0a2f786>] ? vdev_dtl_load+0xe6/0x120 [zfs]\r\n[   55.643443]  [<ffffffffc0a32096>] ? vdev_load+0x56/0xb0 [zfs]\r\n[   55.643482]  [<ffffffffc0a3206b>] ? vdev_load+0x2b/0xb0 [zfs]\r\n[   55.643520]  [<ffffffffc0a3206b>] ? vdev_load+0x2b/0xb0 [zfs]\r\n[   55.643557]  [<ffffffffc0a1da8c>] ? spa_load+0xf2c/0x1b70 [zfs]\r\n[   55.643595]  [<ffffffffc0a2772e>] ? spa_add+0x60e/0x650 [zfs]\r\n[   55.643631]  [<ffffffffc0a1f3b8>] ? spa_tryimport+0xa8/0x460 [zfs]\r\n[   55.643673]  [<ffffffffc0a5030e>] ? zfs_ioc_pool_tryimport+0x5e/0xa0 [zfs]\r\n[   55.643714]  [<ffffffffc0a52aca>] ? zfsdev_ioctl+0x48a/0x530 [zfs]\r\n[   55.643718]  [<ffffffff812053a9>] ? do_vfs_ioctl+0x99/0x5d0\r\n[   55.643722]  [<ffffffff810985f3>] ? task_work_run+0x83/0xa0\r\n[   55.643724]  [<ffffffff81205956>] ? SyS_ioctl+0x76/0x90\r\n[   55.643727]  [<ffffffff81003bbf>] ? syscall_return_slowpath+0x8f/0x110\r\n[   55.643731]  [<ffffffff815c8476>] ? system_call_fast_compare_end+0xc/0x96\r\n```\r\n\r\nTried both ```zpool import``` and ```zpool import -F```, tried nuking ```/etc/zfs/zpool.cache``` and the pool is configured as a stripe of two mirrors (4×3T drives). Additionally, zpool and all other zfs-related commands hang.\r\nKernel version: ```4.6.3-1~bpo8+1``` (also tried downgrading to ```4.5.4-1~bpo8+1```)\r\nZFS: ```[    3.835098] ZFS: Loaded module v0.6.5.7-8-jessie, ZFS pool version 5000, ZFS filesystem version 5```\r\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/255554266","html_url":"https://github.com/zfsonlinux/zfs/issues/5028#issuecomment-255554266","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5028","id":255554266,"user":{"login":"terxw","id":461094,"avatar_url":"https://avatars.githubusercontent.com/u/461094?v=3","gravatar_id":"","url":"https://api.github.com/users/terxw","html_url":"https://github.com/terxw","followers_url":"https://api.github.com/users/terxw/followers","following_url":"https://api.github.com/users/terxw/following{/other_user}","gists_url":"https://api.github.com/users/terxw/gists{/gist_id}","starred_url":"https://api.github.com/users/terxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terxw/subscriptions","organizations_url":"https://api.github.com/users/terxw/orgs","repos_url":"https://api.github.com/users/terxw/repos","events_url":"https://api.github.com/users/terxw/events{/privacy}","received_events_url":"https://api.github.com/users/terxw/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T21:10:31Z","updated_at":"2016-10-22T21:10:31Z","body":"@kpande\r\nIt looks to me that I am suffering from the same bug/error as @arachnist, that is reason why i wrote here\r\n\r\n@loli10K thank you for suggestion, that is something i would like to avoid. but it seems only way :)\r\nNo i do not use ECC on my laptop.\r\n\r\ni tried newest version of zfs, still same error\r\n\r\n```\r\n[So okt 22 22:50:34 2016] zavl: module license 'CDDL' taints kernel.\r\n[So okt 22 22:50:34 2016] Disabling lock debugging due to kernel taint\r\n[So okt 22 22:50:34 2016] zavl: module verification failed: signature and/or  required key missing - tainting kernel\r\n[So okt 22 22:50:34 2016] SPL: Loaded module v0.7.0-rc1-2~trusty~gbp5ac765\r\n[So okt 22 22:50:36 2016] ZFS: Loaded module v0.7.0-rc1-3~trusty~gbp7bd9cb, ZFS pool version 5000, ZFS filesystem version 5\r\n\r\n```\r\n\r\n```\r\n[So okt 22 22:59:51 2016] VERIFY3(range_tree_space(rt) == space) failed (4276969472 == 4277100544)\r\n[So okt 22 22:59:51 2016] PANIC at space_map.c:127:space_map_load()\r\n[So okt 22 22:59:51 2016] Showing stack for process 4602\r\n[So okt 22 22:59:51 2016] CPU: 0 PID: 4602 Comm: z_wr_iss Tainted: P           OE  3.19.0-32-generic #37~14.04.1-Ubuntu\r\n[So okt 22 22:59:51 2016] Hardware name: Acer            Aspire 3820T                   /Aspire 3820T                   , BIOS V1.05           03/02/2010\r\n[So okt 22 22:59:51 2016]  000000000000007f ffff8801eec3f948 ffffffff817af41b 0000000000000000\r\n[So okt 22 22:59:51 2016]  ffffffffc0679729 ffff8801eec3f958 ffffffffc04a5674 ffff8801eec3fae8\r\n[So okt 22 22:59:51 2016]  ffffffffc04a573b 0000000000000859 ffff8801ef7da3c0 ffff880100000030\r\n[So okt 22 22:59:51 2016] Call Trace:\r\n[So okt 22 22:59:51 2016]  [<ffffffff817af41b>] dump_stack+0x45/0x57\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a5674>] spl_dumpstack+0x44/0x50 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a573b>] spl_panic+0xbb/0x100 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc027475b>] ? avl_add+0x3b/0x60 [zavl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc059c49b>] ? metaslab_rt_add+0x2b/0x60 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc05a0efd>] ? range_tree_add+0x12d/0x2d0 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc05b9f20>] space_map_load+0x3e0/0x590 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc05a11b3>] ? range_tree_remove+0x113/0x300 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc059d813>] metaslab_load+0x33/0xe0 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc059da30>] metaslab_activate+0x90/0xb0 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc059f1fd>] metaslab_alloc+0x5bd/0xa70 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a1372>] ? spl_kmem_cache_alloc+0xa2/0x780 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc060dd1b>] zio_dva_allocate+0x8b/0x440 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a84d7>] ? tsd_hash_search.isra.1+0x77/0xa0 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a858e>] ? tsd_get_by_thread+0x2e/0x50 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a286c>] ? taskq_member+0x1c/0x30 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc060a5c4>] zio_execute+0x94/0xf0 [zfs]\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a3703>] taskq_thread+0x243/0x480 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffff810a0a90>] ? wake_up_state+0x20/0x20\r\n[So okt 22 22:59:51 2016]  [<ffffffffc04a34c0>] ? taskq_cancel_id+0x120/0x120 [spl]\r\n[So okt 22 22:59:51 2016]  [<ffffffff81093822>] kthread+0xd2/0xf0\r\n[So okt 22 22:59:51 2016]  [<ffffffff81093750>] ? kthread_create_on_node+0x1c0/0x1c0\r\n[So okt 22 22:59:51 2016]  [<ffffffff817b6d18>] ret_from_fork+0x58/0x90\r\n[So okt 22 22:59:51 2016]  [<ffffffff81093750>] ? kthread_create_on_node+0x1c0/0x1c0\r\n\r\n```"}}
{"actor":{"display_login":"terxw"}}