No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V300R006C00 File System Feature Guide 12

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Managing and Maintaining DFSClient on the RHEL Clients

Managing and Maintaining DFSClient on the RHEL Clients

This section guides you through the management and maintenance of DFSClient on the RHEL client.

Checking Performance Statistics

This topic describes the procedure of checking the data transmission delay during a specific period.

Prerequisites

DFSClient has been enabled and used to mount an NFS share.

Procedure

  1. Run xnfs_perf_tool -s to track data transmission performance and collect statistics.
  2. Run touch /local_path/file to create a file in the mounted local directory.
  3. Read and write data in the file.
  4. Run xnfs_perf_tool -t /path/rawfile to stop collecting performance statistics and write the collected performance statistics into the rawfile file.

    NOTE:

    /path/rawfile: performance statistics file in /path. It can be an existing empty file in /path or a new file created automatically by the xnfs_perf_tool. If the new file has the same name as an existing file in /path, the new file will overwrite the existing file. Therefore, it is recommended that the name of rawfile be different with any existing file in /path.

  5. Run xnfs_perf_tool -p /path/rawfile to analyze the performance statistics collected in the rawfile file. Two log files rawfile.tracelog and awfile.tracesum are generated.

    NOTE:

    rawfile.tracelog records detailed performance analysis while awfile.tracesum summarizes the performance analysis.

  6. Run cat /path/rawfile.tracelog and cat /path/rawfile.tracesum to open the logs to view the performance statistics in the period.

    NOTE:

    You can run xnfs_perf_tool -h to obtain the command help information.

Example

[root@Client2 ~]# xnfs_perf_tool -s        //Enable the performance statistics function.
Start trace successfully, please use 'xnfs_perf_tool -t rawfile' to stop trace 
[root@Client2 ~]# touch /mnt/nfs/text     //Create a text file in the mounted directory /mnt/nfs.
[root@Client2 ~]# dd if=/dev/zero of=/mnt/nfs/text bs=1M count=10     //Read data in the text file.
10+0 records in 
10+0 records out 
10485760 bytes (10 MB) copied, 0.0960958 s, 109 MB/s 
[root@Client2 ~]# xnfs_perf_tool -t /mnt/nfs/rawfile        //Disable the performance statistics function and collect the statistics in the file.
Please use 'xnfs_perf_tool -p /mnt/nfs/rawfile' to generate the result 
[root@Client2 ~]# xnfs_perf_tool -p /mnt/nfs/rawfile       //Analyze the file to generate log files.
Parse the file(/mnt/nfs/rawfile) successfully, please check the result in  /mnt/nfs/rawfile.tracesum and /mnt/nfs/rawfile.tracelog 
[root@Client2 nfs]# cat /mnt/nfs/rawfile.tracelog
PAIR FID OP FLAG OFFSET LEN DURATION RETCODE RESERV1 RESERV2 
14072ff804c326d8 1464001 GetAttr 0 0 0 0 0 0 0 
14072ff96c3e58da 5f80001 Open 8941 0 0 0 0 0 0 
14072ff96c3e58da 5f80001 SetAttr 70 0 0 5859374 0 0 0 
14072ff96c3e58da 5f80001 Rpc 3 0 0 5859374 0 0 0 
14072ff96c97c108 5f80001 Close 0 0 0 0 0 0 0 
140730058c92331f 1464001 GetAttr 0 0 0 0 0 0 0 
140730058cafd210 5f80001 Rpc 2 0 0 1027013 0 0 0 
140730058d057ab9 5f80001 Open 8241 0 0 0 0 0 0 
140730058d057ab9 5f80001 SetAttr a068 0 0 5509375 0 0 0 
140730058d057ab9 5f80001 Rpc 3 0 0 5509375 0 0 0 
140730058d598bb8 5f80001 Write 1 0 100000 1105591 0 0 0 
140730058e1cbfc7 5f80001 Write 1 1048576 100000 0 0 0 0 
140730058e96f342 5f80001 Write 1 2097152 100000 0 0 0 0 
140730058f2f76c9 5f80001 Write 1 3145728 100000 0 0 0 0 
140730058fbaf73a 5f80001 Write 1 4194304 100000 0 0 0 0 
1407300590464692 5f80001 Write 1 5242880 100000 872566 0 0 0 
1407300590dce234 5f80001 Write 1 6291456 100000 0 0 0 0 
1407300591734246 5f80001 Write 1 7340032 100000 0 0 0 0 
1407300591f70535 5f80001 Write 1 8388608 100000 509266 0 0 0 
140730059280d699 5f80001 Write 1 9437184 100000 478399 0 0 0 
14073005930f4763 5f80001 Close 0 0 0 0 0 0 0 
14073009f7267226 1464001 GetAttr 0 0 0 0 0 0 0 
14073009f7455e30 5f60201 GetAttr 0 0 0 0 0 0 0 
[root@Client2 nfs]# cat /mnt/nfs/rawfile.tracesum
Syscall    Counts      Success     Failure     MaxLatency    AvgLatency     MaxRPCLatency    AvgRPCLatency    OperationPerSec 
Read        0           0           0           0              0              0                0                0             
Write       10          10          0           1105           296            0                0                10            
GetAttr     4           4           0           0              0              1027             256              4             
SetAttr     2           2           0           5859           5684           5859             5684             2             
Open        2           2           0           0              0              0                0                2             
Close       2           2           0           0              0              0                0                2             
ReadDir     0           0           0           0              0              0                0                0             
GetXattr    0           0           0           0              0              0                0                0             
SetXattr    0           0           0           0              0              0                0                0             
[root@Client2 ~]#

Maintaining Log Information

This topic describes how to maintain output log information of DFSClient on Linux client modules.

Prerequisites

The NFS protocol enhancement feature has been enabled.

Commands for Maintaining Log Information
  • Command for enabling log recording: rpcdebug -m nfs -s all
  • Command for disabling log recording: rpcdebug -m nfs -c all
NOTE:

rpcdebug is the log configuration command of the system. The default log level is warning and the enabled log type is debug.

Example

[root@Client2 nfs]# rpcdebug -m nfs -s all 
nfs        vfs dircache lookupcache pagecache proc xdr file root callback client mount fscache pnfs pnfs_ld 
[root@Client2 nfs]# rpcdebug -m nfs -c all 
nfs      <no flags set>
[root@Client2 nfs]# 

Querying Configuration Information

This section describes how to check the version, mounted directory, and established connections of DFSClient on the RHEL client.

Prerequisites

The NFS protocol enhancement feature has been enabled.

Procedure

Run xnfs_op_tool -a to check the version, mounted directory, and established connections of DFSClient.

NOTE:

You can run xnfs_op_tool -h to obtain the command help information.

Example

[root@Client2 nfs]# xnfs_op_tool -a 
The version of xnfs client : V300R005C00
mountinfo as follow: 
=============================================================== 
exportPath:    lisheng.com:/xnfs
mounted on:    /mnt/DFSclient
rsize:         1048576 bytes 
wsize:         1048576 bytes 
protoVers:     NFSv3 
readAhead:     --
isSync:        NO 
linkCnt:       6
srcIpCnt:      2 
srcIpArry:     192.168.60.133_192.168.60.134
dstIpCnt:      3 
dstIpArry:     10.10.70.46_10.10.70.45_10.10.70.47
Translation
Download
Updated: 2019-06-27

Document ID: EDOC1000122519

Views: 70694

Downloads: 145

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next