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

@FlamongOle @seneo
Looks like Masterwishx's update for CA Mover Tuning has fixed the issue. I updated and tested it and it no longer breaks Disk Location. Thanks for the quick fix, @Masterwishx !

After some days running both plugins the problem hasn't occured again. Pretty safe to say that the issue is fixed.

  • 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

Hi, I have been having an issue recently where none of my Unraid HDDs will sleep anymore, adding ~25W of power draw at all times.

I've been trying to monitor what is causing this and after disabling all Dockers, I've traced it back at least partially to the Disk Location plugin. I am using a small one-line script to trace PIDs and PPIDs after lsof -r 1 /dev/sd<xx> sees some disk activity. Here is an example trace back to a Disk Location cron job.

\n--- Disk Activity Detected (Tracing PID 1839742) ---
\nPID: 1839742
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     1839742 1836960  0 10:30 ?        00:00:00 smartctl -x --json --quietmode=silent /dev/sdb
\nPID: 1836960
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     1836960 1836958  0 10:30 ?        00:00:00 php -f /usr/local/emhttp/plugins/disklocation/pages/cronjob.php start syslogread silent
\nPID: 1836958
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     1836958 3685427  0 10:30 ?        00:00:00 /bin/sh -c php -f /usr/local/emhttp/plugins/disklocation/pages/cronjob.php start syslogread silent &> /dev/null
\nPID: 3685427
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     3685427       1  0 Nov03 ?        00:00:01 /usr/sbin/crond
\n--- Trace Complete ---

I've tried manually editing /etc/cron.d/root to change the frequency of syslog reads and smartctl status commands, but the plugin seems to auto-revert these back to every 5 minutes... */5 * * * *
Can we pretty please add something in the plugin configuration to change the frequency of these jobs so my disks can sleep?
I appreciate any input or if anybody has found a workaround. Otherwise I may need to just remove the plugin.

  • Author
3 hours ago, motoxnate said:

Hi, I have been having an issue recently where none of my Unraid HDDs will sleep anymore, adding ~25W of power draw at all times.

I've been trying to monitor what is causing this and after disabling all Dockers, I've traced it back at least partially to the Disk Location plugin. I am using a small one-line script to trace PIDs and PPIDs after lsof -r 1 /dev/sd<xx> sees some disk activity. Here is an example trace back to a Disk Location cron job.

\n--- Disk Activity Detected (Tracing PID 1839742) ---
\nPID: 1839742
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     1839742 1836960  0 10:30 ?        00:00:00 smartctl -x --json --quietmode=silent /dev/sdb
\nPID: 1836960
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     1836960 1836958  0 10:30 ?        00:00:00 php -f /usr/local/emhttp/plugins/disklocation/pages/cronjob.php start syslogread silent
\nPID: 1836958
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     1836958 3685427  0 10:30 ?        00:00:00 /bin/sh -c php -f /usr/local/emhttp/plugins/disklocation/pages/cronjob.php start syslogread silent &> /dev/null
\nPID: 3685427
=============================
UID          PID    PPID  C STIME TTY          TIME CMD
root     3685427       1  0 Nov03 ?        00:00:01 /usr/sbin/crond
\n--- Trace Complete ---

I've tried manually editing /etc/cron.d/root to change the frequency of syslog reads and smartctl status commands, but the plugin seems to auto-revert these back to every 5 minutes... */5 * * * *
Can we pretty please add something in the plugin configuration to change the frequency of these jobs so my disks can sleep?
I appreciate any input or if anybody has found a workaround. Otherwise I may need to just remove the plugin.

That cronjob (*/5) just looks at the syslog for devices when Unraid has read the SMART data, then Disk Location uses that info to read the SMART data as well within 5 minutes as the drives are already spinning.

Otherwise it does never read SMART from devices in STANDBY mode.

  • Author

@motoxnate

