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:

 

Are you sure that Unraid has not disabled the device and is now emulating it?    It might be worth posting your system's diagnostics zip file so we can check there for a problem.

Sure Thing. No emulation:
image.thumb.png.2188f19ab61b4c1cf3a73443d32585e6.png
Also enabled syslog....

diagnostics-20231201-1246.zip

  • Replies 1.6k
  • Views 249.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

The diagnostics definitely show disk1 to disk22 present.   Are you sure that the message is not associated with disk23 disk24 which are not present.

38 minutes ago, itimpi said:

The diagnostics definitely show disk1 to disk22 present.   Are you sure that the message is not associated with disk23 disk24 which are not present.

 

23 and 24 is the Parity 1+2 above in my screenshot.
I am happy to report that all my drives is functioning in Unraid 🙂

One of my hard drives shows most of the info, but it is missing the Manufacturer. I am so anal that this bothers me. Is there anyway I can add this so it shows the manufacturer? It is missing the part that says Seagate Exos X18. Thanks. 

Apologies if this has been mentione before or addressed already, however, my array SSD temperature is not show in the dashboard whenever i restart my UNRAID host. I have to force scan all each time after a reboot for the temperature to be detected. It only does this for the single SSD that I have connected and not the NVME drive. Any ideas? Log attached.

 

After reboot - 

image.thumb.png.725c6b2b9c23e59c0ffaa6e8f426fcab.png

 

After 'force scan all'

image.thumb.png.42efedc42d460766846626dbd0c1744a.png

 

Also - update is always set to disabled after reboot. I have to set to hourly each time.

image.png.9011a1f23b5dac0112a0cf7c6a119ef3.png

diagnostics-20231208-1459.zip

Edited by mikeyosm

  • 2 weeks later...

I have the strangest bug with this plugin i just noticed, i am not sure when it started but for whatever reason the plugin feels like one of my drives is "not present" yet it is detected in unraid and also detected in the disk location plugin itself so i can allocate it to a slot... Any ideas how to fix it? Unraid 6.10.3

 

EDIT: Force scan just fixed it

image.thumb.png.8d795a12c0ee99692d005149129f6f2a.png

image.thumb.png.8ae7d3c196dcae033c6c7b964f89d244.png

image.thumb.png.84a884bc9f9ee5a5b8a1a60c2de97d31.png

Edited by je82

Hi @FlamongOle

 

Thank you for this very useful plugin.

 

If I may offer some visual design improvement ideas. Obviously the plug in is meant to help identify where the different drives are located within your server box. The typical way I search for a drive is by its serial number. Currently, on the main Devices page, it's kind of hard visually searching for the serial number among all the info that is displayed. It would be great to let the user change the font size, font weight, and font color of the Serial Number. Much like how you allow the color configurations. If this info is not easy to parse out, perhaps, with the Serial Number is always inside parenthesis, you can extract this and give it is own class name for CSS.

image.png.4b454a7e9bded1abbc9a5c4c332ed896.png

 

Second suggestion. Because of my server's layout, I have 5 separate Disk Tray Layouts. I find that the disk padding between the Layouts is quite large. This forces me to have to make my browser window wider than normal. Please consider either reducing the distances shown below OR add the ability for the user to control this like how you do w/ the colors. It would be nice to see more on the screen at the same time. Here is a quick mock-up;

image.thumb.png.a07635073aff0fe264779951249f9788.png

Thank you again.

 

H

 

9 hours ago, hernandito said:

If I may offer some visual design improvement ideas. Obviously the plug in is meant to help identify where the different drives are located within your server box. The typical way I search for a drive is by its serial number. Currently, on the main Devices page, it's kind of hard visually searching for the serial number among all the info that is displayed. It would be great to let the user change the font size, font weight, and font color of the Serial Number. Much like how you allow the color configurations. If this info is not easy to parse out, perhaps, with the Serial Number is always inside parenthesis, you can extract this and give it is own class name for CSS.

 

Second suggestion. Because of my server's layout, I have 5 separate Disk Tray Layouts. I find that the disk padding between the Layouts is quite large. This forces me to have to make my browser window wider than normal. Please consider either reducing the distances shown below OR add the ability for the user to control this like how you do w/ the colors. It would be nice to see more on the screen at the same time. Here is a quick mock-up;

 

 

 

 I think I just entered The Twilight Zone.

 

