onstat -g smb 命令:打印 sbspace 信息

可以使用 onstat -g smb 命令显示有关 sbspace 的详细信息。

语法:

命令 解释
onstat -g smb c 列出 sbspace 中的所有的 chunk
onstat -g smb e 列出所有智能大对象表类型的条目
onstat -g smb e cad 列出智能大对象 chunk 头表条目
onstat -g smb e fdd 列出智能大对象文件描述符条目
onstat -g smb e lod 列出智能大对象头表中的条目
onstat -g smb fdd 列出智能大对象文件描述符
onstat -g smb h 列出所有智能大对象表类型头
onstat -g smb h cad 列出智能大对象 chunk 头表头
onstat -g smb h fdd 列出智能大对象文件描述符表头
onstat -g smb h lod 列出智能大对象文头表的表头
onstat -g smb lod 列出在智能大对象头表中的头和条目
onstat -g smb s 列出 sbspace 属性(所有者、名称、页大小、-Df 标识设置)Sbspace 创建过程中不初始化值为 0 或 -1 的字段

onstat -g smb c 命令的示例输出

使用 onstat -g smb c 命令监视每个 sbspace chunk 中的可用空间量,以及用户数据、元数据和保留区域以页面为单位的大小。onstat -g smb c 命令显示每个 sbspace chunk 的以下信息:
  • Chunk 编号和 sbspace 名称
  • Chunk 大小和路径名
  • 总用户数据页和可用的用户数据页
  • 在每个用户数据和元数据区域中的页面的位置和数据
在以下示例中,sbspace 的 chunk 2 具有 2253 个源可用页(orig fr) 2253 个用户页(usr pgs)和 2245 个可用页(free pg)。对于第一个用户数据区域 (Ud1),起始页面偏移量为 53 ,页面数量为 1126。对于元数据区域(Md),起始页的偏移量为1179 ,页面数量为 194。 对于第二个用户数据区域(Ud2),起始页的偏移量为 1373 ,页面数量为 1127 。
Chunk Summary:
          
          sbnum 2  chunk 2 
          chunk:   address   flags    offset   size   orig fr   usr pgs   free pg
          303cf2a8  F------- 0        2500   2253      2253      2245          
          path: /usr11/myname/sbspace1
          
          start pg   npages 
          Ud1  :   53         1126 
          Md   :   1179       194 
          Ud2  :   1373       1127

onstat -g smb s 命令的输出

onstat -g smb s 命令显示系统中的所有 sbspace 的存储属性:
  • sbspace 名称、标志、所有者
  • 日志记录状态
  • 平均智能大对象大小
  • 第一个 extent 大小、下一个 extent 大小和最小 extent 大小
  • 最大 I/O 访问时间
  • 锁定方式

有关 onstat -g smb 命令的更多信息,请参阅 GBase 8s 性能指南