add info about bluestore to disklist

this patch adds information about bluestore/db/wal to the disklist,
and we set the journal count only when we have at least one journal on
the disk

also adapt the regression tests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2017-08-04 16:32:48 +02:00
committed by Fabian Grünbichler
parent 0430101380
commit e2bd817ccc
7 changed files with 29 additions and 22 deletions

View File

@ -10,7 +10,6 @@
"model" : "LOGICAL_VOLUME",
"size" : 5120,
"wwn" : "0x0000000000000000",
"journals" : 0,
"gpt" : 1,
"devpath" : "/dev/cciss/c0d0"
}

View File

@ -10,7 +10,6 @@
"health" : "PASSED",
"type" : "hdd",
"wwn" : "0x0000000000000000",
"journals" : 0,
"wearout" : "N/A",
"serial" : "00000000"
},
@ -26,7 +25,6 @@
"vendor" : "ATA",
"serial" : "00000000",
"wearout" : "N/A",
"journals" : 0,
"wwn" : "0x0000000000000000"
}
}

View File

@ -3,7 +3,6 @@
"wearout" : "N/A",
"vendor" : "unknown",
"size" : 512000,
"journals" : 0,
"health" : "PASSED",
"serial" : "unknown",
"model" : "NVME MODEL 1",

View File

@ -6,7 +6,6 @@
"model" : "MODEL1",
"health" : "UNKNOWN",
"osdid" : -1,
"journals" : 0,
"wwn" : "0x0000000000000000",
"vendor" : "VENDOR1",
"rpm" : -1,

View File

@ -5,7 +5,6 @@
"rpm" : 0,
"gpt" : 1,
"health" : "PASSED",
"journals" : 0,
"wearout" : "100",
"osdid" : -1,
"size" : 512000,
@ -26,7 +25,6 @@
"vendor" : "ATA",
"serial" : "000000000000000000",
"wearout" : "97",
"journals" : 0,
"health" : "PASSED"
},
"sdc" : {
@ -37,7 +35,6 @@
"type" : "ssd",
"size" : 512000,
"wearout" : "99",
"journals" : 0,
"health" : "PASSED",
"gpt" : 1,
"rpm" : 0,
@ -49,7 +46,6 @@
"gpt" : 1,
"serial" : "000000000000",
"vendor" : "ATA",
"journals" : 0,
"wearout" : "100",
"health" : "PASSED",
"devpath" : "/dev/sdd",
@ -71,7 +67,6 @@
"gpt" : 1,
"rpm" : 0,
"health" : "PASSED",
"wearout" : "91",
"journals" : 0
"wearout" : "91"
}
}

View File

@ -5,10 +5,10 @@
"size" : 1536000,
"type" : "hdd",
"osdid" : "444",
"bluestore" : "0",
"health" : "UNKNOWN",
"model" : "MODEL1",
"used" : "mounted",
"journals" : 0,
"wearout" : "N/A",
"wwn" : "0x0000000000000000",
"devpath" : "/dev/sdf",
@ -28,7 +28,6 @@
"type" : "hdd",
"model" : "MODEL1",
"used" : "Device Mapper",
"journals" : 0,
"wearout" : "N/A"
},
"sdb" : {
@ -38,7 +37,6 @@
"devpath" : "/dev/sdb",
"model" : "MODEL1",
"used" : "LVM",
"journals" : 0,
"wearout" : "N/A",
"health" : "UNKNOWN",
"gpt" : 1,
@ -50,7 +48,6 @@
"sda" : {
"model" : "MODEL1",
"used" : "mounted",
"journals" : 0,
"wearout" : "N/A",
"health" : "UNKNOWN",
"gpt" : 1,
@ -69,7 +66,6 @@
"devpath" : "/dev/sdc",
"wwn" : "0x0000000000000000",
"used" : "ZFS",
"journals" : 0,
"wearout" : "N/A",
"model" : "MODEL1",
"health" : "UNKNOWN",
@ -81,7 +77,6 @@
},
"sdd" : {
"model" : "MODEL1",
"journals" : 0,
"wearout" : "N/A",
"health" : "UNKNOWN",
"size" : 1536000,