我查看了多个论坛帖子,打开了调试等功能,但我仍然无法弄清楚为什么磁盘空间不起作用。除磁盘空间外,所有其他信息都已填写。
在代理日志中,我看到了对 /os-metric/disk-space 的请求,但它始终返回一个空值。启动时没有错误,并且 DEBUG 日志记录没有显示任何内容。日志中的输出为:
INFO [qtp728395819-23] 2014-03-20 16:49:19,636 HTTP: :get /os-metric/disk-space {} - 200
Opscenter 服务器上也没有错误。
我最初遇到错误,无法找到正确的 cassandra.yaml 文件,但我已经更正了这些错误,现在启动日志中没有错误。最新版本的 Opscenter 4.1.1 和 Cassandra 1.2.15 也会出现这种情况。还有其他关于要查找什么的建议吗?例如,它是否使用非标准实用程序(即不是 df)?
编辑:添加来自//nodes的输出;这对于每个节点来说都很常见。
{
"data_held": 18001238572.0,
"dc": "DC1",
"devices": {
"commitlog": "sdb",
"data": [
"sdc"
],
"other": [
"sda1"
],
"saved_caches": "sdb"
},
"has_jna": true,
"last_seen": 0,
"load": 0.13,
"mode": "normal",
"network_interfaces": [
"lo",
"eth0",
"sit0"
],
"node_ip": "{snip}",
"node_name": "{snip}",
"node_version": {
"cassandra": "1.2.15",
"dse": null,
"jobtracker": null,
"search": null,
"tasktracker": null
},
"num_procs": 8,
"os": "linux",
"partitions": {
"commitlog": "/dev/sdc",
"data": [
"_"
],
"other": [
"/dev/sdb",
"/dev/sda1"
],
"saved_caches": "/dev/sdc"
},
"rack": "DEFAULT-RACK",
"rpc_ip": "{snip}",
"streaming": {},
"task_progress": {},
"token": "-5829041219150380184",
"vnodes": true
}
cassandra.yaml 数据目录:
# Directories where Cassandra should store data on disk. Cassandra
# will spread data evenly across them, subject to the granularity of
# the configured compaction strategy.
data_file_directories:
- /var/lib/cassandra/data
$ cat /proc/mounts
[snip]
/dev/sdc /var/lib/cassandra/data ext3 rw,data=ordered 0 0