메뉴 닫기

ceph osd full error 출력에 따른 해결 방법2(decrease rewright)

cephcluster 사용중 osd의 full 상태 에러메시지들을 아래와 같이 출력되는 경우가 있다.

2016-03-03 10:07:26.654019 osd.11 [WRN] OSD near full (91%)
2016-03-03 10:08:05.933152 osd.5 [WRN] OSD near full (95%)
2016-03-03 10:08:00.063356 osd.11 [WRN] OSD near full (91%)
2016-03-03 10:08:39.142316 osd.5 [WRN] OSD near full (95%)
2016-03-03 10:08:31.976257 osd.11 [WRN] OSD near full (91%)

말 그대로 해당 osd 저장소가 찼다는 의미.

이에 대해 이전 작성글에서는 OSD 노드 추가에 대해 언급한적이 있다.
http://idchowto.com/?p=22530

이번장에서는 해당 osd의 reweight를 통한 방안을 제시한다.

root@c-mds:~# ceph -w

health HEALTH_ERR
..
..
1 full osd(s)
1 near full osd(s)
..
..

2016-03-03 09:35:26.750123 osd.11 [WRN] OSD near full (91%)
2016-03-03 09:35:59.624468 osd.5 [WRN] OSD near full (95%)

root@c-mgmt:~/cephcluster# ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 59.56783 root default
-2 21.38966 host c-osd-A8

..
..

5 2.72710 osd.5 up 1.00000 1.00000
..
..

11 2.72710 osd.11 up 1.00000 1.00000

..
..

root@c-mgmt:~/cephcluster# ceph osd crush reweight osd.5 2.4
reweighted item id 5 name ‘osd.5’ to 2.4 in crush map

root@c-mgmt:~/cephcluster# ceph osd crush reweight osd.11 2.4
reweighted item id 11 name ‘osd.11’ to 2.4 in crush map

root@c-mgmt:~/cephcluster# ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 59.56783 root default
-2 21.38966 host c-osd-A8

..
..

5 2.4 osd.5 up 1.00000 1.00000
..
..

11 2.4 osd.11 up 1.00000 1.00000

..
..

* 해당 osd.5 & osd.11를 줄여주는 것이기에 기존값보다 낮추어 주는 것.

본 작업 후 출력되는 로그를 보면 recovering이 이루어 지면서

decrease 시켜준 osd의 용량이 줄어 드는 것을 확인할 수 있다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다