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

Update 2026.07.06

  • Commit #507 - BUG: SMART data gets saved even if it's empty. SMART data got pulled when there's nothing to fetch. Checks if SMART is available and enabled before saving new SMART json files.

@Lean_ try this update. You must do a SMART+DB to fix the database before we know.

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

once unraid picks up the update I"ll let you know. I can see it on the 'apps' tab but not in plugins yet.

  • Author
1 hour ago, Lean_ said:

once unraid picks up the update I"ll let you know. I can see it on the 'apps' tab but not in plugins yet.

Should work now, forgot to increase the version number in the install file.

After "Force SMART+DB", you can manually spin down drives, then run just "SMART" afterwards to see if it behaves as expected.

Seems to be behaving as expected so far! No flashing drives at the moment, I will let you know if I see the issue come up again.
Thank you for all your work!

  • Author

Update 2026.07.07 - Physical tray assignments has arrived!

  • Commit #506 - FEATURE: Physical assignment of trays. Some devices can be used to assign a tray to a physical address. Using this will automatically replace drives added to that tray. Device path are assigned to trays instead of device name and serial number.

READ THIS BEFORE USE OF THE NEW FUNCTION:

Some devices can be used to assign a tray to a physical address. Using this will automatically replace drives added to that tray. Device path are assigned to trays instead of device name and serial number. This requires a drive to be attached and assigned before it can be used.

IMPORTANT!

If there is a system change with e.g. HBA/SAS card (even motherboard PCI-slot), SAS-SATA breakout cables or motherboard, the physical locations must be wiped and reconfigured in the plugin. Using HBA/SAS cards in a fixed PCI location should normally use the same addresses. If such a major change is required and you want to preserve the tray locations:

  • Press "Save" on "Tray Allocations" page to update the manual location database.

  • go to the "System" tab and create a backup.

  • then wipe ONLY the "physical" configuration BEFORE doing the changes.

Hot swapping requires execution of Force SMART+DB, and will be prompted within 5 minutes. Inserting devices in powered off mode, will automatically execute it during boot.

This text is also found under "Help" section in the plugin.

ADDITIONAL INFO:

This function is optional, if you don't want to opt in, you never have to. To assign physical locations, each location must be assigned and "physical" checkbox must be marked per drive. Drives not compatible will be disabled (e.g. NVME drives).

POSSIBLE FUTURE PHYSICAL LOCATION TEMPLATES:

It might be possible to make location templates from original server systems, like the 45 Drives Unraid system but also others. To create such templates for me, I would need this from you, everything below is mandatory and must be completed as written:

  • Information about the server/enclosure name and model including HBA/SAS card name and model.

  • All trays must be filled with drives and recognized in the plugin.

  • All tray locations must be saved how it physically looks like on the server.

  • Physical checkbox must be marked and saved.

  • Then send me this file: /boot/config/plugins/disklocation/physical.json

DO NOT SEND ME FILES FROM NON-ORIGINAL CONFIGURATIONS!!!

  • Author

Update 2026.07.08

  • Commit #511 - BUG: Physical assignments wont move with the groups. Added physical.json into the rewrite loop with locations.json.

appreciate your continual maintenance of this plugin, it's great!

ever since the latest update rolled out to unraid plug in, I'm unable to get this working any more. It says to do the force smart+DB, i do that and i get a pop up screen saying it will take some time to run, but nothing happens. i've tried it several times with no success. any ideas? luv the plug in but might as well uninstall at this point.

  • Author
2 hours ago, lastBoyscout said:

ever since the latest update rolled out to unraid plug in, I'm unable to get this working any more. It says to do the force smart+DB, i do that and i get a pop up screen saying it will take some time to run, but nothing happens. i've tried it several times with no success. any ideas? luv the plug in but might as well uninstall at this point.

Cannot do anything with that information.

Please send me Disk Location debug file and also PHP logs from Unraid. Also share with me if you did something else before the problems happened.

In System tab: Enable debug, then press Force SMART+DB, cancel it if it doesn't do anything withing 5 seconds, disable debug, then send me the file.

Or uninstall it.

Edited by FlamongOle

disklocation-2026-07-09.log
Hi,

i have also Problems with the plugin. Nothing happen on Force SMART+DB

Unraid 7.3.2 / Kernel 6.18.38-Unraid

Disk Location "Force SMART+DB" hangs.

PHP log:

array_diff(): Argument #1 ($array) must be of type array, false given

/usr/local/emhttp/plugins/disklocation/pages/functions.php:1113

Stack:

dev_by_phy_path()

update_temp_files()

cronjob.php

Additional finding:

/dev/disk/by-path does not exist on this system.

Existing /dev/disk directories:

by-diskseq

by-id

by-label

by-partlabel

by-partuuid

by-uuid

So dev_by_phy_path() likely expects /dev/disk/by-path and returns false when the directory is missing.

Edited by tobasium

  • Author
51 minutes ago, tobasium said:

disklocation-2026-07-09.log
Hi,

i have also Problems with the plugin. Nothing happen on Force SMART+DB

Unraid 7.3.2 / Kernel 6.18.38-Unraid

Disk Location "Force SMART+DB" hangs.

PHP log:

array_diff(): Argument #1 ($array) must be of type array, false given

/usr/local/emhttp/plugins/disklocation/pages/functions.php:1113

Stack:

dev_by_phy_path()

update_temp_files()

cronjob.php

Additional finding:

/dev/disk/by-path does not exist on this system.

Existing /dev/disk directories:

by-diskseq

by-id

by-label

by-partlabel

by-partuuid

by-uuid

So dev_by_phy_path() likely expects /dev/disk/by-path and returns false when the directory is missing.

That makes sense. Expected that this path would always be there. I'll make a fix soon

  • Author

Update 2026.07.09

  • Commit #513 - BUG: SMART+DB fatals when by-path is non-existing. Some systems do not have /dev/disk/by-path apparently, so the SMART+DB update would fail. Checking if the directory exists before checking the contents with dev_by_phy_path() function.

Thanks a lot. Update fix the problem. all runing fine.

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.