Looking for the Perfect Dashboard: InfluxDB, Telegraf and Grafana – Part XXVII (Monitoring ReFS and XFS (block-cloning and reflink)

Greetings friends, a new week is a week with a new dashboard, this is so, I would like to be able to offer you many more use cases, with many other technologies, but time is very limited and I only have some nights to prepare this.

Today we are going to see a topic that I have heard for at least 5 years, I mean to know and to know the amount of disk that we are using and saving, when we make use of technologies like ReFS, or XFS, together with Veeam Backup & Replication.

Once you have finished this tutorial, you will have something similar to this, it is better to give it several days or weeks to see the full potential:

A brief reminder about ReFS and XFS with Veeam Backup & Replication

I know you all read me when I publish, but just in case you missed one of these two entries, they are necessary for this Dashboard to work of course. We will have to have backups, with synthetic backups activated, going to a ReFS or XFS repository, I leave you the step by step here:

Diagram of REFS/XFS, InfluxDB and Grafana monitoring disk usage in Veeam Backup Repositories

Although I have already shown you in some occasions the diagram of how would be the monitoring using Grafana and InfluxDB, I leave you again the diagram, this time monitoring the backups in ReFS/XFS repositories:

Download, and configure the  veeam_refs_savings.ps1 script

First of all, we will have to download the magnificent blockstat.exe by Timothy Dewin, once downloaded, we put it in a folder and mark it as safe.

We will download the script that will make all this work in Microsoft Windows ReFS environments, we will download the latest version from the Github repository:

This PowerShell script has to be run from the Veeam Backup Repository where ReFS is enabled. We’ll have to edit the configuration parameters:

How to schedule the PowerShell script every 24 hours

I suppose that you want to know every day the disk consumption, as well as how much space you are saving using ReFS, etc. with what I am going to teach you how to create a programmed task every 24 hours.

Please select a name for your scheduled task, this is the one I’ve chosen: In the triggers, we’ll select that we want to run it every 24 hours:  In the actions, in program/script, we will select where we have Powershell, by default you can see the folder here, also in arguments we will select the path with the script included, and finally, in start in, we will select the folder: Let’s run it and see what happens:If we want to check very quickly that we already have information on InfluxDB, we can go to Grafana Explore and search within the table veeam_fastclone_stats:

Download, and configure the veeam_xfs_savings.sh script

Let’s download the script that will make all this work, we will download the latest version from the Github repository:

This shell script must be run from the server where we have the XFS volume. We will have to edit the configuration parameters:

Let’s make the script executable:

We will make sure we have jq installed, an apt-get install jq or yum install jq if we use CentOS:

Let’s run it as per usual ./veeam_xfs_savings.sh if everything went alright, we will she the next output:

Also, it would be nice to put it in the cron to run every 24 hours:

That’s all for now, let’s move to the next step.

Grafana Dashboards

I created a Dashboard from scratch by selecting the best requests to the database, finishing off colors, thinking about graphics, and how to display them, and everything is automated so that it fits our environment without any problem and without having to edit anything manually. The Dashboard can be found here, once imported, you can see all the graphics:

How to easily Import the Grafana Dashboard

So that you don’t have to waste hours configuring a new dashboard, and ingesting and debugging you want, I have already created four wonderful dashboards with everything necessary to monitor our environment in a very simple way, it will look like the image I showed you above.Select the name you want and enter the ID: 12881, which is the unique ID of the Dashboard, or the URL:

We’ll have everything popping up without any problem:
That’s all folks, if you want to follow the full Blog series about Grafana, InfluxDB, Telegraf, please click on the next links:

Author: jorgeuk

Father, writing in https://www.jorgedelacruz.es and https://jorgedelacruz.uk Blogger, Systems Engineer @veeam - vExpert 2014/2020 & NTC 2018/19

2 Thoughts

  1. Hi Jorge, for larger environments it would be nice to have the hostname included as well!
    Thanks for this great dash!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.