Data storage method and device, equipment and medium
The invention discloses a data storage method and device, equipment and a medium. In the embodiment of the invention, after nodes are added and a fault domain is switched from OSD to HOST, a pre-stored mapping relation between Object and PG and a pre-stored mapping relation between PG and OSD are up...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a data storage method and device, equipment and a medium. In the embodiment of the invention, after nodes are added and a fault domain is switched from OSD to HOST, a pre-stored mapping relation between Object and PG and a pre-stored mapping relation between PG and OSD are updated, and an identification value of a first OSD corresponding to the Object and an identification value of a second OSD corresponding to the Object before updating on the basis of the updated mapping relationship are determined, the OSD points to a changed target Object are determined, and the identification value of the target OSD corresponding to the target Object is kept as the identification value of the second OSD, so that the target Object is still stored in the OSD before the node is added. A large amount of data migration in the cluster is avoided, and the user experience is improved.
本发明公开了数据存储方法、装置、设备及介质,由于本发明实施例中,在增加节点并将故障域由OSD切换为HOST后,更新了预先保存的Object与PG的映射关系以及预先保存的PG与OSD的映射关系,并基于更新后的映射关系确定Object对应的第一OS |
---|