Create a Stratis file system

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

Before you begin

Procedure

  1. Create a Stratis file system on a pool:
    # stratis filesystem create --size number-and-unitmy-poolmy-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-unitmy-poolmy-fs
    Note

    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-poolmy-fs

Results

  • List file systems within the pool to check if the Stratis file system is created:
    # stratis fs list my-pool