At some point I do a refresh of the Disk Location Page.... and the changes I suggest in my post above are implemented!!! I am not sure what happened... I did reboot the server.

 

I had to spend time investigating. Turns out sometime last year, I manually edited files and stored them in /flash/config/plugins/DiskLocations. I have a script in my server that does some tweaking around. As part of this script, I have the below lines:

 

cp /boot/config/plugins/disklocation/devices.php /usr/local/emhttp/plugins/disklocation/pages/devices.php
cp /boot/config/plugins/disklocation/disklocation_devices.page /usr/local/emhttp/plugins/disklocation/disklocation_devices.page
cp /boot/config/plugins/disklocation/disk.css.php /usr/local/emhttp/plugins/disklocation/pages/styles/disk.css.php

 

I assume these files are of an older versions of the plugin that make the design changes. But they do the job.

 

Just in case someone likes these edit's, I am attaching the three files. Again a warning, these are likely outdated. Here is what it looks like:

 

UPDATE #2:

The files did break the current version of the plugin. I cannot get into any of the Configuration screens.

 

I have edited the files from the latest release with those edits. I am attaching them here.

 

image.thumb.png.e39799f2be64a24feb0f3de8f30a1c53.png

 

It's scary how I forgot I did this... and that after that script executed, all of a sudden, the changes are there.

 

Thanks!

 

 

disklocation_devices.page devices.php disk.css.php

Edited by hernandito

  • 2 weeks later...
On 12/19/2023 at 7:22 PM, je82 said:

I have the strangest bug with this plugin i just noticed, i am not sure when it started but for whatever reason the plugin feels like one of my drives is "not present" yet it is detected in unraid and also detected in the disk location plugin itself so i can allocate it to a slot... Any ideas how to fix it? Unraid 6.10.3

 

EDIT: Force scan just fixed it

image.thumb.png.8d795a12c0ee99692d005149129f6f2a.png

image.thumb.png.8ae7d3c196dcae033c6c7b964f89d244.png

image.thumb.png.84a884bc9f9ee5a5b8a1a60c2de97d31.png

Force scan is a workaround but sometimes when I reboot the unraid host, the temps are not showing on the dashboard and I have to force scan each time, very annoying.

  • 2 weeks later...
  • Author

Update 2024.01.15

  • Commit #240 - BUG: Fixed SMART update so it won't disable itself every reboot. It will use the value stored in the DB.

Minor update this time, I'll have a look into the other stuff some other day I have time.

@FlamongOle any chance you could overlay drive temperature in to the dashboard or at the very least include it in the information window when hovering over the drive? Also, I have an nvme that is showing as device not present even though it is detected and showing all info.

 

image.png.0a2264e9380f3cbd424832499441c9b6.png

 

image.thumb.png.9f533f7afaa28a570a01cdd9a234becb.png

  • Author

Update 2024.01.18b - HUGE update, really.

  • IMPROVEMENT: Rewrote-ish the cronjob script, works in the plugin GUI as before. Also added back the possibility to run it via CLI again, for manual control:
php -f /usr/local/emhttp/plugins/disklocation/pages/cron_disklocation.php cronjob|force [silent]

 

  • BUG: Yes, to both - probably (fixed old ones and created new ones).
  • IMPROVEMENT: Some minor design tweaks to fit larger systems and not using too much space on the screen/page.
  • IMPROVEMENT: Added a "hover" over the tray number on the dashboard to show the temperature.
  • BUG: Fixed a glitch in the cronjob script. (version b)

Edited by FlamongOle

Suggestion for this plugin:

 

Add the ability to create a list that can be copied (tab delimited is fine), or printed (PDF), with selectable columns. Being able to print out the layout would be a huge timesaver. A simple export would be the the "enclosure" name, tray ID, size and serial number (maybe even allow to select to export only the last 4 characters of the serial number). 

 

I just added a 15-bay JBOD and had to move 9 drives, plus add 3 more. Being able to do the initial layout in DiskLocation made the job a lot easier, but I had to copy/paste/edit the data to get a list.

