Diskmanage: detect osds/journals/etc. created with ceph-volume
ceph-volume creates osds/journal/etc. on LVM instead of partitions, so to detect them, we have to parse the lv_tags of the LVs and match them with the underlying device also add tests for this detection Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
cd814c0453
commit
19dcd1adcb
@ -88,5 +88,69 @@
|
||||
"vendor" : "ATA",
|
||||
"wwn" : "0x0000000000000000",
|
||||
"devpath" : "/dev/sdd"
|
||||
},
|
||||
"sdg" : {
|
||||
"serial" : "SERIAL1",
|
||||
"vendor" : "ATA",
|
||||
"wwn" : "0x0000000000000000",
|
||||
"devpath" : "/dev/sdg",
|
||||
"model" : "MODEL1",
|
||||
"used" : "LVM",
|
||||
"wearout" : "N/A",
|
||||
"health" : "UNKNOWN",
|
||||
"gpt" : 1,
|
||||
"size" : 1536000,
|
||||
"rpm" : 0,
|
||||
"type" : "hdd",
|
||||
"bluestore": 1,
|
||||
"osdid" : 1
|
||||
},
|
||||
"sdh" : {
|
||||
"serial" : "SERIAL1",
|
||||
"vendor" : "ATA",
|
||||
"wwn" : "0x0000000000000000",
|
||||
"devpath" : "/dev/sdh",
|
||||
"model" : "MODEL1",
|
||||
"used" : "LVM",
|
||||
"wearout" : "N/A",
|
||||
"health" : "UNKNOWN",
|
||||
"gpt" : 1,
|
||||
"journals": 1,
|
||||
"size" : 1536000,
|
||||
"rpm" : 0,
|
||||
"type" : "hdd",
|
||||
"osdid" : -1
|
||||
},
|
||||
"sdi" : {
|
||||
"serial" : "SERIAL1",
|
||||
"vendor" : "ATA",
|
||||
"wwn" : "0x0000000000000000",
|
||||
"devpath" : "/dev/sdi",
|
||||
"model" : "MODEL1",
|
||||
"used" : "LVM",
|
||||
"wearout" : "N/A",
|
||||
"health" : "UNKNOWN",
|
||||
"gpt" : 1,
|
||||
"size" : 1536000,
|
||||
"rpm" : 0,
|
||||
"type" : "hdd",
|
||||
"db": 1,
|
||||
"osdid" : -1
|
||||
},
|
||||
"sdj" : {
|
||||
"serial" : "SERIAL1",
|
||||
"vendor" : "ATA",
|
||||
"wwn" : "0x0000000000000000",
|
||||
"devpath" : "/dev/sdj",
|
||||
"model" : "MODEL1",
|
||||
"used" : "LVM",
|
||||
"wearout" : "N/A",
|
||||
"health" : "UNKNOWN",
|
||||
"gpt" : 1,
|
||||
"size" : 1536000,
|
||||
"rpm" : 0,
|
||||
"bluestore": 0,
|
||||
"type" : "hdd",
|
||||
"osdid" : 2
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user