简体   繁体   English

如何在OpenEBS中获取客户端使用的空间?

[英]How to get the used space by client in OpenEBS?

Setup JIVA OpenEBS 0.5.3 I've been taking a look at the Prometheus metrics exported and I'm not seeing a metric for the used space from the perspective of the client. 设置JIVA OpenEBS 0.5.3我一直在查看导出的Prometheus指标,但从客户端的角度来看,我没有看到已用空间的指标。

I'm seeing 'OpenEBS_logical_size' and 'OpenEBS_actual_used' but they both appear to show the size of my host disk usage and neither show the usage from my client's perspective. 我看到的是“ OpenEBS_logical_size”和“ OpenEBS_actual_used”,但它们似乎都显示了我的主机磁盘使用量,而从客户的角度来看都没有显示。

For reference, my volume is 10G in size, my used space on the host is 8.1G, and my client application shows 1.9G of data. 作为参考,我的卷大小为10G,主机上的已用空间为8.1G,我的客户端应用程序显示了1.9G的数据。 Both 'OpenEBS_logical_size' and 'OpenEBS_actual_used' show 8.09G used. “ OpenEBS_logical_size”和“ OpenEBS_actual_used”均显示使用了8.09G。 Is there a metric that I'm not seeing that would show me the usage from the client's perspective? 有没有我看不到的指标可以从客户的角度向我显示使用情况?

There are three layers here: 这里有三层:

/var/lib/mysql (user data) --> sits on /iscsi-vol (ext4 formatted) --> sits on replicas ( /var/openebs/volname..) / var / lib / mysql(用户数据)->位于/ iscsi-vol(ext4格式)->位于副本(/ var / openebs / volname ..)

(1) User (du) on /var/lib/mysql shows the space as seen from ext4. (1)/ var / lib / mysql上的用户(du)显示了从ext4看到的空间。

(2) /iscsi-vol size is tracked by OpenEBS-actual-used, which is showing the blocks used by ext4. (2)/ iscsi-vol大小由OpenEBS-actual-used跟踪,该文件显示了ext4使用的块。 Unless unmap is enabled on ext4, the OpenEBS-actual-used will be higher than what is really used. 除非在ext4上启用了取消映射,否则实际使用的OpenEBS将高于实际使用的OpenEBS。

(3) /var/openebs/volname.. space used is tracked by OpenEBS-logical-used, which is the space used by each replica for storing the data. (3)/ var / openebs / volname ..使用的空间由OpenEBS-logical-used跟踪,该空间是每个副本存储数据所使用的空间。 This is the sum of data currently served as well as data retained by the snapshots. 这是当前提供的数据以及快照保留的数据的总和。 The OpenEBS-logical-used will be higher, when data blocks are modified after taking the snapshots. 在拍摄快照后修改数据块时,OpenEBS逻辑使用率会更高。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM