Libro sobre Proxmox maestria
0.01999 osd.6 up osd.7 up
In the previous output, osd.4, osd.5, osd.6, and osd.7 are the four SSD OSDs we added. Now we will move them to their respective virtual host buckets. Virtual host buckets are nothing but aliases for the existing physical nodes we created through the CRUSH map. The ceph-osd-01 and ceph-osd-02 nodes are main physical nodes. The ceph-ssd-01 and ceph-ssd-02 nodes are aliases for the ceph-osd-01 and ceph-osd-02 nodes, which separate the pool to be used with SSD-based OSDs. We can create as many virtual hosts as required to separate any number of pools or assign specific OSDs to a given pool.
We are going to use the following command format to move OSDs to virtual host buckets:
# ceph osd crush set <osd.id> <weight> <host_bucket>
Based on this format, we will enter the following commands to move osd.4, osd.5, osd.6, and osd.7 to the virtual host nodes ceph-ssd-01 and ceph-ssd-02:
# ceph osd crush set osd.4 0.0199 host-ceph-ssd-01
# ceph osd crush set osd.5 0.0199 host-ceph-ssd-02
# ceph osd crush set osd.6 0.0199 host-ceph-ssd-01
# ceph osd crush set osd.7 0.0199 host-ceph-ssd-02
After the OSDs are moved, we are now going to bring the OSDs online using the following commands. First we have to remove the restriction placed earlier to prevent OSDs from coming online on their own:
#ceph osd unset noin
#ceph osd unset noup
Now we will start putting all the new OSDs online using the following commands:
Our OSDs placement will look like the following code: cephadmin@ceph-mon-01:-/pmxceph$ sudo ceph osd tree