第 23 章 Monitoring Stratis file systems


As a Stratis user, you can view information about Stratis file systems on your system to monitor their state and free space.

23.1. Displaying information about Stratis file systems

You can list statistics about your Stratis file systems, such as the total, used, and free size or file systems and block devices belonging to a pool, by using the stratis utility.

The size of an XFS file system is the total amount of user data that it can manage. On a thinly provisioned Stratis pool, a Stratis file system can appear to have a size that is larger than the space allocated to it. The XFS file system is sized to match this apparent size, which means it is usually larger than the allocated space. Standard Linux utilities, such as df, report the size of the XFS file system. This value generally overestimates the space required by the XFS file system and hence the space allocated for it by Stratis.

重要

Regularly monitor the usage of your overprovisioned Stratis pools. If a file system usage approaches the allocated space, Stratis automatically increases the allocation using available space in the pool. However, if all the available space is already allocated and the pool is full, no additional space can be assigned causing the file system to run out of space. This may lead to the risk of data loss in the application using the Stratis file system.

Prerequisites

  • Stratis is installed and the stratisd service is running. For more information, See Installing Stratis.

Procedure

  • To display information about all block devices used for Stratis on your system:

    # stratis blockdev
    Pool Name   Device Node  Physical Size  Tier	UUID
    my-pool     /dev/sdb     9.10 TiB       Data    ec9fb718-f83c-11ef-861e-7446a09dccfb
  • To display information about all Stratis pools on your system:

    # stratis pool
    
    Name     Total/Used/Free		            Properties  UUID	                              Alerts
    my-pool  8.00 GiB / 800.99 MiB / 7.22 GiB  -Ca,-Cr,Op   e22772c2-afe9-446c-9be5-2f78f682284e  WS001
  • To display information about all Stratis file systems on your system:

    # stratis filesystem
    
    Pool	Filesystem  Total/Used/Free/Limit		          Device		             UUID
    Spool1  sfs1		1 TiB / 546 MiB / 1023.47 GiB / None  /dev/stratis/spool1/sfs1   223265f5-8f17-4cc2-bf12-c3e9e71ff7bf

    You can also display detailed information about a Stratis file system on your system by specifying the file system name or UUID:

    # stratis filesystem list my-pool --name my-fs
    
    UUID: 47255008-9bc7-4bd2-8294-e9d25cd9e7ba
    Name: my-fs
    Pool: my-pool
    Device: /dev/stratis/my-pool/my-fs
    Created: Nov 08 2018 08:03
    Snapshot origin: None
    Sizes:
    	Logical size of thin device: 1 TiB
    	Total used (including XFS metadata): 546 MiB
    	Free: 1023.47 GiB
     Size Limit: None
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部