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

  • Author
1 hour ago, LSG501 said:

I've waited around an hour and not seen it change.....I can also physically hear my drive spin up/down and they're set to spin down after 2 hours of inactivity.  I've also used the commands on the array page to spin up and down the array. 

 

I'll check the new update to see if it fixes it. 

 

Also not sure why standby LED needs to be cached, can't it just pull the data like the array panel on the dashboard does, that's pretty much real time for each drive. 

It uses that info for not updating too much at once and limiting execution time of scripts. However, it sort of do pull directly from Unraid, but due to earlier incompatibilities before ZFS was really an official thing, Disk Location had to grab it manually.

 

Earlier it got everything from Unraid (and it still do), but for ZFS devices, it will grab to old way as that was not supported pre-ZFS era. Looks like this is the default now, and this might be overridden by the cached status rather than direct.

 

Added:

I have altered the ways the LED's gets their data, and will prioritize different. Disk Location has since its supported ZFS gathered the pool state, and this is displayed as LED's over Unraid's own priority. This is still the case, but it should gather standby LED's more directly by default in next update.

Edited by FlamongOle
More info

  • Replies 1.7k
  • Views 250.2k
  • 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

Update 2025.02.17b

  • Commit #387 - BUG: LEDs not always in standby. Altered how they are displayed without losing the ZFS state display priority. Also added separate Disk Location Recovery page under Tools -> Disk Utilities.

 

 

disklocation_system_recovery.png.eef7265012d3eafe802c056dbba8da5b.png

Edited by FlamongOle
attached screenshot

I also had the issue where all my drives disappeared. I deleted the files mentioned by JLKunka, uninstalled the plugin. Reinstalled the plugin. Restored from backup, then did the Tools > Disk Location - Recovery option and clicked "Force SMART+DB" to get back to a functional state. Upgraded from about a month old version of disk location to 2025.02.17b caused this issue.

  • Author

Update 2025.02.17c

  • Commit #389 - FEATURE: Added tray layout orientation. Made it possible to modify the dashboard float. Choices: left, right and "stack" (none).

@ban at least closer to what you asked, set it to "stack" and you will get the tray layouts stacked on top of each other instead of side by side.

  • Author
15 minutes ago, xantari said:

I also had the issue where all my drives disappeared. I deleted the files mentioned by JLKunka, uninstalled the plugin. Reinstalled the plugin. Restored from backup, then did the Tools > Disk Location - Recovery option and clicked "Force SMART+DB" to get back to a functional state. Upgraded from about a month old version of disk location to 2025.02.17b caused this issue.

 

I have tried to replicate this issue, but whatever I try, even by refreshing the page during the install converts the SQLite database correctly to JSON.

 

I start from scratch by SQLite file, I pull one and one file away etc. Can't find it with current info.

 

I need PHP log from this, and also likely the content of the JSON files and the Disk Location debug log if possible (can be enabled in the recovery page of Disk Location).

Hello :)

I have a question regarding the retrieving of the hot and max temps for specific drives. For me it looks like the plugin is "just" getting the information of those temps from the global disk setting "Default ... disk temperature threshold".
Issue is currently for me, that I have also configured different temps for nvme and ssd drives which are stored in different unraid attributes like "Default ... SSD temperature threshold" or for nvme drives "... NVME temperature threshold" directly in smart settings.
Unfortunately, this leads to the issue that my nvme and ssd drives are mostly give me warnings because of the warning temps for usual hdds.
It would be great if the plugin could retrieve the correct temps for a specific drive type :)

  • Author
6 minutes ago, s11 said:

Hello :)

I have a question regarding the retrieving of the hot and max temps for specific drives. For me it looks like the plugin is "just" getting the information of those temps from the global disk setting "Default ... disk temperature threshold".
Issue is currently for me, that I have also configured different temps for nvme and ssd drives which are stored in different unraid attributes like "Default ... SSD temperature threshold" or for nvme drives "... NVME temperature threshold" directly in smart settings.
Unfortunately, this leads to the issue that my nvme and ssd drives are mostly give me warnings because of the warning temps for usual hdds.
It would be great if the plugin could retrieve the correct temps for a specific drive type :)

 

I was actually not aware that it exists a global default SSD setting until now. Plugin uses the old regular default and drive specific now. Thanks for the heads-up. Looking into it tomorrow.

  • Author
33 minutes ago, xantari said:

I also had the issue where all my drives disappeared. I deleted the files mentioned by JLKunka, uninstalled the plugin. Reinstalled the plugin. Restored from backup, then did the Tools > Disk Location - Recovery option and clicked "Force SMART+DB" to get back to a functional state. Upgraded from about a month old version of disk location to 2025.02.17b caused this issue.

 

Also, you could provide me with the SQLite database that was failing (should be the latest from from "backup")

 

This file might help me investigate it, but not 100% as you can restore it manually. But it might be worth a shot.

 

