Skip to main content
Element Software
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

获取驾驶统计数据

贡献者 netapp-pcarriga

你可以使用 `GetDriveStats`获取单个驱动器高级活动测量的方法。从将驱动器添加到集群开始,数值是累积的。某些值是块驱动器特有的。运行此方法时,将返回块驱动器或元数据驱动器类型的统计数据。

参数

该方法具有以下输入参数:

名称 描述 类型 默认值 必填项

驱动器ID

请求所用驱动器的 ID。

整数

返回值

该方法返回以下值:

名称 描述 类型

驱动统计

指定驱动器 ID 的驱动器活动信息。

请求示例

该方法的请求类似于以下示例:

{
   "method": "GetDriveStats",
   "params": {
     "driveID": 3
   },
   "id" : 1
}

响应示例(块驱动器)

对于块驱动器,此方法返回的响应类似于以下示例:

{
  "id": 1,
  "result": {
    "driveStats": {
      "driveID": 10,
      "failedDieCount": 0,
      "lifeRemainingPercent": 99,
      "lifetimeReadBytes": 26471661830144,
      "lifetimeWriteBytes": 13863852441600,
      "powerOnHours": 33684,
      "readBytes": 10600432105,
      "readOps": 5101025,
      "reallocatedSectors": 0,
      "reserveCapacityPercent": 100,
      "timestamp": "2016-10-17T20:23:45.456834Z",
      "totalCapacity": 300069052416,
      "usedCapacity": 6112226545,
      "usedMemory": 114503680,
      "writeBytes": 53559500896,
      "writeOps": 25773919
    }
  }
}

响应示例(卷元数据驱动器)

此方法返回的响应类似于以下卷元数据驱动器的示例:

{
  "id": 1,
  "result": {
    "driveStats": {
      "activeSessions": 8,
      "driveID": 12,
      "failedDieCount": 0,
      "lifeRemainingPercent": 100,
      "lifetimeReadBytes": 2308544921600,
      "lifetimeWriteBytes": 1120986464256,
      "powerOnHours": 16316,
      "readBytes": 1060152152064,
      "readOps": 258826209,
      "reallocatedSectors": 0,
      "reserveCapacityPercent": 100,
      "timestamp": "2016-10-17T20:34:52.456130Z",
      "totalCapacity": 134994670387,
      "usedCapacity": null,
      "usedMemory": 22173577216,
      "writeBytes": 353346510848,
      "writeOps": 86266238
    }
  }
}

自版本以来的新版本

9.6

查找更多信息