Skip to content

Commit

Permalink
Updated license file, added more details and sample collection and ou…
Browse files Browse the repository at this point in the history
…tput to README
  • Loading branch information
laddp committed Sep 27, 2017
1 parent 87af371 commit befc2f6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
gluster-tools
Copyright (C) 2017 Patrick Ladd

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

{project} Copyright (C) {year} {fullname}
gluster-tools Copyright (C) 2017 Patrick Ladd
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,24 @@ My collection of handy Gluster tools
* Parse output for two geo-replication status reports
* Report the time difference between the two, as well as the progress rates
* Report any errors identified
* Timestamp defaults to the modification time of file, overridden by a timestamp of the format yyyy-mm-dd hh:mm:ss inside the file on a line by itself
* Sample of how to collect data:
~~~
gluster volume geo-replication mastervol ssh://node-5::slavevol status > mastervol.status
date +"%F %T" >> mastervol.status
~~~
* Sample of running the tool:
~~~
# geo-rep-status-compare.py 4x3 status_t2 status_t1
===== Times =====
F1 time: 2017-09-12 14:14:00
F2 time: 2017-09-08 12:36:00
Elapsed time: 4 days, 1:38:00
[W] Warning: Previous active count ( 3 ) not equal to subvolume count ( 4 )
[W] Warning: Some previous bricks not in Active/Passive status:
Brick: ('node-1', '/brick/mastervol') Status: Faulty
('node-1', '/brick/mastervol') not matched in be4
Node: ('node-2', '/brick/mastervol') Current: 2017-09-12 14:13:22 ||| Behind: 0:00:38 ||| Progress: 4 days, 1:37:46 ||| Progress Ratio: 1.0000
Node: ('node-3', '/brick/mastervol') Current: 2017-09-12 14:13:20 ||| Behind: 0:00:40 ||| Progress: 4 days, 1:37:49 ||| Progress Ratio: 1.0000
Node: ('node-4', '/brick/mastervol') Current: 2017-09-12 14:13:16 ||| Behind: 0:00:44 ||| Progress: 4 days, 1:37:40 ||| Progress Ratio: 0.9999
~~~

0 comments on commit befc2f6

Please sign in to comment.