搜索

6.100. GlusterBrick

download PDF

此服务管理单个 gluster brick。

表 6.281. 方法概述
名称概述

get

获取 brick 的详细信息。

remove

删除 brick。

replace

将此 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>
表 6.282. 参数摘要
名称类型方向概述

brick

GlusterBrick

out

 

follow

字符串

in

指明应遵循哪些内联链接

6.100.1.1. follow

指明应遵循哪些内联链接。这些链接引用的对象将在当前请求中获取。详情请查看此处

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.