일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- GPU
- CentOS
- log
- 서울시민카드
- yum
- 디렉토리
- RHEL
- Elk
- syslog
- Elasticsearch
- GNOME
- 크롬
- Linux
- Chrome
- 파이썬
- zabbix
- Shell
- Audit Log
- bash
- C
- centos 7.5
- docker
- rsyslog
- Kubernetes
- PostgreSQL
- K8S
- JSON
- audit
- 빅데이터
- Python
- Today
- Total
Sysops Notepad
ceph osd pool 생성하기 본문
1. pg_num 정보 보기
# ceph pg dump | awk '
BEGIN { IGNORECASE = 1 }
/^PG_STAT/ { col=1; while($col!="UP") {col++}; col++ }
/^[0-9a-f]+\.[0-9a-f]+/ { match($0,/^[0-9a-f]+/); pool=substr($0, RSTART, RLENGTH); poollist[pool]=0;
up=$col; i=0; RSTART=0; RLENGTH=0; delete osds; while(match(up,/[0-9]+/)>0) { osds[++i]=substr(up,RSTART,RLENGTH); up = substr(up, RSTART+RLENGTH) }
for(i in osds) {array[osds[i],pool]++; osdlist[osds[i]];}
}
END {
printf("\n");
printf("pool :\t"); for (i in poollist) printf("%s\t",i); printf("| SUM \n");
for (i in poollist) printf("--------"); printf("----------------\n");
for (i in osdlist) { printf("osd.%i\t", i); sum=0;
for (j in poollist) { printf("%i\t", array[i,j]); sum+=array[i,j]; sumpool[j]+=array[i,j] }; printf("| %i\n",sum) }
for (i in poollist) printf("--------"); printf("----------------\n");
printf("SUM :\t"); for (i in poollist) printf("%s\t",sumpool[i]); printf("|\n");
}'
2. osd pool 생성/삭제 하기
# ceph osd pool create <my-new-pool> <pg_num>
# rados cppool <my-old-pool> <my-new-pool>
# ceph osd pool delete <my-old-pool>
# ceph osd pool rename <my-new-pool> <my-old-pool>
3. 상태 정보 보기
# ceph -s
# ceph df detail
# ceph health
pool has many more objects per pg than average error
'업무 > sys' 카테고리의 다른 글
Zabbix Hostname to Visible name auto registration (0) | 2018.11.05 |
---|---|
dd명령어를 이용한 디스크 복제 및 초기화 방법 (0) | 2018.11.05 |
[Linux] Audit log 설정하기 (0) | 2018.10.24 |
Zabbix Server 4.x version setup / update (0) | 2018.10.24 |
katello 메모 (0) | 2018.10.22 |