'데이터 엔지니어'로 성장하기

정리하는 걸 좋아하고, 남이 읽으면 더 좋아함

Storage/Ceph

ceph) osd 초기화시키_TYPE="ceph_bluestore" 초기화

MightyTedKim 2022. 11. 30. 20:27
728x90
반응형

 

rook-ceph연습하다가 osd 추가 삭제 연습을 하고 있었어요

그런데 osd가 자동 매핑되려면, 비어있어야하는데

기존 데이터와 서명이 남아있어서 문제가 생겼어요

 

skipping device "sdc" because it contains a filesystem "LVM2_member".

 

cox@k8sworker1:/root$ blkid
/dev/nvme0n1p1: LABEL="cloudimg-rootfs" UUID="93e5a202-73de-4bd5-8826-61ca0bcc099f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cbb5015f-ca94-467b-91ae-cce97828a042"
/dev/nvme0n1p15: LABEL_FATBOOT="UEFI" LABEL="UEFI" UUID="C733-26D6" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="1902af65-4ad6-4ba5-b895-7cc800d3ec87"
/dev/nvme1n1: TYPE="ceph_bluestore"

 

root@k8sworker1:~# dd if=/dev/zero of="/dev/nvme1n1" bs=1M count=100 oflag=direct,dsync
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.441559 s, 237 MB/s

root@k8sworker1:~# blkid
/dev/nvme0n1p1: LABEL="cloudimg-rootfs" UUID="93e5a202-73de-4bd5-8826-61ca0bcc099f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cbb5015f-ca94-467b-91ae-cce97828a042"
/dev/nvme0n1p15: LABEL_FATBOOT="UEFI" LABEL="UEFI" UUID="C733-26D6" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="1902af65-4ad6-4ba5-b895-7cc800d3ec87"
/dev/loop1: TYPE="squashfs"
/dev/nvme0n1p14: PARTUUID="274bd230-e195-4bf8-ab5a-bcde855b82ce"
/dev/loop6: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop0: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"

 

초기화 시키고 나서 rook-ceph operator를 초기화시켜주니 알아서 매핑을 했습니다.

$ k rollout restart deployment.apps/rook-ceph-operator -n rook-ceph

 

https://github.com/rook/rook/issues/6865

https://rook.io/docs/rook/v1.10/Storage-Configuration/Advanced/ceph-osd-mgmt/#pvc-based-cluster

https://github.com/rook/rook/issues/6738

 

728x90
반응형