{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/4757","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/4757/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/4757/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/4757/events","html_url":"https://github.com/zfsonlinux/zfs/issues/4757","id":160353012,"number":4757,"title":"Boot errors, how to reboot correctly?","user":{"login":"urza","id":189804,"avatar_url":"https://avatars.githubusercontent.com/u/189804?v=3","gravatar_id":"","url":"https://api.github.com/users/urza","html_url":"https://github.com/urza","followers_url":"https://api.github.com/users/urza/followers","following_url":"https://api.github.com/users/urza/following{/other_user}","gists_url":"https://api.github.com/users/urza/gists{/gist_id}","starred_url":"https://api.github.com/users/urza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urza/subscriptions","organizations_url":"https://api.github.com/users/urza/orgs","repos_url":"https://api.github.com/users/urza/repos","events_url":"https://api.github.com/users/urza/events{/privacy}","received_events_url":"https://api.github.com/users/urza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T07:10:31Z","updated_at":"2016-06-15T13:18:00Z","closed_at":null,"body":"Hi, I have debian jessie and zfs on linux (package versions bellow).\r\n\r\nI created zpool consisting of two 4TB HDDs in zfs mirror:\r\n\r\n pool1  ONLINE\r\n -- mirror-0  ONLINE\r\n -- -- bay1    ONLINE\r\n -- -- bay2    ONLINE\r\n\r\nThe disks are ecnrypted BELOW zfs with dmcrypt.\r\nSo everytime I boot, I need to dercypt disks and do:\r\ncryptsetup open /dev/sdb bay1\r\ncryptsetup open /dev/sdc bay2\r\nzpool import pool1\r\n\r\nThen I can use my pool. That is fine.\r\n\r\nProblem is that twice already, my system didn't boot correctly (one was after typing \"reboot\" command, second time was when power went out unexpectedly). Both times, it ended hanging in emergency mode after some zfs error during boot.\r\nI am attaching screenshot of the boot error and screen showing that my debian booted into emergency environment, which is problem because it is not reachable over ssh and I am not often at the physical location of my server.\r\n\r\nIs there anything I can do to prevent this? Is there some correct reboot procedure? What do I need to do? Unmount all zfs? Export my pool? Close the encrypted containers?\r\n\r\nWhat if there will be power failure again? Can I somehow tell debian to boot \"no matter what\", ignore the errors, so that I can ssh into it and try to clear it?\r\n\r\nThanks for any advises.\r\n\r\n![boot_error1](https://cloud.githubusercontent.com/assets/189804/16070876/804e1826-32d8-11e6-9944-0deef16eedce.jpg)\r\n![boot_error2](https://cloud.githubusercontent.com/assets/189804/16070877/805292fc-32d8-11e6-84cf-77f7dc426a1e.jpg)\r\n\r\nMy debian version:\r\n Debian GNU/Linux 8.5 (jessie)\r\n Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)\r\n\r\nZOL version:\r\nPackage: debian-zfs\r\nVersion: 7~jessie\r\nArchitecture: amd64\r\nMaintainer: Darik Horn <dajhorn@vanadac.com>\r\nInstalled-Size: 41\r\nDepends: spl, spl-dkms, zfs-dkms, zfsutils\r\nRecommends: build-essential, linux-headers, zfsonlinux\r\nSuggests: zfs-auto-snapshot\r\nPriority: optional\r\nSection: metapackages\r\nFilename: pool/main/d/debian-zfs/debian-zfs_7~jessie_amd64.deb\r\nSize: 6806\r\nSHA256: 163d21f0c34220463ba5b56c14f3f3ede1b9b5b0f62eee3a738abb8994f108b6\r\nSHA1: f99079b572e74c7cbf203b93292acea4c60c3b02\r\nMD5sum: 6f5846820d147b913f2d114a038d2e7e\r\nDescription: Native ZFS filesystem metapackage for Debian.\r\nDescription-md5: 4ccc328604d7c59f2850205a963c306f\r\n\r\nPackage: zfsonlinux\r\nVersion: 8\r\nArchitecture: all\r\nMaintainer: Turbo Fredriksson <turbo@bayour.com>\r\nInstalled-Size: 2054\r\nPre-Depends: lsb-release\r\nRecommends: debian-zfs\r\nHomepage: http://zfsonlinux.org/\r\nPriority: extra\r\nSection: utils\r\nFilename: pool/main/z/zfsonlinux/zfsonlinux_8_all.deb\r\nSize: 2040474\r\nSHA256: 543c1cd88a16d63cad9ce6bf76dc603adeed3cd785e46078c13b5c953f55dafb\r\nSHA1: f234a8a18919d8d4214e2982f5d538d9b14c0dca\r\nMD5sum: 4d85ab0d7e9f3e2e2bf9d200799d0f7e\r\nDescription: archive.zfsonlinux.org trust package\r\n This package installs the GPG keys and APT sources for the\r\n archive.zfsonlinux.org package repository.\r\nDescription-md5: 992d833f23f9e5879059e6edd4919d11\r\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/226183907","html_url":"https://github.com/zfsonlinux/zfs/issues/4757#issuecomment-226183907","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/4757","id":226183907,"user":{"login":"kpande","id":5016187,"avatar_url":"https://avatars.githubusercontent.com/u/5016187?v=3","gravatar_id":"","url":"https://api.github.com/users/kpande","html_url":"https://github.com/kpande","followers_url":"https://api.github.com/users/kpande/followers","following_url":"https://api.github.com/users/kpande/following{/other_user}","gists_url":"https://api.github.com/users/kpande/gists{/gist_id}","starred_url":"https://api.github.com/users/kpande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpande/subscriptions","organizations_url":"https://api.github.com/users/kpande/orgs","repos_url":"https://api.github.com/users/kpande/repos","events_url":"https://api.github.com/users/kpande/events{/privacy}","received_events_url":"https://api.github.com/users/kpande/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T13:17:59Z","updated_at":"2016-06-15T13:17:59Z","body":"these packages are made by @FransUrbo "}}
{"actor":{"display_login":"kpande"}}