`lfs check` misleading documentation
Hello,
I've found that lfs check command documentation and arguments are misleading, it is used to check targets, not servers, as documentation states (or am I wrong?).
I didn't found the better place for patches or discussions (can't find how to register in Jira), so I propose a patch here.
I'll be glad if someone can give me the right direction for such cases.
From 2aaf4fa4a12ce38d283725410f4f7d0f3b1488ab Mon Sep 17 00:00:00 2001
From: George Melikov <[email protected]>
Date: Fri, 20 Apr 2018 15:27:00 +0300
Subject: [PATCH] Fix lfs check documentation and arguments
--- lustre/doc/lfs.1 | 8 +++++--- lustre/utils/lfs.c | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-)
lustre/doc/lfs.1 +5 -3
@@ -7,7 +7,7 @@ lfs \- client utility for Lustre-specific file layout and other attributes .br .B lfs changelog_clear <mdtname> <id> <endrec> .br -.B lfs check <mds|osts|servers> +.B lfs check <mds|mdts|osts|all|servers> .br .B lfs data_version [-n] \fB<filename>\fR .br
@@ -151,8 +151,10 @@ interest to a particular consumer <id>, potentially allowing the MDT to free up disk space. An <endrec> of 0 indicates the current last record. Changelog consumers must be registered on the MDT node using \fBlctl\fR. .TP -.B check -Display the status of MDS or OSTs (as specified in the command) or all the servers (MDS and OSTs) +.B check <mds|mdts|osts|all|servers> +Check and display the status of MDTs or OSTs (as specified in the command) +or all (MDTs and OSTs). \fBmds\fR and \fBservers\fR arguments are equal to +\fBmdts\fR and \fBall\fR, respectively, and remain for backward compatibility only. .TP .B data_version [-n] <filename> Display current version of file data. If -n is specified, data version is read
lustre/utils/lfs.c +2 -2
@@ -5152,9 +5152,9 @@ static int lfs_check(int argc, char **argv)if (strcmp (argv[1 ],"osts" ) ==0 ) {strcpy (obd_types[0 ],"osc" ); - }else if (strcmp (argv[1 ],"mds" ) ==0 ) { + }else if (strcmp (argv[1 ],"mds" ) ==0 ||strcmp (argv[1 ],"mdts" ) ==0 ) {strcpy (obd_types[0 ],"mdc" ); - }else if (strcmp (argv[1 ],"servers" ) ==0 ) { + }else if (strcmp (argv[1 ],"servers" ) ==0 ||strcmp (argv[1 ],"all" ) ==0 ) { num_types =2 ;strcpy (obd_types[0 ],"osc" );strcpy (obd_types[1 ],"mdc" );
Signature · 7 lines
2.14.2 ____________________________________ Sincerely, George Melikov, Tel. 7-915-278-39-36 Skype: georgemelikov
Jones
George
If you find apparent errors in the manual the place to register this is the Lustre Documentation project - https://jira.hpdd.intel.com/projects/LUDOC . I have set you up with a JIRA account - you should have received an automated email with login credentials. Unfortunately we have removed the self registration option recently after the site was targeted by spammers and instead there are detailed of an alias to send a request for an account.
Peter
Quoted 10 lines · lustre-devel on behalf of George Melikov
Hello,
I've found that
lfs checkcommand documentation and arguments are misleading, it is used to check targets, not servers, as documentation states (or am I wrong?).I didn't found the better place for patches or discussions (can't find how to register in Jira), so I propose a patch here.
I'll be glad if someone can give me the right direction for such cases.
From 2aaf4fa4a12ce38d283725410f4f7d0f3b1488ab Mon Sep 17 00:00:00 2001
Quoted 63 lines
From: George Melikov <[email protected]>
Date: Fri, 20 Apr 2018 15:27:00 +0300
Subject: [PATCH] Fixlfs checkdocumentation and arguments---
lustre/doc/lfs.1 | 8 +++++---lustre/utils/lfs.c| 4 ++--2 files changed, 7 insertions(+), 5 deletions(-)lustre/doc/lfs.1 +0
-0@@ -7,7 +7,7 @@ lfs \- client utility for Lustre-specific file layout and other attributes.br
.B lfschangelog_clear<mdtname> <id> <endrec>
.br-.B lfs check <mds|osts|servers> +.B lfs check <mds|mdts|osts|all|servers>.br
.B lfsdata_version[-n] \fB<filename>\fR
.brlustre/doc/lfs.1 +0
-0@@ -151,8 +151,10 @@ interest to a particular consumer <id>, potentially allowing the MDT tofree up disk space. An <endrec> of 0 indicates the current last record. Changelog consumers must be registered on the MDT node using \fBlctl\fR. .TP
-.B checklustre/doc/lfs.1 +4
-1-Display the status of MDS or OSTs (as specified in the command) or all the servers (MDS and OSTs) +.B check <mds|mdts|osts|all|servers> +Check and display the status of MDTs or OSTs (as specified in the command) +or all (MDTs and OSTs). \fBmds\fR and \fBservers\fR arguments are equal to +\fBmdts\fR and \fBall\fR, respectively, and remain for backward compatibility only..TP
.Bdata_version[-n] <filename>
Display current version of file data. If -n is specified, data version is readlustre/utils/lfs.c +2
-2@@ -5152,9 +5152,9 @@ static int lfs_check(int argc, char **argv)if (strcmp (argv[1 ],"osts" ) ==0 ) {strcpy (obd_types[0 ],"osc" ); - }else if (strcmp (argv[1 ],"mds" ) ==0 ) { + }else if (strcmp (argv[1 ],"mds" ) ==0 ||strcmp (argv[1 ],"mdts" ) ==0 ) {strcpy (obd_types[0 ],"mdc" ); - }else if (strcmp (argv[1 ],"servers" ) ==0 ) { + }else if (strcmp (argv[1 ],"servers" ) ==0 ||strcmp (argv[1 ],"all" ) ==0 ) { num_types =2 ;strcpy (obd_types[0 ],"osc" );strcpy (obd_types[1 ],"mdc" );Signature · 11 lines
2.14.2 ____________________________________ Sincerely, George Melikov, Tel. 7-915-278-39-36 Skype: georgemelikov _______________________________________________ lustre-devel mailing list lustre-devel at lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org
Dilger
George, thanks for the patches.
Note that despite Peter's comments, the right place for this ticket is in the Lustre (LU) project, because it is a change that needs to be applied to the Lustre source tree.
For issues with the Lustre User Manual the right project is indeed LUDOC as Peter suggested.
If you are feeling particularly adventurous, you could split off the "lfs check" command into its own "lfs-check.1" man page, as is being done with other commands such as "lfs-setstripe.1", etc.
This allows more space to describe each command and all the arguments, as well as provide examples.
Cheers, Andreas
Quoted 76 lines · George Melikov
Hello,
I've found that
lfs checkcommand documentation and arguments are misleading, it is used to check targets, not servers, as documentation states (or am I wrong?).I didn't found the better place for patches or discussions (can't find how to register in Jira), so I propose a patch here.
I'll be glad if someone can give me the right direction for such cases.
From
2aaf4fa4a12ce38d283725410f4f7d0f3b1488abMon Sep 17 00:00:00 2001
From: George Melikov <[email protected]>
Date: Fri, 20 Apr 2018 15:27:00 +0300
Subject: [PATCH] Fixlfs checkdocumentation and arguments---
lustre/doc/lfs.1 | 8 +++++---lustre/utils/lfs.c| 4 ++--2 files changed, 7 insertions(+), 5 deletions(-)lustre/doc/lfs.1 +0
-0@@ -7,7 +7,7 @@ lfs \- client utility for Lustre-specific file layout and other attributes.br
.B lfschangelog_clear<mdtname> <id> <endrec>
.br-.B lfs check <mds|osts|servers> +.B lfs check <mds|mdts|osts|all|servers>.br
.B lfsdata_version[-n] \fB<filename>\fR
.brlustre/doc/lfs.1 +0
-0@@ -151,8 +151,10 @@ interest to a particular consumer <id>, potentially allowing the MDT tofree up disk space. An <endrec> of 0 indicates the current last record. Changelog consumers must be registered on the MDT node using \fBlctl\fR. .TP
-.B checklustre/doc/lfs.1 +4
-1-Display the status of MDS or OSTs (as specified in the command) or all the servers (MDS and OSTs) +.B check <mds|mdts|osts|all|servers> +Check and display the status of MDTs or OSTs (as specified in the command) +or all (MDTs and OSTs). \fBmds\fR and \fBservers\fR arguments are equal to +\fBmdts\fR and \fBall\fR, respectively, and remain for backward compatibility only..TP
.Bdata_version[-n] <filename>
Display current version of file data. If -n is specified, data version is readlustre/utils/lfs.c +2
-2@@ -5152,9 +5152,9 @@ static int lfs_check(int argc, char **argv)if (strcmp (argv[1 ],"osts" ) ==0 ) {strcpy (obd_types[0 ],"osc" ); - }else if (strcmp (argv[1 ],"mds" ) ==0 ) { + }else if (strcmp (argv[1 ],"mds" ) ==0 ||strcmp (argv[1 ],"mdts" ) ==0 ) {strcpy (obd_types[0 ],"mdc" ); - }else if (strcmp (argv[1 ],"servers" ) ==0 ) { + }else if (strcmp (argv[1 ],"servers" ) ==0 ||strcmp (argv[1 ],"all" ) ==0 ) { num_types =2 ;strcpy (obd_types[0 ],"osc" );strcpy (obd_types[1 ],"mdc" );Signature · 11 lines
2.14.2 ____________________________________ Sincerely, George Melikov, Tel. 7-915-278-39-36 Skype: georgemelikov _______________________________________________ lustre-devel mailing list lustre-devel at lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org
Quoted 10 lines
George, thanks for the patches.
Note that despite Peter's comments, the right place for this ticket is in the Lustre (LU) project, because it is a change that needs to be applied to the Lustre source tree.
For issues with the Lustre User Manual the right project is indeed LUDOC as Peter suggested.
If you are feeling particularly adventurous, you could split off the "lfs check" command into its own "lfs-check.1" man page, as is being done with other commands such as "lfs-setstripe.1", etc.
This allows more space to describe each command and all the arguments, as well as provide examples.
Just to let you know I have merged George's fix into the patch
https://review.whamcloud.com/#/c/31618.
Quoted 80 lines
Quoted 75 lines
Hello,
I've found that
lfs checkcommand documentation and arguments are misleading, it is used to check targets, not servers, as documentation states (or am I wrong?).I didn't found the better place for patches or discussions (can't find how to register in Jira), so I propose a patch here.
I'll be glad if someone can give me the right direction for such cases.
From
2aaf4fa4a12ce38d283725410f4f7d0f3b1488abMon Sep 17 00:00:00 2001
From: George Melikov <[email protected]>
Date: Fri, 20 Apr 2018 15:27:00 +0300
Subject: [PATCH] Fixlfs checkdocumentation and arguments---
lustre/doc/lfs.1 | 8 +++++---lustre/utils/lfs.c| 4 ++--2 files changed, 7 insertions(+), 5 deletions(-)lustre/doc/lfs.1 +0
-0@@ -7,7 +7,7 @@ lfs \- client utility for Lustre-specific file layout and other attributes.br
.B lfschangelog_clear<mdtname> <id> <endrec>
.br-.B lfs check <mds|osts|servers> +.B lfs check <mds|mdts|osts|all|servers>.br
.B lfsdata_version[-n] \fB<filename>\fR
.brlustre/doc/lfs.1 +0
-0@@ -151,8 +151,10 @@ interest to a particular consumer <id>, potentially allowing the MDT tofree up disk space. An <endrec> of 0 indicates the current last record. Changelog consumers must be registered on the MDT node using \fBlctl\fR. .TP
-.B checklustre/doc/lfs.1 +4
-1-Display the status of MDS or OSTs (as specified in the command) or all the servers (MDS and OSTs) +.B check <mds|mdts|osts|all|servers> +Check and display the status of MDTs or OSTs (as specified in the command) +or all (MDTs and OSTs). \fBmds\fR and \fBservers\fR arguments are equal to +\fBmdts\fR and \fBall\fR, respectively, and remain for backward compatibility only..TP
.Bdata_version[-n] <filename>
Display current version of file data. If -n is specified, data version is readlustre/utils/lfs.c +2
-2@@ -5152,9 +5152,9 @@ static int lfs_check(int argc, char **argv)if (strcmp (argv[1 ],"osts" ) ==0 ) {strcpy (obd_types[0 ],"osc" ); - }else if (strcmp (argv[1 ],"mds" ) ==0 ) { + }else if (strcmp (argv[1 ],"mds" ) ==0 ||strcmp (argv[1 ],"mdts" ) ==0 ) {strcpy (obd_types[0 ],"mdc" ); - }else if (strcmp (argv[1 ],"servers" ) ==0 ) { + }else if (strcmp (argv[1 ],"servers" ) ==0 ||strcmp (argv[1 ],"all" ) ==0 ) { num_types =2 ;strcpy (obd_types[0 ],"osc" );strcpy (obd_types[1 ],"mdc" );Signature · 11 lines
2.14.2 ____________________________________ Sincerely, George Melikov, Tel. 7-915-278-39-36 Skype: georgemelikov _______________________________________________ lustre-devel mailing list lustre-devel at lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org_______________________________________________
lustre-devel mailing list
lustre-devel at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org