27.19. 부팅 시 Stratis 파일 시스템 마운트 구성
파일 시스템 풀을 올바르게 시작하는 메커니즘을 설정하여 부팅 시 마운트되도록 Stratis 파일 시스템을 구성할 수 있습니다. 이 경우 마운트 작업이 실패합니다. Stratis는 이 프로세스를 지원하기 위해 두 가지 systemd 서비스를 제공합니다.
Stratis는 현재 루트 파일 시스템 관리를 지원하지 않습니다. 이러한 지침은 루트가 아닌 파일 시스템에만 적용됩니다.
사전 요구 사항
- Stratis 파일 시스템(예: < my-fs >)은 Stratis 풀(예: < my-pool > )에 생성됩니다. 자세한 내용은 Stratis 파일 시스템 생성을 참조하십시오.
- 마운트 지점 디렉터리가 생성됩니다(예: < mount-point> ).
- 파일 시스템 풀의 UUID가 결정됩니다(예: < pool-uuid> ).
프로세스
root 로서
/etc/fstab
파일을 편집합니다.파일 시스템의
/etc/
를 추가합니다.fstab
항목의 마운트 옵션에 x-systemd.requires=stratis-fstab-setup@ <pool-uuid > .service/dev/stratis/<my-pool>/<my-fs> <mount-point> xfs defaults,x-systemd.requires=stratis-fstab-setup@<pool-uuid>.service
/dev/stratis/<my-pool>/<my-fs> <mount-point> xfs defaults,x-systemd.requires=stratis-fstab-setup@<pool-uuid>.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Clevis를 통해 NBDE(Network Bound Disk Encryption)를 사용하여 풀을 암호화한 경우
x-systemd.requires=stratis-fstab-setup-with-network@ <pool-uuid > .service
및_netdev
를 추가합니다./dev/stratis/<my-pool>/<my-fs> <mount-point> xfs defaults,x-systemd.requires=stratis-fstab-setup-with-network@<pool-uuid>.service,_netdev
/dev/stratis/<my-pool>/<my-fs> <mount-point> xfs defaults,x-systemd.requires=stratis-fstab-setup-with-network@<pool-uuid>.service,_netdev
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 교체:
- 파일 시스템이 포함된 Stratis 풀의 이름이 <my-pool >입니다.
- 풀 내에서 생성된 Stratis 파일 시스템의 이름이 < my-fs >입니다.
- 파일 시스템을 마운트하려는 디렉터리의 이름이 <Mount-point >입니다.
- 파일 시스템 풀의 UUID를 사용한 <pool-uuid >.
부팅 시 암호화된 Stratis 풀에서 Stratis 파일 시스템을 마운트하면 암호가 제공될 때까지 부팅 프로세스가 중지될 수 있습니다. 자동 메커니즘을 사용하여 풀을 암호화하는 경우(예: NBDE 또는 TPM2) Stratis 풀은 자동으로 잠금 해제됩니다. 그렇지 않은 경우 사용자가 파일 시스템의 풀 잠금을 해제하려면 콘솔에 암호를 입력해야 할 수 있습니다.