Yes, it contains serial numbers and whatever you wrote in the comments etc.

  • Author

Update 2025.02.17 a-d

  • Commit #391 - d) IMPROVEMENT: Added global SSD temp variables. Also fixed a minor variable bug related to SMART status.
  • Commit #389 - c) FEATURE: Added tray layout orientation. Made it possible to modify the dashboard float. Choices: left, right and "stack" (none).
  • Commit #387 - b) BUG: LEDs not always in standby. Altered how they are displayed without losing the ZFS state display priority. Also added separate Disk Location Recovery page under Tools -> Disk Utilities.
  • Commit #385 - a) BUG: Fixed a bug that could cause page to not load. Added System tab to be able to be used as standalone, using this address: http://[serveraddr]/plugins/disklocation/pages/page_system.php

Hi :)
Thank you a lot for the improvements.
But I guess there is one circumstance not taken into account or when I read it in the code commits correctly. Because there is also a separate setting for hot and max temps just for nvme drives. I don't know if its retrievable via the global var scope. Its located in UI code here -> https://github.com/unraid/webgui/blob/9126eb419ac67e8fac12ff4ddba82885a91038c6/emhttp/plugins/dynamix/nchan/update_2#L180C5-L180C12

You can find it in the unraid UI not in global disk settings but in smart settings of an nvme drive only:

grafik.thumb.png.d3c7118a149de0fb61cf23ce88569ae5.png

  • Author
31 minutes ago, s11 said:

Hi :)
Thank you a lot for the improvements.
But I guess there is one circumstance not taken into account or when I read it in the code commits correctly. Because there is also a separate setting for hot and max temps just for nvme drives. I don't know if its retrievable via the global var scope. Its located in UI code here -> https://github.com/unraid/webgui/blob/9126eb419ac67e8fac12ff4ddba82885a91038c6/emhttp/plugins/dynamix/nchan/update_2#L180C5-L180C12

You can find it in the unraid UI not in global disk settings but in smart settings of an nvme drive only:

grafik.thumb.png.d3c7118a149de0fb61cf23ce88569ae5.png

 

There's no (visible) global for NVMe specific devices, but I saw that NVMe does not grab the SSD temps as default from Disk Settings (maybe an Unraid bug).

 

However, while testing this, the plugin uses global SSD for NVMe as well, except if NVMe is defined per device. Seems like the NVMe temps from dynamix source merges into the same value.

Has the button changed?  On the tray allocations page it says to use the "Force Scan all" button under the "system" tab before deleting/adding devices manually, but when I go to the "system" tab the button is not there.  Screenshot2025-02-17111851.png.265eb87b0771d15c003d9f3b83c89652.png

  • Author
3 hours ago, HutchG said:

Has the button changed?  On the tray allocations page it says to use the "Force Scan all" button under the "system" tab before deleting/adding devices manually, but when I go to the "system" tab the button is not there.  Screenshot2025-02-17111851.png.265eb87b0771d15c003d9f3b83c89652.png

Ah ye, a bit outdated text. It's the Force SMART+DB button

4 hours ago, FlamongOle said:

 

There's no (visible) global for NVMe specific devices, but I saw that NVMe does not grab the SSD temps as default from Disk Settings (maybe an Unraid bug).

 

However, while testing this, the plugin uses global SSD for NVMe as well, except if NVMe is defined per device. Seems like the NVMe temps from dynamix source merges into the same value.

True. You are right. So when I set the value explicit it is stored in hotTemp  and it works correctly in disk location-> https://github.com/unraid/webgui/blob/master/emhttp/plugins/dynamix/DeviceInfo.page#L1380

Without it seems to be always retrieved and calculated by get_nvme_info -> https://github.com/unraid/webgui/blob/master/emhttp/plugins/dynamix/include/Wrappers.php#L180
Whic
h is also used in those settings as placeholder via makeTemp -> https://github.com/unraid/webgui/blob/master/emhttp/plugins/dynamix/DeviceInfo.page#L113

 

But thank you anyway for all the effort especially when you think about the non documented tangled unraid code🥶
I have to click the donate button :)

  • Author

Update 2025.02.17 a-e

  • Commit #393 - e) MINOR: Changed old text "Force scan all" to "Force SMART+DB" in Tray Allocations. Remove an unsused section from cronjob.
  • Commit #391 - d) IMPROVEMENT: Added global SSD temp variables. Also fixed a minor variable bug related to SMART status.
  • Commit #389 - c) FEATURE: Added tray layout orientation. Made it possible to modify the dashboard float. Choices: left, right and "stack" (none).
  • Commit #387 - b) BUG: LEDs not always in standby. Altered how they are displayed without losing the ZFS state display priority. Also added separate Disk Location Recovery page under Tools -> Disk Utilities.
  • Commit #385 - a) BUG: Fixed a bug that could cause page to not load. Added System tab to be able to be used as standalone, using this address: http://[serveraddr]/plugins/disklocation/pages/page_system.php

