Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ceph osd deletion

Shulou Source: shulou.com Published: 2022-06-03 01:00:47 09月22日 Update

1. Introduction

In general, osd does not need to delete, but there is nothing absolute; in many cases, deletion is still needed (for example, if you re-adjust the scheme of a deployed storage cluster, you need to delete and re-adjust osd)

2. Out osd## will set osd out # # reweight to 0, and the cluster will migrate data # # equivalent to a "ceph osd reweight" operation # # when "reweight" is 0, the osd node is not included in the "in" count # ceph osd out {osd_id} 3, stop osd## closes the daemon of the osd node # # before shutting down the daemon Need to wait for the end of data migration after out # # the daemon of this node is not included in the "up" count # systemctl stop ceph-osd@ {osd_id} .service4, remove osd## remove osd## weight becomes 0 Then change the weight of crush algorithm # ceph osd crush remove osd. {osd_id} 5, aut del osd## aut del osd## delete osd node related permission information # ceph auth del osd. {osd_id} 6, rm osd## rm osd## delete osd node id number # ceph osd rm {osd_id}

Tags: Nodes processes data clusters adjustments information everything situations scenarios time weights permissions profiles algorithms or storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information NVidia Apple Xiaomi MySQL