21.7. Creating an encrypted Stratis pool using Clevis


Starting with Stratis 2.4.0, you can create an encrypted pool using the Clevis mechanism by specifying Clevis options at the command line.

Prerequisites

Procedure

  1. Erase any file system, partition table, or RAID signatures that exist on each block device that you want to use in the Stratis pool:

    # wipefs --all block-device

    The block-device value is the path to the block device; for example, /dev/sdb.

  2. Create the encrypted Stratis pool and specify the Clevis mechanism to use for the encryption:

    # stratis pool create --clevis tpm2 my-pool block-device
    tpm2
    Specifies the Clevis mechanism to use.
    my-pool
    Specifies the name of the new Stratis pool.
    block-device

    Specifies the path to an empty or wiped block device.

    Alternatively, use the Clevis tang server mechanism by using the following command:

    # stratis pool create --clevis tang --tang-url my-url --thumbprint thumbprint my-pool block-device
    tang
    Specifies the Clevis mechanism to use.
    my-url
    Specifies the URL of the tang server.
    thumbprint

    References the thumbprint of the tang server.

    You can also specify multiple block devices on a single line by using the following command:

    # stratis pool create --clevis tpm2 my-pool block-device-1 block-device-2

Verification

  • Verify that the new Stratis pool was created:

    # stratis pool list
    注意

    You can also create an encrypted pool using both Clevis and keyring mechanisms by specifying both Clevis and keyring options at the same time during pool creation.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部