To debug this further, you can always uninstall the plugin and see if it helps. Your config will remain.

Also make sure you're not using "turbo write", because that will spin all the drives during write.

  • 4 weeks later...

Hello,

When I click the Locate button, the Green Activity LED light starts flashing, but the Blue Locate LED light does not respond.

  1. The indicator signal definition for the hard drive backplane in my chassis complies with the SFF-8489 specification and the SGPIO specification.

    Snipaste_2025-12-02_14-59-04.png

  2. I am using an LSI 3008 HBA card.

  3. storcli command

    Many RAID or HBA adapters, like those that use the storcli (megaraid) management utility have the ability to control identification LEDs.

    eg. LSI / Broadcom adapters

    I successfully managed to light up the Blue Locate LED using the following commands.

    storcli /cx[/ex]/sx start locate

    1. First, identify the device identifier (e.g., /dev/sdb) of the hard drive that needs to be located in the system, then use the smartctl tool to obtain its unique serial number.

      smartctl -a /dev/sdX | grep -i 'Serial number'

    2. Use the storcli command to find the specific physical location of this hard drive on the RAID or HBA card, namely the Controller, Enclosure (optional), and Slot numbers.

      storcli /call/eall/sall show all | grep -B5 -i "your serial number"

    3. Turn on the Blue Locate LED

      storcli /cx[/ex]/sx start locate

      (here are my 2nd hard drive)

      storcli /c0/s2 start locate

    4. Turn off the Blue Locate LED

      storcli /c0/s2 stop locate

    It works well !

  4. The following command might also work, but I haven't tested it yet. (General method, especially suitable for simple storage environments without a RAID card or HBA card.)

    ledctl locate=/dev/sdX

Finally, I would like to suggest if it's possible to add an option in the settings to choose the command used by the Locate button? Or to customize the command executed by the Locate button?

Thank you. Thanks a lot.

Edited by neatgz

  • 5 weeks later...
  • Author
On 12/2/2025 at 8:01 AM, neatgz said:

Hello,

When I click the Locate button, the Green Activity LED light starts flashing, but the Blue Locate LED light does not respond.

  1. The indicator signal definition for the hard drive backplane in my chassis complies with the SFF-8489 specification and the SGPIO specification.

    Snipaste_2025-12-02_14-59-04.png

  2. I am using an LSI 3008 HBA card.

  3. storcli command

    Many RAID or HBA adapters, like those that use the storcli (megaraid) management utility have the ability to control identification LEDs.

    eg. LSI / Broadcom adapters

    I successfully managed to light up the Blue Locate LED using the following commands.

    storcli /cx[/ex]/sx start locate

    1. First, identify the device identifier (e.g., /dev/sdb) of the hard drive that needs to be located in the system, then use the smartctl tool to obtain its unique serial number.

      smartctl -a /dev/sdX | grep -i 'Serial number'

    2. Use the storcli command to find the specific physical location of this hard drive on the RAID or HBA card, namely the Controller, Enclosure (optional), and Slot numbers.

      storcli /call/eall/sall show all | grep -B5 -i "your serial number"

    3. Turn on the Blue Locate LED

      storcli /cx[/ex]/sx start locate

      (here are my 2nd hard drive)

      storcli /c0/s2 start locate

    4. Turn off the Blue Locate LED

      storcli /c0/s2 stop locate

    It works well !

  4. The following command might also work, but I haven't tested it yet. (General method, especially suitable for simple storage environments without a RAID card or HBA card.)

    ledctl locate=/dev/sdX

Finally, I would like to suggest if it's possible to add an option in the settings to choose the command used by the Locate button? Or to customize the command executed by the Locate button?

Thank you. Thanks a lot.

@neatgz

The locate button is only looping a SMART request and will only activate the activity LED. It doesn't always work, depending on the drive and manufacturer etc.

