MongoDB: wiredTiger engine 파일 찾는 법

2026. 3. 20. 10:35·📊DB/MongoDB

MongoDB 에서 wiredTiger engine 파일 찾는 법

찾게 된 이유 : 몽고디비에서 CRUD를 할때 checksum이 match가 되지 않는 오류 발생 => 몽고디비 다운으로 이어졌다.

log를 찾아보면, collection-218–4990451227493674325.wt 식의 파일 이름들이 보임.

해당 wt파일이 어떤 database의 collection인지 찾아 볼 수 있음.

from pymongo import MongoClient
conn = MongoClient(host='host', port=port, username='username', password='password')
databases = conn.list_database_names()
# 몽고디비에서 wt파일 찾는 법.
for db_name in databases:
    db = conn[db_name]
    collections = db.list_collection_names()
    for coll_name in collections:
        stats = db.command("collstats", coll_name)
        if 'wiredTiger' in stats and 'uri' in stats['wiredTiger']:
            uri = stats['wiredTiger']['uri']
            if "~~파일이름~~" in uri:
                print(f"Found in {db_name}.{coll_name}")

이렇게 하면 wt파일이 어느 database의 collection인지 찾아볼 수 있다.

저작자표시 비영리 변경금지 (새창열림)

'📊DB > MongoDB' 카테고리의 다른 글

MongoDB: Replica Set Secondary Node 동기화 시간 확인하는 방법  (1) 2026.03.20
MongoDB: DB 다운 시 재가동 방법  (0) 2026.03.20
MongoDB: TooManyLogicalSessions 에러  (0) 2026.03.20
MongoDB: 레플리카 셋 구축 가이드  (0) 2026.03.18
MongoDB: Logical Session vs 일반 Session  (0) 2026.03.18
'📊DB/MongoDB' 카테고리의 다른 글
  • MongoDB: Replica Set Secondary Node 동기화 시간 확인하는 방법
  • MongoDB: DB 다운 시 재가동 방법
  • MongoDB: TooManyLogicalSessions 에러
  • MongoDB: 레플리카 셋 구축 가이드
Diven
Diven
  • Diven
    Diven
    Diven
  • 전체
    오늘
    어제
    • 분류 전체보기 (110) N
      • ☁️Cloud (21) N
        • AWS (2)
        • Alibaba (14) N
        • OCI (1)
        • AWS: Certified Solution Arc.. (0)
        • AWS: Certificate Advanced N.. (2) N
      • 📊DB (13)
        • MongoDB (8)
        • MariaDB (2)
        • PostgreSQL (2)
        • MySQL (1)
      • 🧑🏽‍💻Dev:Lang (9)
        • C++ (0)
        • GO (1)
        • Python (8)
      • ⚙️DevOps (4)
        • CICD (0)
        • Jenkins (4)
      • 🐳Docker (15)
      • 🪢laC (0)
      • ⚓K8s (7)
      • 🐧Linux (25)
      • 🖥️Monitoring (10)
        • Grafana (1)
        • Prometheus (6)
        • Loki (1)
        • ELK (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    AWS
    linux
    mariadb
    alertmanager
    prometheus
    mongoDB
    PolarDB
    Cloud
    NGINX
    k8s
    MySQL
    Alibaba
    jenkins
    alb
    SSL
    알리바바 클라우드
    docker
    centOS7
    db
    Python
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
Diven
MongoDB: wiredTiger engine 파일 찾는 법
상단으로

티스토리툴바