Skip to main content
Solved

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

  • December 30, 2020
  • 1 reply
  • 7964 views

Forum|alt.badge.img+5

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?

Best answer by Mike Struening

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!

1 reply

Mike Struening
Vaulter
Forum|alt.badge.img+22

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!