From T2B Wiki
Jump to navigation Jump to search
  • Look at the crush map:

Either connect to the webinterface, or

ceph osd crush dump

  • Add a new entry to a map type:
ceph osd crush add-bucket sisc datacenter

  • Moving bucket to appropriate place:
ceph osd crush move sisc root=default

  • Move a machine to a bucket:
ceph osd crush move belspovhost04 datacenter=sisc

Edit Manually the crushmap

ceph osd getcrushmap -o crushmap.compiled
crushtool -d crushmap.compiled -o crushmap.decompiled

vi crushmap.decompiled <--- Edit it to your liking

crushtool -c crushmap.decompiled -o crushmap.compiled
ceph osd setcrushmap -i crushmap.compiled