Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PLUGIN] Disk Location

Featured Replies

1 hour ago, itimpi said:

If you are rebuilding then all drives should be flashing as they are all used during a rebuild.

I never get multiple flashing.

Screenshot_20250118_155929.thumb.png.a579938d52bcab2a922737ccd5cfe86d.png

 

Screenshot_20250118_160310.thumb.png.304d74bc7b877c6af1017473aa4141c4.png

 

And it doesn't match the system, or actual drive rebuilding...

Screenshot_20250118_160032.png.664158ee26beab9e83ba55e59a450d24.png

  • Replies 1.6k
  • Views 249.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • olehj is the maintainer and it's his choice to do with the plugin what he sees fit.   It is, however, unusual to release to production a version that requires a beta OS release, instead of r

  • FlamongOle
    FlamongOle

    Update 2025.05.29 Commit #446 - BUG: Fatal error in page_system - causing furious rage in the forums :P Syntax error, misplaced parentheses 😅 @Mr Q I have an idea for you. Why don't you save your o

  • You guys please settle down.  The fact that sqlite support was in php in the first place was an oversight.  We never intended that a plugin would utilize a database application and honestly, I didn't

Posted Images

  • Author
2 hours ago, House Of Cards said:

This isn't the first time I noticed this, so I thought I'd ask...

This plugin sometimes shows the wrong disk during drive swaps, etc...  For example...  I took Drive 7 offline to "no device", shut down and put in a bigger drive, restarted and applied the new drive to Drive 7.  The system is currently rebuilding, but this plugin shows Drive 9 flashing, even though 7 is actually rebuilding...

 

Any ideas?

 

Have you run "Force Update All"? It might be required. I haven't noticed what you describe here, but would like to know if this will help it.

 

The Overhaul '25 will work differently that a force update all will be executed during boot again, but would like to know if there might be another issue.

31 minutes ago, FlamongOle said:

Have you run "Force Update All"? It might be required. I haven't noticed what you describe here, but would like to know if this will help it.

Is that safe during rebuild?  I got a few hours left...

 

I'd be happy to do it to let you know if you don't think it will affect the parity rebuild going on?

 

Edited by House Of Cards
Added additional information...

  • Author
18 minutes ago, House Of Cards said:

Is that safe during rebuild?  I got a few hours left...

 

It will only read SMART data and store them in the database. That shouldn't be any problem.

 

It will process smartctl -a and lsscsi -bg, none which should impact anything. At least I never heard of that situation before. Disk Location will never write to the disks themselves unless specifically informed so. But right now, there is nothing that will do it.

Edited by FlamongOle

5 minutes ago, FlamongOle said:

It will only read SMART data and store them in the database. That shouldn't be any problem.

Nope.  Worse.  LOL

 

Screenshot_20250118_171713.thumb.png.cc929aab6608b887a7b58c92d57e30b0.png

 

Screenshot_20250118_171822.png.b8ca17e3b62b2111f3434181e89a25f4.png

  • Author
8 minutes ago, House Of Cards said:

Nope.  Worse.  LOL

 

And the drive is not listed as "unassigned" in the plugin either? Maybe you need to allocate it to the tray now.

 

All this will be worked on when I get rid of the current database (hopefully)

The two missing are "unassigned" now, but I think it fixed itself after the rebuild was done, and/or another force update last time.  I'll see what it does.  It's nothing that matters much.  It can confuse you when you swap disks around, but I'm aware of it, so I don't pay it any mind during disk swaps.  Some others might think they removed the wrong drive and do something horrible though. 

 

Let's see if the next version fixes it.  I'll let you know what happens when the rebuild is done.

Thanks for the plugin.  👍

  • Author

Overhaul '25 part 2 preview! Developer Edition only!

 

Most of the plugin now works, but still not recommended for production use. This overhaul went a bit more extreme than first anticipated, SQLite is mostly gone! Just two more (vital) "functions" to fix before it is "entirely gone*"! *The backup/restore functionality will be backwards compatible with the SQLite database, and it should be automatically backed up during install.

 

During all SQL conversion tests the new system will calculate quite a bit faster, we'll see how the total turns out in the end. Will benchmark it closer to release.

 

Some info from github: 30 changed files with 3,448 additions and 4,237 deletions.

