You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32
//这个命令可以把D状态的进程的内核栈信息trace到/var/log/messages中
$ echo w > /proc/sysrq-trigger
查看glusterfs卷相关状态
gluster volume status volume_name
Lists status information for each brick in the volume.
gluster volume status volume_name detail
Lists more detailed status information for each brick in the volume.
gluster volume status volume_name clients
Lists the clients connected to the volume.
gluster volume status volume_name mem
Lists the memory usage and memory pool details for each brick in the volume.
gluster volume status volume_name inode
Lists the inode tables of the volume.
gluster volume status volume_name fd
Lists the open file descriptor tables of the volume.
gluster volume status volume_name callpool
Lists the pending calls for the volume.
glusterfs设置进程的调试级别
glusterd --log-level TRACE
gluster volume set dht_debug diagnostics.client-log-level TRACE
gluster volume set dht_debug diagnostics.brick-log-level TRACE
glusterfs二进制调试方法
$ gdb /usr/local/sbin/glusterfs
$ set args --acl --process-name fuse --volfile-server=10.193.189.153 --volfile-id=rep3_vol /mnt/rep3_vol
$ br main
glusterfs 开启debug.trace模块
开启设置
// 可以查看请求的是哪一个FOP
//客户端启用
gluster volume set volname debug.trace client
gluster volume set volname debug.log-file 1
// 在服务端启用
gluster volume set volname debug.trace posix
gluster volume set volname debug.log-file 1