From 66410676636b38c0f55d88e8cf0c4c9720033df9 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 30 Sep 2025 00:21:53 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20OpenSearch=20HDD=20=EB=A7=88=EC=9D=B4?= =?UTF-8?q?=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20=ED=8A=B8=EB=9F=AC?= =?UTF-8?q?=EB=B8=94=EC=8A=88=ED=8C=85=20=EB=AC=B8=EC=84=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SSD에서 HDD로 데이터 경로 변경 - 보안 플러그인 비활성화 과정 - 설정 파일 변경 사항 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../20250930_opensearch_hdd_migration.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 troubleshooting/20250930_opensearch_hdd_migration.md diff --git a/troubleshooting/20250930_opensearch_hdd_migration.md b/troubleshooting/20250930_opensearch_hdd_migration.md new file mode 100644 index 0000000..23d23f2 --- /dev/null +++ b/troubleshooting/20250930_opensearch_hdd_migration.md @@ -0,0 +1,43 @@ +# OpenSearch HDD 마이그레이션 + +## 문제 +- OpenSearch 데이터가 SSD(/var/lib/opensearch)에 저장 +- SSD 용량 부족 우려 + +## 해결 + +### 1. 데이터 마이그레이션 +```bash +sudo mkdir -p /mnt/hdd/opensearch +sudo cp -rp /var/lib/opensearch/* /mnt/hdd/opensearch/ +sudo chown -R 1000:1000 /mnt/hdd/opensearch +``` + +### 2. 설정 파일 변경 + +**파일**: `/home/admin/opensearch/docker-compose.yaml` +- 34번 라인: `/var/lib/opensearch` → `/mnt/hdd/opensearch` + +**파일**: `/home/admin/opensearch/.gitea/workflows/cicd.yml` +- 17-19번 라인: `/var/lib/opensearch` → `/mnt/hdd/opensearch` +- 30-31번 라인: 기존 컨테이너 중복 방지 코드 추가 + +**파일**: `/home/admin/opensearch/Dockerfile` +- 보안 인증서 COPY 라인 제거 +- `ENV plugins.security.disabled=true` 추가 + +### 3. 보안 플러그인 비활성화 +- docker-compose.yaml 15번 라인: `DISABLE_SECURITY_PLUGIN=true` +- 내부 네트워크 전용 서비스로 TLS 불필요 + +### 4. 현재 상태 +- 데이터 경로: `/mnt/hdd/opensearch` (354MB) +- 컨테이너: opensearch (opensearch-opensearch-node 이미지) +- 포트: 9200, 9600 +- HDD 여유 공간: 869GB + +### 5. 커밋 이력 +- 7466068: HDD 경로 변경 +- 5f7bf49: Actions 워크플로우 경로 수정 +- 2df7afb: 보안 플러그인 비활성화 +- 8f667d3: DISABLE_SECURITY_PLUGIN 환경변수 수정 \ No newline at end of file