Solved

Is there a list of commands I can use to check Gluster Heal Status?

  • 30 December 2020
  • 1 reply
  • 5819 views

Userlevel 1
Badge +6

I would like to keep an eye on gluster heal status. Is there a list of commands I can use to check Gluster Heal Status?

icon

Best answer by Mike Struening RETIRED 30 December 2020, 17:08

View original

1 reply

Userlevel 7
Badge +23

Hey Dan!

There sure is.

Here’s a list of helpful commands:

  • Check Heal Status of Gluster 
    • # gluster volume heal <volume name> info
  • The following command will count all entries for all Bricks in the Gluster 
    • # gluster volume heal <volume name> info | wc-l
  • The following command will omit all other fields and only list the amount "Entries" per Brick that are healing. 
    • # gluster volume heal <volume name> info | grep -i "Number of entries:" | grep -v "entries: 0"
  •  The following command will give you a total number of all heals across the Gluster
    • # gluster volume heal <volume name> info | grep entries | awk '{sum +=$4} END {print sum}'
  • The following command will give you entries per brick and number of entries that requires healing
    • # gluster volume heal <volume name> info | grep entries | sort | uniq -c
    • You can also further drill down on what Folder and gfid are part of the heal list using the following 
      • # gluster volume heal  <volume name>  info | egrep '(gfid|Folder)' | sort | uniq -c

If that answers your question, feel free to amrk this post as the correct answer.

Thanks!

Reply