I'm having an issue where the plugin page says updates "unavailable" for this and my current installed version is 2025.02.08 while upgrade version in CA lists 2025.02.17e

 

I've tried manually upgrading but it doesn't seem to do anything? Anyone else having this issue or know how I can get this upgraded to latest? 

  • Author
3 hours ago, CorneliousJD said:

I'm having an issue where the plugin page says updates "unavailable" for this and my current installed version is 2025.02.08 while upgrade version in CA lists 2025.02.17e

 

I've tried manually upgrading but it doesn't seem to do anything? Anyone else having this issue or know how I can get this upgraded to latest? 

Have you earlier installed 2024-edition manually, then it might be that.

 

Regardless, go to plugins, uninstall Disk Location, then install it via CA again.

  • Author

Update 2025.02.27

  • Commit #396 - IMPROVEMENT: Some Help text was outdated and has now been fixed and cleared up, also added some more info for some configurations.
  • Commit #395 - MINOR: Temperature column not shown. If the temperature is listed to display on e.g. Information tab, it was not shown due to faulty variable name request. The hot/max values are now only displayed in formatted html outputs (Information tab) but not in exported TSV as it can't function when it's outside the Unraid GLOBALS.
  • Author

Update 2025.03.03

  • Commit #400 - IMPROVEMENT/MINOR: Added cronjob to use NVME data for warning and critical temperatures (this will be collected during a Force SMART+DB update). This should now follow Unraids default settings.

 

@s11 I was mistaken about the last conversation about this, nvme hot and max was not part of the global variable at all, so had to fetch the data myself. This version should be more correct!

Have you seen this with the app?

 

For some reason, the status is showing as "Not Available" for several weeks and no updates are actually being pushed through. 

 

I can see the plugin has updates via the "Action Center" in Apps section; however, if I click update, nothing actually gets updated or pushed through. 

 

If I uninstall the plugin and reinstall it, is there a way to get my existing DB back?  I don't want to have to go in and re-identify my drives/array/settings if it can be avoided as this could be cumbersome but I do want to keep the plugin up to date.  

image.png

image.png

  • Author
3 hours ago, Hawkins12 said:

Have you seen this with the app?

 

For some reason, the status is showing as "Not Available" for several weeks and no updates are actually being pushed through. 

 

I can see the plugin has updates via the "Action Center" in Apps section; however, if I click update, nothing actually gets updated or pushed through. 

 

If I uninstall the plugin and reinstall it, is there a way to get my existing DB back?  I don't want to have to go in and re-identify my drives/array/settings if it can be avoided as this could be cumbersome but I do want to keep the plugin up to date.  

image.png

image.png

 

You have likely manually installed the 2024-edition, this won't be updated.

 

To get the new update, just uninstall the plugin, then install it via CA again. Config should remain, or have been backed up.

16 minutes ago, FlamongOle said:

 

You have likely manually installed the 2024-edition, this won't be updated.

 

To get the new update, just uninstall the plugin, then install it via CA again. Config should remain, or have been backed up.

Thank you.  The uninstall and reinstall worked.  I was afraid to lose my previous settings on the uninstall which made me hesitant but all seemed to roll over correctly. 

Ran into a weird issue with this plugin today. I was trying out the benchmark feature and thought enabling it to run monthly might give me some interesting data. But after checking the box and pressing save the plugin page suddenly became empty on only showed the dashboard button on the left top. The main unraid dashboard page also no longer loaded.

 

After uninstalling the plugin I was once more able to open the unraid dashboard page. Reinstalling the plugin instantly brought back the issue sadly. But I was able to restore plugin functionality by deleting the settings.json file in "\flash\config\plugins\disklocation". Thought i'd post this here in case this bug was unknown.

  • Author
18 hours ago, Vipe said:

Ran into a weird issue with this plugin today. I was trying out the benchmark feature and thought enabling it to run monthly might give me some interesting data. But after checking the box and pressing save the plugin page suddenly became empty on only showed the dashboard button on the left top. The main unraid dashboard page also no longer loaded.

 

After uninstalling the plugin I was once more able to open the unraid dashboard page. Reinstalling the plugin instantly brought back the issue sadly. But I was able to restore plugin functionality by deleting the settings.json file in "\flash\config\plugins\disklocation". Thought i'd post this here in case this bug was unknown.

 

You don't need to go to the terminal to delete things anymore, Disk Location Recovery can do it for you, also restore backups etc.

 

I would be interested in the settings.json file after you save it, if you don't mind, please send it to me after you press "save". I will look into this.

Nevermind, found the issue.

Edited by FlamongOle

  • Author

Update 2025.03.04

  • Commit #402 - MINOR: Fixed that in some instances and configurations, the benchmark save would trigger an error resulting in an incomplete settings.json file.

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.