"storcli" isn't installed by default in Unraid, and I don't want to include that in the plugin. If it's installable via a plugin, then that's great, but I can't test the functionality myself as I don't have the hardware to test this. Maybe in the future I can add something.

What I need to know is the actual output of:
storcli /call/eall/sall show all | grep -B5 -i "your serial number"

If the output can be in JSON, that's even better.

I also need to know how to detect if /ex part is required or not, if ever.

storcli /cx[/ex]/sx start locate

I understand the "/c0/s2" - but what is /e[x]?

The ledctl would be straight forward to add as an option, as it uses only default drive paths, but which package is that in? I can't test it myself, but seems easy enough.

Hello,

I am trying to configure and visualize Array as 1 column and 6 rows. I need to assign it from the bottom. But if I choose in Tray assigment count direction option "left / bottom" and then I want to assign trays I see only 2 trays available. With option "left / top" I see all 6 trays. I guess it is some small bug ?

@FlamongOle Happy New Year. I have noticed a bug in the last few versions of the app, my apologies for not posting this sooner. There is an interesting bug involving drive read writes. It appears that the first Data drive (disk 1) pulls the Read/Written data from the last NVME drive. Only Data Disk1 is affected, please see the screenshots below. This bug is also present in the on-hover of the dashboard version of the plugin. The bug is present in Unraid versions 7.1.4 - 7.2.3. Let me know if you need anything else. Thank you.

DiskLocationDriveRWDataError2.jpg

DiskLocationDriveRWDataError1.jpg

  • Author
8 hours ago, SShadow said:

@FlamongOle Happy New Year. I have noticed a bug in the last few versions of the app, my apologies for not posting this sooner. There is an interesting bug involving drive read writes. It appears that the first Data drive (disk 1) pulls the Read/Written data from the last NVME drive. Only Data Disk1 is affected, please see the screenshots below. This bug is also present in the on-hover of the dashboard version of the plugin. The bug is present in Unraid versions 7.1.4 - 7.2.3. Let me know if you need anything else. Thank you.

DiskLocationDriveRWDataError2.jpg

DiskLocationDriveRWDataError1.jpg

I dunno when I will have time to look at this, but please send me a debug file. Thanks!

  • Author
10 hours ago, ELP1 said:

Hello,

I am trying to configure and visualize Array as 1 column and 6 rows. I need to assign it from the bottom. But if I choose in Tray assigment count direction option "left / bottom" and then I want to assign trays I see only 2 trays available. With option "left / top" I see all 6 trays. I guess it is some small bug ?

