Ceph指令 #建立Crush Rule ceph osd crush rule create-replicated rule-nvme default host nvme ceph osd crush rule create-replicated rule-hdd default host hdd ceph osd crush rule rm replicated_rule   為HDD Pool建立SSD快取 ceph osd tier add Ceph_Pool Cache ceph osd tier cache-mode Cache writeback ceph osd tier set-overlay Ceph_Pool Cache ceph osd pool set Cache hit_set_type bloom #ceph osd pool set Cache hit_set_count 12 #ceph osd pool set Cache hit_set_period 14400 ceph osd pool set Cache target_max_bytes xxxxxx ceph osd pool set Cache target_max_objects xxxxxx ceph osd pool set Cache min_read_recency_for_promote 2 ceph osd pool set Cache min_write_recency_for_promote 2 ceph osd pool set Cache cache_target_dirty_ratio 0.4 ceph osd pool set Cache cache_target_dirty_high_ratio 0.6 ceph osd pool set Cache cache_target_full_ratio 0.8 ceph osd pool set Cache cache_min_flush_age 600 ceph osd pool set Cache cache_min_evict_age 1800 #remove Cache Pool ceph osd tier cache-mode Cache readproxy radow -p Cache ls radow -p Cache cache-flush-evict-all ceph osd tire remove-overlay Ceph_Pool ceph osd tire remove Ceph_Pool Cache ceph delete Cache Cache --yes-i-really-really-mean-it   #移除以前是Ceph LVM的Disk Lable ceph-volume lvm zap /dev/sdX --destroy   #確認Ceph 狀態 ceph -s ceph osd pool stats #關閉ceph cluster準備 ceph osd set noout ceph osd set nobackfill ceph osd set norecover #ceph cluster開機後執行 ceph osd unset noout ceph osd unset nobackfill ceph osd unset norecover