Overhaul '25 milestone: https://github.com/olehj/disklocation/milestone/4

 

Correction from "part 1" post: "With that it will be hourly SMART updates on active drives.", will be every 12th hour instead. Don't want to prevent drives from sleeping. The SMART+DB update will be forced upon boot and installations from now on, like the old days. Pure SMART updates will be written to /tmp (memory).

 

disklocation_oh25-p2-preview.png.91f96754507f5887ad4a06972662a7a1.png Shiny new button

 

The News:

  • There will be a single "Save" button to rule them all for the "Disk Tray Layout", instead of the annoying single button per group.
  • Colors will be worked on, and a custom group color will be added as well (it's half-way implemented).
  • Some minor and easy reading benchmark will be added, most likely with added history so you can see how it performs over time. It will be as easy as using hdparm, so don't expect anything super-fancy.
  • Update buttons in System will have three levels: SMART (updates only active spinning drives), Force SMART (will wake up sleeping drives and update all), Force SMART+DB (this will do a Force SMART including writing to the database files on the USB drive (or wherever you have installed Unraid).
  • A hell lot of code have been rewritten and lots of bugs fixed (and probably added some too!)
On 1/18/2025 at 5:39 PM, House Of Cards said:

The two missing are "unassigned" now, but I think it fixed itself after the rebuild was done, and/or another force update last time.  I'll see what it does.  It's nothing that matters much.  It can confuse you when you swap disks around, but I'm aware of it, so I don't pay it any mind during disk swaps.  Some others might think they removed the wrong drive and do something horrible though. 

 

Let's see if the next version fixes it.  I'll let you know what happens when the rebuild is done.

Thanks for the plugin.  👍

 

FYI...  After it rebuilt, I did a force update, and the disks were still unassigned.  I assigned them manually. 

  • Author
4 hours ago, House Of Cards said:

 

FYI...  After it rebuilt, I did a force update, and the disks were still unassigned.  I assigned them manually. 

It would never assign itself automatically. New drives must be assigned manually after force update. Even after Overhaul '25 will that remain a thing, but at least it will update itself during boot, so it's ready to be assigned in the list.

 

There's no secure way of knowing for sure where a disk is inserted, logical paths might even change during reboots. And then if it stays stable, removing a drive and inserting a new one might create a different path. Then if you replace or add more than one, where does each drive go? Then you decide to swap or move HBA/raid card positions, creating a lot of new mess. Implementing something like this would probably just be a guesswork at best. 

 

I have been looking into this earlier, trying to find something static, but it just can't be trusted.

I just started my new NAS in unraid 7.0.0 and installed Disk Location first thing. 

 

I can't seem to get any information about the drives to show up in the dashboard widget. Searching the thread, I see this has been an issue in the past but none of the solutions i've found have helped. 

 

Is there a way to get this working?

  • Author
53 minutes ago, Ootspunter said:

I just started my new NAS in unraid 7.0.0 and installed Disk Location first thing. 

 

I can't seem to get any information about the drives to show up in the dashboard widget. Searching the thread, I see this has been an issue in the past but none of the solutions i've found have helped. 

 

Is there a way to get this working?

What things?

 

Did you do a "force update all"? It's likely required on a fresh install. Current stable does not update during boot by default. This will be changed after Overhaul '25

1 hour ago, FlamongOle said:

What things?

 

Did you do a "force update all"? It's likely required on a fresh install. Current stable does not update during boot by default. This will be changed after Overhaul '25

Fair question! I installed disk location while my array was building for the first time. Once it was done was when I started tinkering in the Disk Location plugin. I just tried "force update all" and double checked on the installed plugins page that its up-to-date.

 

 

I'm still only seeing this on the dashboard widget. Is this all I'm supposed to see?image.png.abc4be51926ec631bc96e11a8ab848a4.png

  • Author
40 minutes ago, Ootspunter said:

Fair question! I installed disk location while my array was building for the first time. Once it was done was when I started tinkering in the Disk Location plugin. I just tried "force update all" and double checked on the installed plugins page that its up-to-date.

 

I'm still only seeing this on the dashboard widget. Is this all I'm supposed to see?

 

That will just show you a quick overview with a combined "LED". The green background color might hide the "Green LED", but if you "hover" the left side of the boxes (where the gray LEDs are), you should see some summary of each drive.

 

Otherwise, rest will be seen at the plugin page click the cogwheel or Tools -> Disk Location

 

If you mean you missing drives, have you assigned them after force update?

  • Author

Update 2025.01.23+24 (this is NOT Overhaul '25)

 

  • Commit #352 - FEATURE: Disk Location plugin time benchmark added, but must be executed manually by entering ?benchmark=1 in the address field.
  • Commit #349 - MINOR: A few CSS fixes regarding the LEDs, used from the Overhaul '25.

Edited by FlamongOle
Combined Update .23 and .24 as they are minor

  • Author

Update 2025.01.24 - Overhaul '25 alpha release

  • First release to be considered stable with all conversions in place.
  • All core functionality has been done and tested.
  • This release was made for being the most similar to the standard master branch in features in regards of being Overhaul '25.
  • The speed improvements over 2024-edition is about over 2x as fast.

Only by manual installation with the development URL: https://raw.githubusercontent.com/olehj/disklocation/devel/disklocation-devel.plg

 

The release will be limited for Unraid 6.12 and later. Earlier versions will need the 2024-edition to be installed.

Edited by FlamongOle

On 1/20/2025 at 5:08 PM, FlamongOle said:

 

That will just show you a quick overview with a combined "LED". The green background color might hide the "Green LED", but if you "hover" the left side of the boxes (where the gray LEDs are), you should see some summary of each drive.

 

Otherwise, rest will be seen at the plugin page click the cogwheel or Tools -> Disk Location

 

If you mean you missing drives, have you assigned them after force update?

 

Ah, I understand!

 

It seems I misunderstood what was available on the dashboard view. I had in my head that the info on the plugin page could be seen on the dashboard. Not sure where I got that idea, but thank you for clarifying (and hopefully having this interaction in the thread clears up confusion for any other new users)

The behaviour of the led changed.

Now if a disk is in spun down mode, in the widget on the home screen the led is still green (if led mode is set to static), which in the past it was grey which is more useful as it mirrors unraid leds behaviour in main page.

If the led is set to dynamic, the led is flashing between green and gray.

Just two questions:

 

1) why is the background of this light green LED light gray?

    Blinking is almost undetectable! Background should be black...

    Light green on light gray is like white eagle on white background 🤣

2) What is this blinking for?

 

Thanks 👍

Edited by Zonediver

  • Author

Update 2025.01.26

  • Commit #349 - MINOR: A few CSS fixes regarding the LEDs, and some color adjustments.

 

@SuperMario86 the green LED on Standby was a bug, it's now fixed.

 

@Zonediver 1) it was chosen back in the days as "black" did look too artifical. I have now changed it to dark gray. 2) Some like blinking, some don't. It's your own choice anyway, choose either "static" or "dynamic". Dynamic has been bugged for a while, but should be fixed now.

 

