//===========================================================
服务器端的日志配置
(1)常规排错可查看日志文件 /var/log/messages 和 /tmp/pvfs2-server.log
(2) 配置更详细的日志
[root@node15 share]# cat /etc/pvfs2-fs.conf
<Defaults>
UnexpectedRequests 50
EventLogging none
EnableTracing no
LogStamp datetime
BMIModules bmi_tcp
FlowModules flowproto_multiqueue
PerfUpdateInterval 1000
ServerJobBMITimeoutSecs 30
ServerJobFlowTimeoutSecs 30
ClientJobBMITimeoutSecs 300
ClientJobFlowTimeoutSecs 300
ClientRetryLimit 5
ClientRetryDelayMilliSecs 2000
PrecreateBatchSize 512
PrecreateLowThreshold 256
StorageSpace /pvfs2-storage-space
LogFile /tmp/pvfs2-server.log
</Defaults>
<Aliases>
Alias node15 tcp://node15:3334
Alias node16 tcp://node16:3334
</Aliases>
<Filesystem>
Name pvfs2-fs
ID 1797584464
RootHandle 1048576
FileStuffing no
<MetaHandleRanges>
Range node15 3-3074457345618258603
</MetaHandleRanges>
<DataHandleRanges>
Range node15 3074457345618258604-6148914691236517204
Range node16 6148914691236517205-9223372036854775805
</DataHandleRanges>
<StorageHints>
TroveSyncMeta yes
TroveSyncData no
TroveMethod alt-aio
</StorageHints>
</Filesystem>
(3) 若想输出更详细的日志,可在 /etc/pvfs2-fs.conf中配置
将 EventLogging none修改为:
EventLogging storage,network,server
//这样可以记录来自storage subsystem, the network subsystem, server state machines的日志
//======================================================
客户端的日志配置
(1)可以在环境变量中配置,或者直接修改环境变量文件
setenv PVFS2_DEBUGMASK client,network
setenv PVFS2_DEBUGFILE /tmp/pvfs2_debug_info//若想将client端debug信息重定向(append)
这将PVFS2_DEBUGMASK中设置的debug选项信息输出到/tmp/pvfs2_debug_info,而不再与client端程序的输出混合在一起
(2)设置kmod的日志信息(在pvfs2-client-core启动前设置)
setenv PVFS2_KMODMASK file, inode
(3)kmod子系统的错误诊断信息先被写入系统ring buffer,最后写入kernel logs。
设置kmod的诊断信息级别,例如
insmod pvfs2.ko gossip_debug_mask=<diagnostic level>
The diagnostic level will be a bitwise OR of values specified in pvfs2-debug.h.
服务器端的日志配置
(1)常规排错可查看日志文件 /var/log/messages 和 /tmp/pvfs2-server.log
(2) 配置更详细的日志
[root@node15 share]# cat /etc/pvfs2-fs.conf
<Defaults>
UnexpectedRequests 50
EventLogging none
EnableTracing no
LogStamp datetime
BMIModules bmi_tcp
FlowModules flowproto_multiqueue
PerfUpdateInterval 1000
ServerJobBMITimeoutSecs 30
ServerJobFlowTimeoutSecs 30
ClientJobBMITimeoutSecs 300
ClientJobFlowTimeoutSecs 300
ClientRetryLimit 5
ClientRetryDelayMilliSecs 2000
PrecreateBatchSize 512
PrecreateLowThreshold 256
StorageSpace /pvfs2-storage-space
LogFile /tmp/pvfs2-server.log
</Defaults>
<Aliases>
Alias node15 tcp://node15:3334
Alias node16 tcp://node16:3334
</Aliases>
<Filesystem>
Name pvfs2-fs
ID 1797584464
RootHandle 1048576
FileStuffing no
<MetaHandleRanges>
Range node15 3-3074457345618258603
</MetaHandleRanges>
<DataHandleRanges>
Range node15 3074457345618258604-6148914691236517204
Range node16 6148914691236517205-9223372036854775805
</DataHandleRanges>
<StorageHints>
TroveSyncMeta yes
TroveSyncData no
TroveMethod alt-aio
</StorageHints>
</Filesystem>
(3) 若想输出更详细的日志,可在 /etc/pvfs2-fs.conf中配置
将 EventLogging none修改为:
EventLogging storage,network,server
//这样可以记录来自storage subsystem, the network subsystem, server state machines的日志
//======================================================
客户端的日志配置
(1)可以在环境变量中配置,或者直接修改环境变量文件
setenv PVFS2_DEBUGMASK client,network
setenv PVFS2_DEBUGFILE /tmp/pvfs2_debug_info//若想将client端debug信息重定向(append)
这将PVFS2_DEBUGMASK中设置的debug选项信息输出到/tmp/pvfs2_debug_info,而不再与client端程序的输出混合在一起
(2)设置kmod的日志信息(在pvfs2-client-core启动前设置)
setenv PVFS2_KMODMASK file, inode
(3)kmod子系统的错误诊断信息先被写入系统ring buffer,最后写入kernel logs。
设置kmod的诊断信息级别,例如
insmod pvfs2.ko gossip_debug_mask=<diagnostic level>
The diagnostic level will be a bitwise OR of values specified in pvfs2-debug.h.