{"action":"closed","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3092","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3092/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3092/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3092/events","html_url":"https://github.com/zfsonlinux/zfs/issues/3092","id":57211566,"number":3092,"title":"no blkid output for cache device","user":{"login":"dsockwell","id":498315,"avatar_url":"https://avatars.githubusercontent.com/u/498315?v=3","gravatar_id":"","url":"https://api.github.com/users/dsockwell","html_url":"https://github.com/dsockwell","followers_url":"https://api.github.com/users/dsockwell/followers","following_url":"https://api.github.com/users/dsockwell/following{/other_user}","gists_url":"https://api.github.com/users/dsockwell/gists{/gist_id}","starred_url":"https://api.github.com/users/dsockwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsockwell/subscriptions","organizations_url":"https://api.github.com/users/dsockwell/orgs","repos_url":"https://api.github.com/users/dsockwell/repos","events_url":"https://api.github.com/users/dsockwell/events{/privacy}","received_events_url":"https://api.github.com/users/dsockwell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Difficulty%20-%20Medium","name":"Difficulty - Medium","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2015-02-10T18:01:54Z","updated_at":"2016-10-04T05:38:27Z","closed_at":"2016-10-04T05:38:27Z","body":"This issue is a follow-up to a question I asked on IRC. I have a cache device that isn't recognized by 'blkid' for some reason, and it's causing me some grief wrt encryption. I can imagine there are other consequences also. Should blkid be recognizing cache devices as zfs_member ? Can I fake it without modifying blkid or libblkid?\r\n\r\n10:35:18    dsockwell | i have a root pool on top of LUKS with cache and slog devices. Debian's cryptroot\r\n                      | uses 'blkid' to verify a good decryption, and my cache devices always fail to\r\n                      | decrypt on startup. I tried getting some blkid output on a decrypted cache device\r\n                      | and nothing came back. Is this a bug? Can I fake the blkid output for cryptroot?\r\n                      | http://pastebin.com/0LNBLDKz\r\n\r\n```\r\nroot@elrucio:/etc/zfs# zpool status -v\r\n  pool: rpool\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 4h13m with 0 errors on Fri Jan 23 15:57:30 2015\r\nconfig:\r\n\r\n        NAME                                                                STATE     READ WRITE CKSUM\r\n        rpool                                                               ONLINE       0     0     0\r\n          mirror-0                                                          ONLINE       0     0     0\r\n            dm-name-ata-HGST_HDN724030ALE640_PK2234P8JYTYNY_crypt           ONLINE       0     0     0\r\n            dm-name-ata-ST3000DM001-1CH166_W1F3SNCL_crypt                   ONLINE       0     0     0\r\n          mirror-1                                                          ONLINE       0     0     0\r\n            dm-name-ata-HGST_HDN724030ALE640_PK2234P8JVBZMY_crypt           ONLINE       0     0     0\r\n            dm-name-ata-ST3000DM001-1CH166_W1F3V9H7_crypt                   ONLINE       0     0     0\r\n        logs\r\n          mirror-2                                                          ONLINE       0     0     0\r\n            dm-name-ata-INTEL_SSDSC2BW120A4_CVDA343401FZ1207GN-part2_crypt  ONLINE       0     0     0\r\n            dm-name-ata-INTEL_SSDSC2BW120A4_CVDA343002UH1207GN-part2_crypt  ONLINE       0     0     0\r\n        cache\r\n          dm-name-ata-INTEL_SSDSC2BW120A4_CVDA343401FZ1207GN-part3_crypt    ONLINE       0     0     0\r\n          dm-name-ata-INTEL_SSDSC2BW120A4_CVDA343002UH1207GN-part3_crypt    ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n\r\nroot@elrucio:/etc/zfs# /sbin/blkid -s TYPE -o value /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-3303da4e0dd74d8696efe53bc7612136-ata-ST3000DM001-1CH166_W1F3SNCL_crypt\r\nzfs_member\r\n\r\nroot@elrucio:/etc/zfs# /sbin/blkid /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-3303da4e0dd74d8696efe53bc7612136-ata-ST3000DM001-1CH166_W1F3SNCL_crypt\r\n/dev/disk/by-id/dm-uuid-CRYPT-LUKS1-3303da4e0dd74d8696efe53bc7612136-ata-ST3000DM001-1CH166_W1F3SNCL_crypt: LABEL=\"rpool\" UUID=\"9651825162987964560\" UUID_SUB=\"17754604583346869478\" TYPE=\"zfs_member\"\r\n\r\nroot@elrucio:/etc/zfs# /sbin/blkid /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-e07706434dab43c3b224a7de5f2e0bdf-ata-INTEL_SSDSC2BW120A4_CVDA343002UH1207GN-part3_crypt\r\n\r\n# No output; device is a cache device though.\r\n\r\nroot@elrucio:/etc/zfs#\r\n```"}}
{"actor":{"display_login":"behlendorf"}}