On 12/21/2023 at 6:06 PM, hernandito said:

UPDATE #2:

The files did break the current version of the plugin. I cannot get into any of the Configuration screens.

 

I have edited the files from the latest release with those edits. I am attaching them here.

 

image.thumb.png.e39799f2be64a24feb0f3de8f30a1c53.png

 

 

 

 

 

The last update of the plugin broke the edits I had made, per my post above.. I have revised and posting here in case someone wants to use this.

 

 

 

 

devices.php disklocation_devices.page disk.css.php

  • 3 weeks later...
  • Author

Overhaul '24

By far the biggest update in Disk Locations time! Take a look and read the nice Change Log, and then read the extra info at the bottom. AND THEN! RTFM (press HELP) in Unraid after update!

 

Update 2024.02.12

  • Commit #271 - BUG: Due to a bug in the database upgrade, I have now checked multiple scenarios why it happened. It should be solved. Also made it possible to access limited functions during database errors for restoring older databases. Version 2 and below is not supported anymore (very old databases: 2019-06-19 and earlier). They will be deleted (but not from the backup) and a new fresh database will be created.

 

Update 2024.02.11

  • Commit #269 - Set SMART "command timeout" to disabled by default. Because of Seagate drives it makes more sense to disable this monitoring by default, like Unraid does. If you already installed Update 2024.02.09 or 2024.02.10 you might need to disable it manually (if you need/want to).
  • Commit #268 - Make a bit more space for more info. Moved the sort buttons below the text to save some space on short columns.

 

Update 2024.02.10

  • Commit #262 - IMPROVEMENT: Use manufacture dates from Unraid if they exists instead of just own values. Values written in Unraid will be prioritized and overwrite dates in the plugins database if they exists (also read Commit #249).
  • Commit #261 - BUG: Unassigned devices missing LED for disk OP has been fixed (introduced in 2024.02.09 if you were quick on getting the Overhaul '24 first release).
  • Commit #256 - FEATURE: Added critical SMART warnings, configurable with RAW data (for SATA devices). NVMe uses spare threshold. Also added data units read and written for both SATA (LBAs) and NVMe.
  • Commit #147 - (includes #256)
  • Commit #255 - FEATURE: Added the ability to re-arrange groups. You can now swap between two groups, but only the last one can still be deleted.
  • Commit #254 - FEATURE: Added the ability to create a list to be downloaded (TSV), following the Information selection and sort.
  • Commit #253 - FEATURE: Added possibility to use colors in "comments", see Help under "Tray Allocations"
  • Commit #252 - FEATURE: Database management and cleanup of System. Creating, restoring and deleting backups, moving the database to another location possible. Old backups are converted to the new system. 
  • Commit #251 - IMPROVEMENT: Inconsistent action when filling dates occurred in the ISO date format (and probably some others). Limited the max year to 9999.
  • Commit #250 - FEATURE: Sort information by fields has been implemented (in combination with #245).
  • Commit #249 - FEATURE: Database field for 'Date of Manufacture' has been implemented. Might need to enable it manually.
  • Commit #248 - MINOR ISSUE: Lagging Documentation: 'Force Scan All' button is now on System tab. Went through and updated the text on multiple pages and updated the Help sections.
  • Commit #247 - FEATURE: Include legend for color coding on pages where it's used has been added to Info, Tray Allocations and Drives tabs.
  • Commit #246 - FEATURE: Algorithmic abbreviate serial numbers as 'friendly name' has been implemented. Trimming of serial numbers available.
  • Commit #245 - FEATURE: Turn off / rearrange columns has been implemented. (in combination with #250).
  • Commit #242 - IMPROVEMENT: "hover" on the tray number has been moved to the LED, also attached all info to one LED. The worst warning will be shown on the LED, but info from all stages visible.

 

Extra info:

New default colors has been made for the array, but they won't change automatically in case you like the original ones. But there's a new button under "Configuration" to reset common colors.

 

Please read the Help text for more information about the new features, there's a lot of new stuff added as you see on the changelog. Click the "Help" icon on the Unraid status bar.

 

