21.17. Stratis 파일 시스템 생성
기존 Stratis 풀에서 Stratis 파일 시스템을 생성합니다.
사전 요구 사항
-
Stratis가 설치되고
stratisd
서비스가 실행 중입니다. 자세한 내용은 Stratis 설치를 참조하십시오. - Stratis 풀이 생성됩니다. 자세한 내용은 암호화되지 않은 Stratis 풀 생성 또는 커널 인증 키의 키 사용을 참조하십시오.
프로세스
풀에 Stratis 파일 시스템을 생성합니다.
stratis filesystem create --size number-and-unit my-pool my-fs
# stratis filesystem create --size number-and-unit my-pool my-fs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow number-and-unit
- 파일 시스템의 크기를 지정합니다. 사양 형식은 입력에 대한 표준 크기 사양 형식(B, KiB, MiB, GiB, TiB 또는 PiB)을 따라야 합니다.
my-pool
- Stratis 풀의 이름을 지정합니다.
my-fs
파일 시스템의 임의의 이름을 지정합니다.
예를 들면 다음과 같습니다.
예 21.1. Stratis 파일 시스템 생성
stratis filesystem create --size 10GiB pool1 filesystem1
# stratis filesystem create --size 10GiB pool1 filesystem1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
파일 시스템의 크기 제한을 설정합니다.
stratis filesystem create --size number-and-unit --size-limit number-and-unit my-pool my-fs
# stratis filesystem create --size number-and-unit --size-limit number-and-unit my-pool my-fs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 참고이 옵션은 Stratis 3.6.0부터 사용할 수 있습니다.
필요한 경우 나중에 크기 제한을 제거할 수도 있습니다.
stratis filesystem unset-size-limit my-pool my-fs
# stratis filesystem unset-size-limit my-pool my-fs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
검증
풀 내에 파일 시스템을 나열하여 Stratis 파일 시스템이 생성되었는지 확인합니다.
stratis fs list my-pool
# stratis fs list my-pool
Copy to Clipboard Copied! Toggle word wrap Toggle overflow