Ceph Object Gateway 설치 cloud 인프라 구축


#ceph-deploy rgw create node1
명령어를 입력하면 node1에 gateway 가 설치되고 아래처럼 로그가 나옵니다.
[ceph_deploy.rgw][INFO  ] The Ceph Object Gateway (RGW) is now running on host node1 and default port 7480
모두 잘 설치 된거 같지만 위에 주소로 접속이 안되는 에러가 있습니다.
해결방법은 모든pool의 min_size를 1로 변경하면 됩니다.

우선 node1에 ssh 접속후 아래 명령어를 입력합니다.
#ceph osd lspools
그러면 pool 목록이 나타납니다.
 .rgw.root 로 나오면
#ceph osd pool get .rgw.root min_size
명령어로 현재의 min_size 를 확인할 수 있습니다. 기본값으로 2가 설정되어 있습니다.

#ceph osd pool set .rgw.root min_size 1
명령어로 min_size 를 1로 설정해줍니다.
그러면 default.rgw.control 란 이름이 pool 나타나고 마찬가지로 1로 설정하는 명령어를 입력합니다.

#ceph osd pool set default.rgw.control min_size 1
이어서 2개의 pool이 새로 생겨나고 아래의 명령어를 입력해주시면 됩니다.

#ceph osd pool set default.rgw.meta min_size 1
#ceph osd pool set default.rgw.log min_size 1


이후 curl 203.250.123.456:7480  또는 크롬에서 203.250.123.456:7480  으로 접속하시면
아래와 같은 내용이 출력됩니다.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
/www.w3.org/2000/svg'" fill="'%23909090'" width="'10'" height="'10'">"); width: 10px; height: 10px; margin-left: -10px; vertical-align: bottom; display: inline-block; cursor: pointer; user-select: none;"><ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
/www.w3.org/2000/svg'" fill="'%23909090'" width="'10'" height="'10'">"); width: 10px; height: 10px; margin-left: -10px; vertical-align: bottom; display: inline-block; cursor: pointer; user-select: none;"><Owner>
<ID>anonymous</ID>
<DisplayName/>
</Owner>
<Buckets/>
</ListAllMyBucketsResult>

덧글

댓글 입력 영역


구글애드

메모장

null