Persistent drive labels


Recommended Posts

What's everyone doing to ensure persistent drive labels for reporting (Grafana), etc. ?

 

My sdg and sdh swapped labels with sdi and sdj. I thought I could take advantage of hotswap to correct it - DON'T DO THIS (I'm rebuilding parity now because of it.)

 

So is there a fix or do we just accept some level of randomness?

Link to comment

Back from work. :)

I remembered correctly, not sure if it applies to everything you want to do.

Quote

To Use Static Drive Serial Numbers in Grafana (For DiskIO Queries) Do the Following:

Edit telegraf.conf > [[inputs.diskio]] > Add device_tags = ["ID_SERIAL"] > Use ID_SERIAL Flag in Grafana

Now Upon Booting, You Don't Have to Worry About SD* Mounts Changing (So Your Graphs Don't Get Messed Up!)

You Can Also Set Overrides on the Query Fields to Map the Serial Number to a Common Disk Name Like "DISK01" etc.

 

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.