24.12. 使用内核密钥环解加密的 Stratis 池
系统重启后,您的加密 Stratis 池或组成它的块设备可能不可见。您可以使用用来加密池的内核密钥环来解锁池。
先决条件
-
Stratis v2.1.0 已安装,
stratisd
服务正在运行。如需更多信息,请参阅 安装 Stratis。 - 已创建一个加密的 Stratis 池。如需更多信息,请参阅 使用内核密钥环 中的 使用密钥创建加密的 Stratis 池。
流程
使用之前使用的相同密钥描述重新创建密钥集:
stratis key set --capture-key key-description
# stratis key set --capture-key key-description
Copy to Clipboard Copied! Toggle word wrap Toggle overflow key-description
引用内核密钥环中存在的密钥,该密钥是在您创建加密的 Stratis 池时生成的。验证 Stratis 池是可见的:
stratis pool list
# stratis pool list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow