4.11. 애플리케이션 활성화
Red Hat Ceph Storage는 인증되지 않은 유형의 클라이언트가 풀에 데이터를 작성하지 못하도록 풀에 대한 추가 보호 기능을 제공합니다. 즉, 시스템 관리자는 Ceph Block Device, Ceph Object Gateway, Ceph Filesystem 또는 사용자 지정 애플리케이션에서 I/O 작업을 수신하도록 풀을 명시적으로 활성화해야 합니다.
클라이언트 애플리케이션이 풀에서 I/O 작업을 수행할 수 있도록 하려면 다음을 실행합니다.
구문
ceph osd pool application enable POOL_NAME APPLICATION {--yes-i-really-mean-it}
APPLICATION 은 다음과 같습니다.
-
Ceph Filesystem의 경우 CephFS입니다. -
Ceph 블록 장치용 RBD.
-
Ceph Object Gateway의 RGW입니다.
사용자 지정 애플리케이션에 대해 다른 APPLICATION 값을 지정합니다.
활성화되지 않은 풀은 HEALTH_WARN 상태를 생성합니다. 이 시나리오에서는 ceph 상태 세부 -f json-pretty 의 출력은 다음을 출력합니다.
{
"checks": {
"POOL_APP_NOT_ENABLED": {
"severity": "HEALTH_WARN",
"summary": {
"message": "application not enabled on 1 pool(s)"
},
"detail": [
{
"message": "application not enabled on pool '<pool-name>'"
},
{
"message": "use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications."
}
]
}
},
"status": "HEALTH_WARN",
"overall_status": "HEALTH_WARN",
"detail": [
"'ceph health' JSON format has changed in luminous. If you see this your monitoring system is scraping the wrong fields. Disable this with 'mon health preluminous compat warning = false'"
]
}
rbd 풀 init POOL_NAME을 사용하여 Ceph 블록 장치에 대한 풀 을 초기화합니다.