Changing of dynamic/static LED requires forced refresh to change (CTRL+F5), this seem to have been fixed with Overhaul '25, but will not be fixed in current release.

1 hour ago, FlamongOle said:

it was chosen back in the days as "black" did look too artifical. I have now changed it to dark gray. 2) Some like blinking, some don't. It's your own choice anyway, choose either "static" or "dynamic". Dynamic has been bugged for a while, but should be fixed now.

 

Thanks for this change - its way more "contrasty" 👍

Edited by Zonediver

@FlamongOle  This is going to be really nit-picky and I apologize.  I like the idea of the standby blink for a hard drive but the flash rate in my opinion is too fast.  It looks like it is on for 1 second and off for 1 second.  Is it possible for you to change it to on for 2 seconds and off for 3 seconds.  I think that might look better, if not I understand.  Thank you for you work on this plugin I have been using it for years on my systems.  Keep up the great work!

  • Author

Update 2025.01.27

  • Commit #349 - MINOR: Some additional minor adjustments for the LEDs.

 

@SShadow Closer to what you might have wanted, but I didn't like the look of 2/3s.

 

Changes:

  • green blink is more calm, ease-in-out, 4s
  • yellow blink is double-blinking and stays on 80%, linear, 3s
  • red blink is panic blinking, linear 0.5s
  • blue blink involves green light, blue on 75%, 3s 

@FlamongOle I updated to 2025.01.27.  The LED changes look great!  The fade and timing for standby are spot on.  Thank you!

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.