21.19. Configuring mounting a Stratis file system at boot


You can configure a Stratis filesystem to mount at boot by setting up a mechanism that starts the pool of the file system correctly. Without this, the mount operation fails. Stratis provides two systemd services to support this process.

참고

Stratis does not support managing the root filesystem currently. These instructions apply only to non-root filesystems.

Prerequisites

  • A Stratis file system, for example <my-fs> is created on a Stratis pool, for example <my-pool>. For more information, see Creating a Stratis file system.
  • A mountpoint directory is created, for example <mount-point>.
  • The UUID of the filesystem’s pool is determined, for example <pool-uuid>.

Procedure

  • As root, edit the /etc/fstab file.

    • Add x-systemd.requires=stratis-fstab-setup@<pool-uuid>.service to the mount options of the filesystem’s /etc/fstab entry:

      /dev/stratis/<my-pool>/<my-fs> <mount-point> xfs defaults,x-systemd.requires=stratis-fstab-setup@<pool-uuid>.service
    • Add x-systemd.requires=stratis-fstab-setup-with-network@<pool-uuid>.service and _netdev if the pool is encrypted using NBDE (Network Bound Disk Encryption) via Clevis:

      /dev/stratis/<my-pool>/<my-fs> <mount-point> xfs defaults,x-systemd.requires=stratis-fstab-setup-with-network@<pool-uuid>.service,_netdev

      Replace:

  • <my-pool> with the name of the Stratis pool that contains the file system.
  • <my-fs> with the name of the Stratis file system created within the pool.
  • <mount-point> with the name of the directory where you want to mount the file system.
  • <pool-uuid> with the UUID of the file system’s pool.

    중요

    Mounting a Stratis filesystem from an encrypted Stratis pool on boot can cause the boot process to stop until a password is provided. If the pool is encrypted using any unattended mechanism, for example, NBDE or TPM2, the Stratis pool will be unlocked automatically. If not, the user may need to enter a password in the console to unlock the filesystem’s pool.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동