"Drives" tab has been merged into "Tray Allocations" as it wasn't really necessary to have an own page for it. 

Edited by FlamongOle
Combined all versions for the Overhaul '24 edition

Can I change the size from this?

Screenshot_20240209-204644_Firefox.thumb.png.d865fc851ea7de33116088446e81de37.png

The Numbers are overlap.

  • Author
7 minutes ago, Revan335 said:

Can I change the size from this?

Screenshot_20240209-204644_Firefox.thumb.png.d865fc851ea7de33116088446e81de37.png

The Numbers are overlap.

Yes, it's in the group settings. You define the sizes of each "drive" there.

I can't change the color of a Unassigned Device.

Screenshot_20240209-210649_Firefox.png.400f10e7b72e131a153fc66a23e1cf79.png

 

The second as Data detected USB Device is not connected. Only one USB Disk is connected at the same Time.

 

I set the color of Unassigned Device but he pasted as a Data Device/Color.

  • Author
1 hour ago, Revan335 said:

I can't change the color of a Unassigned Device.

 

The second as Data detected USB Device is not connected. Only one USB Disk is connected at the same Time.

 

I set the color of Unassigned Device but he pasted as a Data Device/Color.

I don't understand what you mean. But USB drives are not supported.

unraid 6.12.6 - after updating locations to 2024.02.10-o24, now i have a drive that is flashing which stops if i uncheck 'flash warning' but its not clear what the warning its trying to show... spun disk up, now instead of N/A it says 0 there.

 

<removed images>

 

1 1 1 are three different buckets, so i would imagine you would take the max value of all three buckets.. in this case 1 and compare to value which is less than 5.. so shouldnt be warning.

 

docs on the value and how segate does it

https://t1.daumcdn.net/brunch/service/user/axm/file/zRYOdwPu3OMoKYmBOby1fEEQEbU.pdf

 

 

** update ** per below, it was the plugin just not happy with the 'command timeout' value from segates. setting it to 0 to disable.

Edited by zoggy

8 minutes ago, zoggy said:

is the plugin just not happy with the 'command timeout' value from segates now?

I have this to. I set Command Time Out to 0 to disabled this lightning.

10 hours ago, FlamongOle said:

I don't understand what you mean.

I can't changed the color to the same as unassigned device (blue) have.

  • Author
1 hour ago, Revan335 said:

I can't changed the color to the same as unassigned device (blue) have.

Is it recognized as an unassigned device? If so, you might need to check if it has a custom color, then change that. Eventually you might need to reset the colors, but do so after a Force scan all, in case something needs to be updated in the database.

 

Custom colors cannot have the same colors as the common colors.

  • Author
1 hour ago, zoggy said:

unraid 6.12.6 - after updating locations to 2024.02.10-o24, now i have a drive that is flashing which stops if i uncheck 'flash warning' but its not clear what the warning its trying to show... recheck and on hover its:

firefox_2024-02-10_02-18-22.png

spun disk up, now instead of N/A it says 0 there.

 

i'm guessing the warnings are from:

firefox_2024-02-10_02-19-54.png

 

is the plugin just not happy with the 'command timeout' value from segates now?

 

1 1 1 are three different buckets, so i would imagine you would take the max value of all three buckets.. in this case 1 and compare to value which is less than 5.. so shouldnt be warning.

 

docs on the value and how segate does it

https://t1.daumcdn.net/brunch/service/user/axm/file/zRYOdwPu3OMoKYmBOby1fEEQEbU.pdf

 

N/A would be the temperature of the drive, you might need to run "Force scan all" to get it back, if it has a sensor. The SMART warning message should be visible under the "Devices" tab.

 

Disable "Command Timeout" if you have Seagate, not going to make an exception for a manufacturer, or a series of devices. It's disabled by default in Unraid, and I might change that myself as default behaviour.

4 hours ago, FlamongOle said:

Is it recognized as an unassigned device? If so, you might need to check if it has a custom color, then change that. Eventually you might need to reset the colors, but do so after a Force scan all, in case something needs to be updated in the database.

 

Custom colors cannot have the same colors as the common colors.

OK, he detected as data. Than i changed the color to another color and not the default Blue. Or tryed the force scan.

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.