24.13. 使用内核密钥环解加密的 Stratis 池
系统重启后,您的加密 Stratis 池或组成它的块设备可能不可见。您可以使用用来加密池的内核密钥环来解锁池。
先决条件
- Stratis v2.1.0 已安装。如需更多信息,请参阅 安装 Stratis。
- 
						stratisd服务在运行。
- 您已创建了一个加密的 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