Can you try "right/bottom"? I wonder if the "left/top" has a weird bug for 1 column, but works for 2 or something (can't be bothered testing it again). But "right/bottom" should do the same for your setup, but runs the calculation slightly different. Please report back if it solves it. Otherwise, I will look at it when I find time and motivation.

6 hours ago, FlamongOle said:

Can you try "right/bottom"? I wonder if the "left/top" has a weird bug for 1 column, but works for 2 or something (can't be bothered testing it again). But "right/bottom" should do the same for your setup, but runs the calculation slightly different. Please report back if it solves it. Otherwise, I will look at it when I find time and motivation.

Hello, thanks for a feedback. I can confirm that option "right / bottom" solved it.

Hello all,

I'm new to Unraid and I just loaded this app to my server to find and mark down what drives I have. The server I got has two drives in one tray. When I try to add all the drives to the app, they just swap out with one another and do not add both drives to one tray. I hope this makes sense.

Am I missing something? I'd like to have where I can see what two drives are in each tray. I have a 6x4 with 48 drives.

Thank you

  • Author
2 hours ago, G00se said:

Hello all,

I'm new to Unraid and I just loaded this app to my server to find and mark down what drives I have. The server I got has two drives in one tray. When I try to add all the drives to the app, they just swap out with one another and do not add both drives to one tray. I hope this makes sense.

Am I missing something? I'd like to have where I can see what two drives are in each tray. I have a 6x4 with 48 drives.

Thank you

You can't add more than one drive per assigned slot. Rather add multiple slots if you do dual drives per slot.

13 minutes ago, FlamongOle said:

You can't add more than one drive per assigned slot. Rather add multiple slots if you do dual drives per slot.

Okay, when you say add multiple slots, what do you mean exactly? Thank you for your reply!

  • Author
14 hours ago, G00se said:

Okay, when you say add multiple slots, what do you mean exactly? Thank you for your reply!

You must add 6x8 or 12x4 depending on the layout you want. No ways to assign two drives into same number/slot.

12 hours ago, FlamongOle said:

You must add 6x8 or 12x4 depending on the layout you want. No ways to assign two drives into same number/slot.

Oh I see, thank you.

Is there a way to have the disk number in the disk location overview instead of the tray numbers?

So instead of

1 2 3 4 5

disk1 disk14 disk2 disk5

Bildschirmfoto 2026-01-15 um 09.05.43.png

  • Author
2 hours ago, shire said:

Is there a way to have the disk number in the disk location overview instead of the tray numbers?

So instead of

1 2 3 4 5

disk1 disk14 disk2 disk5

Bildschirmfoto 2026-01-15 um 09.05.43.png

No, visible via mouseover if configured so

7 hours ago, FlamongOle said:

No, visible via mouseover if configured so

LOL...I never tried that. Thanks...

Love this solution. I'm looking at combining my 2 SSD's into 1 HDD drive bay and I was wondering if there is a way to 'split' the bay. Or what another option would be that would appear properly. I was also thinking of putting 2 rows (instead of 1) and then 'skipping' all the bottom ones on the actual HDD but I wasn't sure what it would do / look like - even with hide empty enabled. Ideas?

  • Author
2 hours ago, cosworth said:

Love this solution. I'm looking at combining my 2 SSD's into 1 HDD drive bay and I was wondering if there is a way to 'split' the bay. Or what another option would be that would appear properly. I was also thinking of putting 2 rows (instead of 1) and then 'skipping' all the bottom ones on the actual HDD but I wasn't sure what it would do / look like - even with hide empty enabled. Ideas?

No ways to split the "bay", I see no reason for it either. Don't think of this to directly copy the looks of your server, rather where you find the disks. 2 HDD's in one bay: create 2 bays instead of just 1.

Easy to try different configurations, just create a new group and play with it until you're satisfied, no need to change the one you have until you find the one that fits your purpose.

I hope it makes sense enough :P

I'm getting an error "Could not save the configuration". I'm also confused why my tray picker lets me choose from 0 - 4 when I want to be able to set 1 - 5.
TIA for any hints or help.

image.png

Edited by CtznSnips

Hello,
I would like to request a feature. I have multiple unraid servers, and when I change a disk on one server, often, I put the old in another server. I would like to not have to write again all warranty and comments info.
could we have en export import disk option?
thanks

  • 3 weeks later...
  • Author
On 1/22/2026 at 4:34 PM, CtznSnips said:

I'm getting an error "Could not save the configuration". I'm also confused why my tray picker lets me choose from 0 - 4 when I want to be able to set 1 - 5.
TIA for any hints or help.

image.png

Not much I can do with that info. Have you adjusted the start count to be "1" and not "0"? If it can't save, there's something conflicting, like trying to assign 5 if it doesn't exists but in your case could be 4. I don't have your config, so can't test.

  • Author
On 1/24/2026 at 4:37 PM, Nexius2 said:

Hello,
I would like to request a feature. I have multiple unraid servers, and when I change a disk on one server, often, I put the old in another server. I would like to not have to write again all warranty and comments info.
could we have en export import disk option?
thanks

Ye, that should be doable I guess. But it's not a priority right now. The dates can be copied from Unraid itself as this plugin doesn't store most of that data anymore.

Check out this file: /boot/config/disk.log

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.