Chinaunix首页 | 论坛 | 博客
  • 博客访问: 125870
  • 博文数量: 17
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 207
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-07 09:39
文章分类

全部博文(17)

文章存档

2017年(1)

2015年(1)

2014年(15)

我的朋友

分类: 服务器与存储

2014-09-04 17:46:04

 


1.       VolumeProfile命令

VolumeProfile 命令提供了一个接口,可以查看一些卷的信息,比如I/O或一些文件操作等,从而可以找出瓶颈所在。

 

启动 Profiling

 

命令格式:

#gluster volume profile VOLNAME start

 

For example:

# glustervolume profile test-volume start

 

#开启此命令会影响性能,因此建议只在做debugging时启用。

 

2 查看IO信息

 

命令格式:

# glustervolume profile VOLNAMEinfo [nfs]

 

Forexample:

# glustervolume profile test-volume info

 

3关闭 Profiling

 

命令格式:

#gluster volume profile VOLNAME stop

 

For example:

# glustervolume profile test-volume stop

 

2.       VolumeTop命令

Volume Top命令可以查看glusterFS bricks一些性能指标。

 

1 查看当前打开的文件数及最大打开的文件数

 

命令格式:

# gluster volume top VOLNAMEopen [nfs | brick BRICK-NAME] [list-cnt CNT]

 

For example:

# glustervolume top test-volume open brick g1:/data list-cnt cnt5

 

如果不指定brick Volume Top命令默认会返回100条结果,可以使用list-cnt 限制返回的数量。

 

2 查看读取频率最高的文件

 

命令格式:

# gluster volume top VOLNAMEread [nfs | brick BRICK-NAME] [list-cnt CNT]

 

For example:

# glustervolume top test-volume read

 

如果不指定brick Volume Top命令默认会返回100条结果,可以使用list-cnt 限制返回的数量。

 

3 查看写频率最高的文件

 

命令格式:

# gluster volume top VOLNAMEwrite [nfs | brick BRICK-NAME] [list-cnt CNT]

 

Forexample:

# glustervolume top test-volume write list-cnt 10

如果不指定brick Volume Top命令默认会返回100条结果,可以使用list-cnt 限制返回的数量。

 

4 查看打开频率最高的目录

 

命令格式:

# gluster volume top VOLNAMEopendir [nfs | brick BRICK-NAME] [list-cnt CNT]

 

For example:

# glustervolume top test-volume opendir brick g1:/data list-cnt cnt5

 

如果不指定brick Volume Top命令将返回该卷上所有brick的信息

 

5 查看读取频率最高的目录

 

命令格式:

# gluster volume top VOLNAMEreaddir [nfs | brick BRICK-NAME] [list-cnt CNT]

 

For example:

# glustervolume top test-volume readdir

 

6 查看brick的读/写性能

 

命令格式:

# gluster volume top VOLNAMEread-perf/write-perf [bs BLK-SIZEcount COUNT] [nfs | brick BRICK-NAME] [list-cnt CNT]

 

For example:

# glustervolume top test-volume read-perf

# glustervolume top test-volume write-perf bs 1024 count 10brick g1:/data list-cnt 5

 

7 列出当前所有的卷

 

# gluster volume list

 

8 转储状态文件

可以将卷的一些内部变量及状态信息转储到文件中去,文件的默认存储路径为/var/run/gluster,文件名为BRICK-PATH.BRICK-PID.dump.*

 

命令格式:

gluster volume statedump VOLNAME [nfs] [all|mem|iobuf|callpool|priv|fd|inode|history]

 

 

mem        Dumps the memory usage and memory pool detailsof the bricks.

Iobuf       Dumps iobuf details of the bricks.

priv        Dumps private information of loaded translators.

callpool    Dumpsthe pending calls of the volume.

fd             Dumps the open file descriptor tables of the volume.

inode       Dumpsthe inode tables of the volume.

history     Dumpsthe event history of the volume

 

更改转储文件的路径

 

# gluster volume set VOLNAMEserver.statedump-path PATH

 

9 查看卷的状态

 

命令格式:

gluster volumestatus [all] VOLNAME [nfs | shd | BRICKNAME]] [detail |clients | mem | inode | fd |callpool]

 

For example:

# glustervolume status test-volume shd

# glustervolume status test-volume g1:/data detail

 

 

detail           Displays additional information aboutthe bricks.

clients          Displays the list of clients connectedto the volume.

mem             Displays the memory usage andmemory pool details of the bricks.

inode           Displays the inode tables of thevolume.

fd                  Displays the open filedescriptor tables of the volume.

callpool        Displaysthe pending calls of the volume.

shd               Displays the Self-heal info ofthe volume.

阅读(6816) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~