{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3923","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3923/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3923/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3923/events","html_url":"https://github.com/zfsonlinux/zfs/issues/3923","id":111425366,"number":3923,"title":"zfs used wrong device as cache / pool lost","user":{"login":"hjjg","id":1823565,"avatar_url":"https://avatars.githubusercontent.com/u/1823565?v=3","gravatar_id":"","url":"https://api.github.com/users/hjjg","html_url":"https://github.com/hjjg","followers_url":"https://api.github.com/users/hjjg/followers","following_url":"https://api.github.com/users/hjjg/following{/other_user}","gists_url":"https://api.github.com/users/hjjg/gists{/gist_id}","starred_url":"https://api.github.com/users/hjjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjjg/subscriptions","organizations_url":"https://api.github.com/users/hjjg/orgs","repos_url":"https://api.github.com/users/hjjg/repos","events_url":"https://api.github.com/users/hjjg/events{/privacy}","received_events_url":"https://api.github.com/users/hjjg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T15:38:57Z","updated_at":"2015-10-14T16:44:32Z","closed_at":null,"body":"Hi,\r\n\r\nI've added a SSD (/dev/sdd) L2ARC to my zpool (tank, /dev/sda). There was another pool (tank2, /dev/sdc) without a cache. After a reboot, tank2 cannot be found and the device names changed. \r\n\r\nThe SSD is /dev/sdb now (formally the system disk), tank is /dev/sda and tank2 is /dev/sdd. \r\n\r\nzpool status says, that it's using /dev/sdd as a cache device for /dev/sda. tank2 cannot be found.\r\n\r\nzpool import -D /dev/sdd tank2 is not working.\r\n\r\nIs the data lost?"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/148112625","html_url":"https://github.com/zfsonlinux/zfs/issues/3923#issuecomment-148112625","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3923","id":148112625,"user":{"login":"hjjg","id":1823565,"avatar_url":"https://avatars.githubusercontent.com/u/1823565?v=3","gravatar_id":"","url":"https://api.github.com/users/hjjg","html_url":"https://github.com/hjjg","followers_url":"https://api.github.com/users/hjjg/followers","following_url":"https://api.github.com/users/hjjg/following{/other_user}","gists_url":"https://api.github.com/users/hjjg/gists{/gist_id}","starred_url":"https://api.github.com/users/hjjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjjg/subscriptions","organizations_url":"https://api.github.com/users/hjjg/orgs","repos_url":"https://api.github.com/users/hjjg/repos","events_url":"https://api.github.com/users/hjjg/events{/privacy}","received_events_url":"https://api.github.com/users/hjjg/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T16:44:32Z","updated_at":"2015-10-14T16:44:32Z","body":"zpool import -c /tmp/zpool.cache -f\r\n   pool: tank2\r\n     id: 1789664647323734951\r\n  state: FAULTED\r\n status: One or more devices contains corrupted data.\r\n action: The pool cannot be imported due to damaged devices or data.\r\n\tThe pool may be active on another system, but can be imported using\r\n\tthe '-f' flag.\r\n   see: http://zfsonlinux.org/msg/ZFS-8000-5E\r\n config:\r\n\r\n\ttank2       FAULTED  corrupted data\r\n\t  sdc       FAULTED  corrupted data\r\n\r\n\r\nThe pool is lost.\r\n\r\nEven if this is not the fault of zfs-on-linux, this is a major thing. As far as I know, zfs looks for signatures all the time expept for cache-devices..."}}