[pve-devel] [PATCH manager 2/3] show bluestore info in the osd tree

Dominik Csapak d.csapak at proxmox.com
Tue Aug 1 14:59:36 CEST 2017


namely the osd type (filestore/bluestore), bluestore device,
db device and wal device

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/OSD.js | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 80c191f6..a37d4d2a 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -191,6 +191,33 @@ Ext.define('PVE.node.CephOsdTree', {
 	    width: 40
 	},
 	{
+	    text: gettext("OSD Type"),
+	    dataIndex: 'osdtype',
+	    align: 'right',
+	    width: 40
+	},
+	{
+	    text: gettext("Bluestore Device"),
+	    dataIndex: 'blfsdev',
+	    align: 'right',
+	    width: 40,
+	    hidden: true
+	},
+	{
+	    text: gettext("DB Device"),
+	    dataIndex: 'dbdev',
+	    align: 'right',
+	    width: 40,
+	    hidden: true
+	},
+	{
+	    text: gettext("WAL Device"),
+	    dataIndex: 'waldev',
+	    align: 'right',
+	    width: 40,
+	    hidden: true
+	},
+	{
 	    text: 'Status',
 	    dataIndex: 'status',
 	    align: 'right',
@@ -501,6 +528,10 @@ Ext.define('PVE.node.CephOsdTree', {
 		     { type: 'integer', name: 'apply_latency_ms' },
 		     { type: 'integer', name: 'commit_latency_ms' },
 		     { type: 'string', name: 'device_class' },
+		     { type: 'string', name: 'osdtype' },
+		     { type: 'string', name: 'blfsdev' },
+		     { type: 'string', name: 'dbdev' },
+		     { type: 'string', name: 'waldev' },
 		     { type: 'string', name: 'iconCls', calculate: function(data) {
 			 var iconCls = 'x-fa x-fa-tree fa-';
 			 switch (data.type) {
-- 
2.11.0




More information about the pve-devel mailing list