Skip to content

HA for Encrypted ZFS? #13

@schmitmd

Description

@schmitmd

Hello @ewwhite,

Do you know (or should I start poking around and report what I see?) what the ramifications of native ZFS encryption would be on this kind of system?

Obviously, encryption-at-rest is an awesome thing to have in general (and it's finally here on ZoL).

Reading through the zfs and zpool manpages, having keylocation=prompt wouldn't work, but setting it to file://FILE.(hex|raw|passphrase) and doing zpool import -l seems realistic (so long as the keylocation isn't inside the pool, obviously).

We'd probably want to zfs unload-key asap inside the pool that died too, but encrypted mounts can't happen if zfs "keystatus" property is "unavailable".

Maybe there should be some logic around the "encryptionroot" property; something like: "import the pool so long as at least one filesystem in the pool doesn't have this property set," for instance. Then it would at least mount something regardless of keystatus, and encrypted datasets could be manually mounted later?

What are your thoughts? I feel like this will be quite the undertaking..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions