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
-
Stratis is installed and the
stratisdservice is running. For more information, see Installing Stratis. - A Stratis pool is created. For more information, see Creating an unencrypted Stratis pool or using a key in the kernel keyring.
Procedure
Create a Stratis file system on a pool:
# stratis filesystem create --size number-and-unit my-pool my-fsnumber-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-fsSpecifies an arbitrary name for the file system.
For example, create a Stratis file system:
# stratis filesystem create --size 10GiB pool1 filesystem1
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