The invention discloses a Crush creation method and
system for deploying Ceph based on Rook, and belongs to the technical field of
cloud computing. The method comprises the following specific steps: S1, detecting a Ceph version, and deploying a Ceph cluster component service; S2, deploying and adding OSD nodes; S3, setting task execution by utilizing CrushRoot; S4, executing a Crush Rules task, and carrying out the creation according to the Crush Root fault
domain level of the Ceph cluster; S5, executing the CepBlock
Pool user-defined resource, and creating
Pool according to the selected CephCrush Rule and the number of pg. According to the method and the device, the Crush Root and the Crush Rules are automatically created after the Ceph cluster is deployed by the Rook; the defect that the Crush Root and the Crush Rules cannot be automatically created after the Ceph cluster is quickly deployed by the Rook is overcome; the requirement that the Ceph cluster performs resource division ondifferent
storage type nodes in an
actual use scene is met; the deployment efficiency is improved through automatic creation, the efficiency of implementation personnel is improved, and the risk thaterrors are prone to occurring due to manual intervention is avoided.