您可以使用 ListDrives 方法列出集群的活动节点中的驱动器。此方法返回已作为卷元数据或块驱动器添加的驱动器,以及尚未添加但可用的驱动器。
此方法没有任何输入参数。
此方法的请求类似于以下示例:
{ "method": "ListDrives", "params": {}, "id" : 1 }
此方法返回类似于以下示例的响应:
{ "id" : 1, "result" : { "drives" : [ { "attributes" : {}, "capacity" : 299917139968, "driveID" : 35, "nodeID" : 5, "serial" : "scsi-SATA_INTEL_SSDSA2CW6CVPR141502R3600FGN-part2", "slot" : 0, "status" : "active", "type" : "volume" }, { "attributes" : {}, "capacity" : 600127266816, "driveID" : 36, "nodeID" : 5, "serial" : "scsi-SATA_INTEL_SSDSA2CW6CVPR1415037R600FGN", "slot" : 6, "status" : "active", "type" : "block" } } ] }
9.6