Proxmox 6.1 crushtool not working

Haider Jarral

Well-Known Member
Aug 18, 2018
121
5
58
38
Hello experts,

I am in process of setting a brand new cluster with 6.1, I am not able to compile the crushmap, the output file just does not show up, wondering if anyone else has seen it and whats the workaround

Code:
root@dellr730-1:~# ls -l
total 8
-rw-r--r-- 1 root root 352 Mar 14 03:18 crushmap.compiled
-rw-r--r-- 1 root root 916 Mar 14 03:20 crushmap.txt
root@dellr730-1:~#
root@dellr730-1:~#
root@dellr730-1:~#
root@dellr730-1:~# crushtool -c crushmap.txt -o crushmap-new
root@dellr730-1:~#
root@dellr730-1:~# ls
crushmap.compiled  crushmap.txt
root@dellr730-1:~#
root@dellr730-1:~#
root@dellr730-1:~#
root@dellr730-1:~# ceph -v
ceph version 14.2.6 (ba51347bdbe28c7c0e2e9172fa2983111137bb60) nautilus (stable)
root@dellr730-1:~#
root@dellr730-1:~# pveversion
pve-manager/6.1-7/13e58d5e (running kernel: 5.3.18-2-pve)
root@dellr730-1:~#
 
mhmm works here... what did you change in the crushmap.txt ? (i assume you wanted to manually edit it)
 
yes, I only added 2 classes one for hdd and one for ssd.

Code:
# cat crushmap
# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
tunable chooseleaf_vary_r 1
tunable chooseleaf_stable 1
tunable straw_calc_version 1
tunable allowed_bucket_algs 54

# devices

# types
type 0 osd
type 1 host
type 2 chassis
type 3 rack
type 4 row
type 5 pdu
type 6 pod
type 7 room
type 8 datacenter
type 9 zone
type 10 region
type 11 root

# buckets
root default {
    id -1        # do not change unnecessarily
    # weight 0.000
    alg straw2
    hash 0    # rjenkins1
}

# rules
rule replicated_hdd {
    id 0
    type replicated
    min_size 1
    max_size 10
    step take default class hdd
    step chooseleaf firstn 0 type host
    step emit
}
rule replicated_ssd {
    id 1
    type replicated
    min_size 1
    max_size 10
    step take default class ssd
    step chooseleaf firstn 0 type host
    step emit
}

# end crush map
root@dellr730-1:~#
 
i guess the output is empty because there is no actual entry in the crushmap (no osd)