ceph添加osd報錯

錯誤來源

# ceph orch daemon add osd ceph-mon04:/dev/sdc
...
error: GPT headers found, they must be removed on: /dev/sdc
...

解決辦法

該錯誤關鍵點就是 GPT headers found, they must be removed,發生原因應該是之前磁盤被分區過,雖然刪掉了分區,但是還存在 GPT 數據結構,使用 sgdisk 命令進行清除。

# yum install -y gdisk
# sgdisk --zap-all /dev/sdc
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.

再次添加osd

# ceph orch daemon add osd ceph-mon04:/dev/sdc
Created osd(s) 12 on host 'ceph-mon04'
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章