6.100. GlusterBrick
此服务管理单个 gluster brick。
名称 | 概述 |
---|---|
| 获取 brick 的详细信息。 |
| 删除 brick。 |
| 将此 brick 替换为新的 brick。 |
6.100.1. 获取 GET
获取 brick 的详细信息。
从底层 gluster 卷检索 brick 的状态详细信息,并标头 All-Content
设为 true
。这等同于运行 gluster 卷状态 <volumename> <brickname> 详情
。
例如,若要获取 gluster 卷 123
的 brick 234
的详细信息,请发送类似如下的请求:
GET /ovirt-engine/api/clusters/567/glustervolumes/123/glusterbricks/234
这会返回类似如下的响应正文:
<brick id="234"> <name>host1:/rhgs/data/brick1</name> <brick_dir>/rhgs/data/brick1</brick_dir> <server_id>111</server_id> <status>up</status> <device>/dev/mapper/RHGS_vg1-lv_vmaddldisks</device> <fs_name>xfs</fs_name> <gluster_clients> <gluster_client> <bytes_read>2818417648</bytes_read> <bytes_written>1384694844</bytes_written> <client_port>1011</client_port> <host_name>client2</host_name> </gluster_client> </gluster_clients> <memory_pools> <memory_pool> <name>data-server:fd_t</name> <alloc_count>1626348</alloc_count> <cold_count>1020</cold_count> <hot_count>4</hot_count> <max_alloc>23</max_alloc> <max_stdalloc>0</max_stdalloc> <padded_size>140</padded_size> <pool_misses>0</pool_misses> </memory_pool> </memory_pools> <mnt_options>rw,seclabel,noatime,nodiratime,attr2,inode64,sunit=512,swidth=2048,noquota</mnt_options> <pid>25589</pid> <port>49155</port> </brick>
名称 | 类型 | 方向 | 概述 |
---|---|---|---|
| out | ||
| in | 指明应遵循哪些内联链接。 |
6.100.1.1. follow
指明应遵循哪些内联链接。这些链接引用的对象将在当前请求中获取。详情请查看此处。