5.77. GlusterBrick
此服务管理单个 gluster brick。
| 名称 | 概述 |
|---|---|
|
| 获取 brick 的详细信息。 |
|
| 移除 brick。 |
|
| 将此 brick 替换为一个新 brick。 |
5.77.1. 获取 GET 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
获取 brick 的详细信息。
从底层 gluster 卷检索 brick 的状态详情,并将 All-Content 设为 true。这等同于运行 gluster volume status <volumename> <brickname> detail。
例如,若要获取 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 |