Code Monkey home page Code Monkey logo

gluster-tools's Introduction

Gluster Tools

My collection of handy Gluster tools

  • geo-rep-status-compare.py: Gluster geo-replication status check comparison tool
    • 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

gluster-tools's People

Contributors

laddp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gluster-tools's Issues

Support --xml formatted input

Support output from gluster volume geo-replication status --xml style output, to wit:

gluster volume geo-replication mastervol rhgs322-5::slavevol status --xml

0 0 mastervol 4a5853b2-2c73-4882-a1e0-e3b3829216c3:ssh://rhgs322-5::slavevol:fe8710dd-8bba-4fa6-a1c7-c953cf211076 rhgs322-1 /mnt/brick root rhgs322-5::slavevol N/A Faulty N/A N/A N/A N/A N/A N/A 4a5853b2-2c73-4882-a1e0-e3b3829216c3 N/A N/A N/A rhgs322-3 /mnt/brick root rhgs322-5::slavevol rhgs322-5 Passive N/A N/A N/A N/A N/A N/A d565720e-2f28-4801-8795-84b313a3df68 N/A N/A N/A rhgs322-2 /mnt/brick root rhgs322-5::slavevol N/A Faulty N/A N/A N/A N/A N/A N/A d02d4649-578b-4926-9d37-84b8ab6f3903 N/A N/A N/A rhgs322-4 /mnt/brick root rhgs322-5::slavevol rhgs322-6 Active Changelog Crawl 0 0 0 0 N/A 75ae1e54-c514-4c78-a75e-fc39b7e82145 2017-09-19 21:00:22 N/A N/A

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.