{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3094","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3094/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3094/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3094/events","html_url":"https://github.com/zfsonlinux/zfs/issues/3094","id":57347226,"number":3094,"title":"Spacemap Problem with Data Error","user":{"login":"sempervictus","id":1331084,"avatar_url":"https://avatars.githubusercontent.com/u/1331084?v=3","gravatar_id":"","url":"https://api.github.com/users/sempervictus","html_url":"https://github.com/sempervictus","followers_url":"https://api.github.com/users/sempervictus/followers","following_url":"https://api.github.com/users/sempervictus/following{/other_user}","gists_url":"https://api.github.com/users/sempervictus/gists{/gist_id}","starred_url":"https://api.github.com/users/sempervictus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempervictus/subscriptions","organizations_url":"https://api.github.com/users/sempervictus/orgs","repos_url":"https://api.github.com/users/sempervictus/repos","events_url":"https://api.github.com/users/sempervictus/events{/privacy}","received_events_url":"https://api.github.com/users/sempervictus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Bug%20-%20Major","name":"Bug - Major","color":"e11d21"},{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Difficulty%20-%20Medium","name":"Difficulty - Medium","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-02-11T17:20:28Z","updated_at":"2015-02-17T08:08:55Z","closed_at":null,"body":"Scrub seems to have found an error in last night's snapshot:\r\n\r\n```\r\nzpool status -v rpool\r\n  pool: rpool\r\n state: ONLINE\r\nstatus: One or more devices has experienced an error resulting in data\r\n\tcorruption.  Applications may be affected.\r\naction: Restore the file in question if possible.  Otherwise restore the\r\n\tentire pool from backup.\r\n   see: http://zfsonlinux.org/msg/ZFS-8000-8A\r\n  scan: scrub repaired 0 in 1h18m with 1 errors on Wed Feb 11 11:18:42 2015\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\trpool         ONLINE       0     0     0\r\n\t  root_crypt  ONLINE       0     0     0\r\n\r\nerrors: Permanent errors have been detected in the following files:\r\n\r\n        rpool/steam@20150210-1528:<0x0>\r\n```\r\n\r\nZDB also says:\r\n\r\n```\r\nMOS Configuration:\r\n        version: 5000\r\n        name: 'rpool'\r\n        state: 0\r\n        txg: 17002896\r\n        pool_guid: 8092466394753084738\r\n        errata: 0\r\n        hostid: 1714892848\r\n        hostname: 'unknown'\r\n        vdev_children: 1\r\n        vdev_tree:\r\n            type: 'root'\r\n            id: 0\r\n            guid: 8092466394753084738\r\n            children[0]:\r\n                type: 'disk'\r\n                id: 0\r\n                guid: 15923963185428311133\r\n                path: '/dev/mapper/root_crypt'\r\n                whole_disk: 0\r\n                metaslab_array: 34\r\n                metaslab_shift: 33\r\n                ashift: 12\r\n                asize: 999403552768\r\n                is_log: 0\r\n                create_txg: 4\r\n        features_for_read:\r\n            com.delphix:hole_birth\r\n            com.delphix:embedded_data\r\nspace map refcount mismatch: expected 125 != actual 0\r\n```\r\n... that last \"space map refcount mismatch\" piece is a bit concerning. Does this have anything to do with recent patches to spacemap accounting, and would those changes be the problem, or are they detecting an existing issue from bad prior logic?"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/74630887","html_url":"https://github.com/zfsonlinux/zfs/issues/3094#issuecomment-74630887","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3094","id":74630887,"user":{"login":"edillmann","id":2512794,"avatar_url":"https://avatars.githubusercontent.com/u/2512794?v=3","gravatar_id":"","url":"https://api.github.com/users/edillmann","html_url":"https://github.com/edillmann","followers_url":"https://api.github.com/users/edillmann/followers","following_url":"https://api.github.com/users/edillmann/following{/other_user}","gists_url":"https://api.github.com/users/edillmann/gists{/gist_id}","starred_url":"https://api.github.com/users/edillmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edillmann/subscriptions","organizations_url":"https://api.github.com/users/edillmann/orgs","repos_url":"https://api.github.com/users/edillmann/repos","events_url":"https://api.github.com/users/edillmann/events{/privacy}","received_events_url":"https://api.github.com/users/edillmann/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T08:08:55Z","updated_at":"2015-02-17T08:08:55Z","body":"@kernelOfTruth I confirm to have the same behaviour with master, I also run zdb -e mc on an fresh created and exported pool with the same results :\r\n\r\n        leaked space: vdev 0, offset 0xb000, size 4096\r\n        leaked space: vdev 0, offset 0x15000, size 16384\r\n        leaked space: vdev 0, offset 0x1b000, size 8192\r\n        leaked space: vdev 0, offset 0x12000, size 8192\r\n        leaked space: vdev 0, offset 0x2e000, size 8589746176\r\n        leaked space: vdev 0, offset 0x25000, size 4096\r\n        leaked space: vdev 0, offset 0x1e000, size 4096\r\n        leaked space: vdev 1, offset 0xb000, size 4096\r\n        leaked space: vdev 1, offset 0x15000, size 16384\r\n        leaked space: vdev 1, offset 0x1b000, size 8192\r\n        leaked space: vdev 1, offset 0x12000, size 8192\r\n        leaked space: vdev 1, offset 0x2e000, size 8589746176\r\n        leaked space: vdev 1, offset 0x25000, size 4096\r\n        leaked space: vdev 1, offset 0x1e000, size 4096\r\n        leaked space: vdev 1, offset 0x2c00005000, size 8192\r\n        leaked space: vdev 1, offset 0x2c0000e000, size 8192\r\n        leaked space: vdev 1, offset 0x2c00008000, size 16384\r\n        leaked space: vdev 1, offset 0x2c00021000, size 8589799424\r\n        leaked space: vdev 1, offset 0x2c00018000, size 4096\r\n        leaked space: vdev 1, offset 0x2c00011000, size 4096\r\n        block traversal size 380928 != alloc 0 (leaked -380928)\r\n\r\n"}}