21.17. Creating a Stratis file system


Create a Stratis file system to leverage advanced storage capabilities including thin provisioning, automatic file system growth, and integrated snapshot support within a storage pool.

Prerequisites

Procedure

  1. Create a Stratis file system on a pool:

    # stratis filesystem create --size number-and-unit my-pool my-fs
    number-and-unit
    Specifies the size of a file system. The specification format must follow the standard size specification format for input, that is B, KiB, MiB, GiB, TiB or PiB.
    my-pool
    Specifies the name of the Stratis pool.
    my-fs

    Specifies an arbitrary name for the file system.

    For example, create a Stratis file system:

    # stratis filesystem create --size 10GiB pool1 filesystem1
  2. Set a size limit of a file system:

    # stratis filesystem create --size number-and-unit --size-limit number-and-unit my-pool my-fs
    注意

    This option is available starting with Stratis 3.6.0.

    You can also remove the size limit later, if needed:

    # stratis filesystem unset-size-limit my-pool my-fs

Verification

  • List file systems within the pool to check if the Stratis file system is created:

    # stratis fs list my-pool
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部