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

I just installed this plugin for the first time.

 

It finds my 5 Nvme drives. But my 3 SATA SSDs are missing in action. And it seems to add a 6th "ghost" Nvme.

When I run "Force Update All" I get the following:

 

disclocation.png.c5332ec7ef2972f45b55f5edc20c94f8.png

 

So a few things:

1: sg0 doesn't exist in reality. There is no such thing. Yet it shows as ACTIVE? And to top it off, it shows as an Nvme?

2: sg0, sg1, sg2, sg3 all have the same ID? What is that ID btw? (1b7852b855)?

3: sg1, sg2, sg3 show up as UNKNOWN?

4: sg1, sg2, sg3 are the ones that does exist in reality. They're all SATA SSDs connected directly to my motherboard SATA ports. No extra controller or anything.

They're all Samsung_SSD_870_EVOs.

2 of them are 2TB and connected in Unraid with "Unassigned Devices plugin"

1 is a 500GB and is connected in Unraid as a normal cache pool.

 

 

Anything I can do to troubleshoot?

Bare with me. I'm a complete noob.

  • Replies 1.7k
  • Views 250k
  • 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
1 hour ago, PeterHS said:

I just installed this plugin for the first time.

 

It finds my 5 Nvme drives. But my 3 SATA SSDs are missing in action. And it seems to add a 6th "ghost" Nvme.

When I run "Force Update All" I get the following:

 

disclocation.png.c5332ec7ef2972f45b55f5edc20c94f8.png

 

So a few things:

1: sg0 doesn't exist in reality. There is no such thing. Yet it shows as ACTIVE? And to top it off, it shows as an Nvme?

2: sg0, sg1, sg2, sg3 all have the same ID? What is that ID btw? (1b7852b855)?

3: sg1, sg2, sg3 show up as UNKNOWN?

4: sg1, sg2, sg3 are the ones that does exist in reality. They're all SATA SSDs connected directly to my motherboard SATA ports. No extra controller or anything.

They're all Samsung_SSD_870_EVOs.

2 of them are 2TB and connected in Unraid with "Unassigned Devices plugin"

1 is a 500GB and is connected in Unraid as a normal cache pool.

 

 

Anything I can do to troubleshoot?

Bare with me. I'm a complete noob.

I see that the "CTRL CMD" is active, but I don't really see the reason why it shouldn't just be auto detected. Per disk setting in Unraid, you might have set a "SMART controller type" manually instead of leaving it to "Automatic", maybe you must do it for a reason, but usually NVMe and SATA is auto detected. Also I think "ATA" is not really common these days anymore as SATA uses the SCSI protocol (correct me if I'm wrong)? Under "Disk Settings" (Unraid settings) you will find "Global disk settings", ensure "SMART controller type" is set as Automatic as well.

 

The sg0 is typically the USB drive containing Unraid OS. 

 

Let the OS auto detect the SMART controller type unless you must specify it to work, but I think that's more common for special RAID cards and HD enclosures etc.

I was going back to look at my disk configuration and I see that everything is clear and no drives have been defined.  

Unraid: 6.12.10

Disk Location: 2024.03.22

 

I can see in the plugin directory that there some backup files, is there a way to restore my previous configuration?

image.png.f8348eb38b24a3a4d50750e1c50bcae7.png

  • Author
20 hours ago, mwoods98 said:

I was going back to look at my disk configuration and I see that everything is clear and no drives have been defined.  

Unraid: 6.12.10

Disk Location: 2024.03.22

 

I can see in the plugin directory that there some backup files, is there a way to restore my previous configuration?

image.png.f8348eb38b24a3a4d50750e1c50bcae7.png

 

I'm baffled that you found this out the hard way?

 

Try: Tools -> Disk Location -> System -> Backup -> 'click the backup' -> Restore

1 hour ago, FlamongOle said:

 

I'm baffled that you found this out the hard way?

 

Try: Tools -> Disk Location -> System -> Backup -> 'click the backup' -> Restore

Thanks for the answer and being baffled every once in a while is good for the soul 👼

On 4/25/2024 at 2:42 AM, FlamongOle said:

The sg0 is typically the USB drive containing Unraid OS. 

 

Let the OS auto detect the SMART controller type unless you must specify it to work, but I think that's more common for special RAID cards and HD enclosures etc.

 

You are correct.

I have a PCIe to Nvme card for some of my drives. Because of that I had set default in Unraid to Nvme and for whatever reason the SSDs had turned into ATA. Turns out I could just force the 3 SSDs to Automatic and everything is as it should.

Thank you!

 

Solved!

Hello, I'm having an issue recently where I'm receiving emails from unraid with the following:

 

Subject: cron for user root /usr/bin/run-parts /etc/cron.daily 1> /dev/null

Body: 

corrupted size vs. prev_size
corrupted size vs. prev_size

 

 

I've pinpointed down to the disklocation.sh causing this issue, however I'm not sure why it's sending these emails. Anyone know how can I debug further? I created a support thread here with diagnostics

 

  • Author
On 5/2/2024 at 4:41 PM, bobokun said:

Hello, I'm having an issue recently where I'm receiving emails from unraid with the following:

 

Subject: cron for user root /usr/bin/run-parts /etc/cron.daily 1> /dev/null

Body: 

corrupted size vs. prev_size
corrupted size vs. prev_size

 

 

I've pinpointed down to the disklocation.sh causing this issue, however I'm not sure why it's sending these emails. Anyone know how can I debug further? I created a support thread here with diagnostics

 

 

See next post and nevermind below.

 

I've seen that report from someone else "recently" and I need to get some info from you as the other one did not provide with all the information I needed.

 

In terminal, please do this:

 

php /usr/local/emhttp/plugins/disklocation/pages/cron_disklocation.php cronjob

 

There you should see which device(s) will post this information, it might be related to smartctl, but is something I must find out. When you see which device output the fault, please give me the output of:

 

smartctl -x --all --json /dev/<device>

*where <device> is the wrong device, eg. sda or nvme1n1

 

Please share that output to me, you might do it in PM if you don't want to reveal the serial number or other drive data if you care. No content will be revealed.

Edited by FlamongOle

  • Author
On 5/2/2024 at 4:41 PM, bobokun said:

Hello, I'm having an issue recently where I'm receiving emails from unraid with the following:

 

Subject: cron for user root /usr/bin/run-parts /etc/cron.daily 1> /dev/null

Body: 

corrupted size vs. prev_size
corrupted size vs. prev_size

 

 

I've pinpointed down to the disklocation.sh causing this issue, however I'm not sure why it's sending these emails. Anyone know how can I debug further? I created a support thread here with diagnostics

 

Nevermind first post, this is likely due to a bug with smartmontools, or the compiler used for it (might be related to Unraid OS somehow)

 

https://github.com/smartmontools/smartmontools/issues/233

php /usr/local/emhttp/plugins/disklocation/pages/cron_disklocation.php cronjob

 

Looks like this is happening to two drives.

SMART: /dev/nvme0n1         ACTIVE   corrupted size vs. prev_size
(1b7852b855)  done.
SMART: /dev/nvme1n1         ACTIVE   corrupted size vs. prev_size
(1b7852b855)  done.

running the commands `smartctl -x --all --json /dev/nvme0n1` gives some interesting information, does this mean anything to you?

"smartctl": {
    "version": [
      7,
      4
    ],
    "pre_release": false,
    "svn_revision": "5530",
    "platform_info": "x86_64-linux-6.1.79-Unraid",
    "build_info": "(local build)",
    "argv": [
      "smartctl",
      "-x",
      "--all",
      "--json",
      "/dev/nvme0n1"
    ],
    "messages": [
      {
        "string": "Read Self-test Log failed: Invalid Field in Command (0x002)",
        "severity": "error"
      }
    ],
    "exit_status": 4
  },

 

I found this thread , and it seems like the latest build should fix this issue. Is there any way I can install this on unraid to test? Which file should I be installing?

Edited by bobokun

  • Author
3 hours ago, bobokun said:
php /usr/local/emhttp/plugins/disklocation/pages/cron_disklocation.php cronjob

 

Looks like this is happening to two drives.

SMART: /dev/nvme0n1         ACTIVE   corrupted size vs. prev_size
(1b7852b855)  done.
SMART: /dev/nvme1n1         ACTIVE   corrupted size vs. prev_size
(1b7852b855)  done.

running the commands `smartctl -x --all --json /dev/nvme0n1` gives some interesting information, does this mean anything to you?

"smartctl": {
    "version": [
      7,
      4
    ],
    "pre_release": false,
    "svn_revision": "5530",
    "platform_info": "x86_64-linux-6.1.79-Unraid",
    "build_info": "(local build)",
    "argv": [
      "smartctl",
      "-x",
      "--all",
      "--json",
      "/dev/nvme0n1"
    ],
    "messages": [
      {
        "string": "Read Self-test Log failed: Invalid Field in Command (0x002)",
        "severity": "error"
      }
    ],
    "exit_status": 4
  },

 

I found this thread , and it seems like the latest build should fix this issue. Is there any way I can install this on unraid to test? Which file should I be installing?

 

Best is not to install anything unless you know what you're doing. It's relatively easy if the package is already built, other than that. Wait for next Unraid version that includes a newer smartmontools package. Earlier I used to include a newer version of smartmontools with Disk Location plugin, but I don't want to maintain that.

 

As for now, Disk Location threat both of you NVMe drives the same and cant tell a difference looking at the unique ID it has been given.

Is there any way I can request a feature to be able to opt out of certain drives from SMART updates? Ideally I would want to keep the smart updates scheduled but not receive these emails daily. If I could opt out of those two nvme's from being updated that would help until the new version of smartmontools gets upgraded with the new Unraid version.

  • Author
11 minutes ago, bobokun said:

Is there any way I can request a feature to be able to opt out of certain drives from SMART updates? Ideally I would want to keep the smart updates scheduled but not receive these emails daily. If I could opt out of those two nvme's from being updated that would help until the new version of smartmontools gets upgraded with the new Unraid version.

Nah, it's either disabling the cronjob entirely from Disk Location or leave it as it is. "S.M.A.R.T updates" under Settings

  • 2 weeks later...

I have been using this plugin for a while. recently I moved some disks around the server slots, and resaved the tray locations. Now, the unraid info labels are messed up for my disks. they seem to be mismatched with the disk or pool names I see on the main tab. What could have caused it, and how can I refresh this state?

  • Author
On 5/18/2024 at 7:49 AM, apandey said:

I have been using this plugin for a while. recently I moved some disks around the server slots, and resaved the tray locations. Now, the unraid info labels are messed up for my disks. they seem to be mismatched with the disk or pool names I see on the main tab. What could have caused it, and how can I refresh this state?

Did you try "Force update all"?

  • 3 weeks later...

All disks shown in "Empty tray" colors.

Latest Unraid (gen release), latest Disk location plugin, configured only for geometry (number, orientation and numbering) and manual  tray allocations ((as I have done before when running a shelf, without problems).

Now, the Disk Location plugin after a Force Scan All and some days of running) shows all disks with the "Tray Empty" colors ie does not show Parity in Red, Data in Blue etc (standard colors no custom)

I'd be very grateful for any suggestions or directions for collecting further info.

Thank you.

(Very grateful for this plugin. It normally does what it says without fuss and minimal thinking. And it is so very helpful. For example, I was going to check the Unraid emulation of a faulty disk and want to be sure that the disk I pull is what I think it is.)

image_2024-06-10_192957849.png

  • Author
2 hours ago, anwsmh said:

All disks shown in "Empty tray" colors.

Latest Unraid (gen release), latest Disk location plugin, configured only for geometry (number, orientation and numbering) and manual  tray allocations ((as I have done before when running a shelf, without problems).

Now, the Disk Location plugin after a Force Scan All and some days of running) shows all disks with the "Tray Empty" colors ie does not show Parity in Red, Data in Blue etc (standard colors no custom)

I'd be very grateful for any suggestions or directions for collecting further info.

Thank you.

(Very grateful for this plugin. It normally does what it says without fuss and minimal thinking. And it is so very helpful. For example, I was going to check the Unraid emulation of a faulty disk and want to be sure that the disk I pull is what I think it is.)

 

Did you try to go to "Tray Allocations" -> "Reset all custom colors"?

22 hours ago, FlamongOle said:

 

Did you try to go to "Tray Allocations" -> "Reset all custom colors"?

Worked brilliantly instantly. Thank you very much FlamongOle..

Hello,

 

I have added drives and after some fuss configuring 520 --> 512 sector size and other hurdles, I realized that the Disk location is "stuck" and unable to update. Some tabs are missing and I can basically only view the pane.

 

I have tried to uninstall and reinstall, and not sure where to blow out the files to start over from scratch. any help is appreciated!

 

EDIT: latest OS, And SW.

 

disklocation.PNG

Edited by krzykrl
moar info

Hi,

 

Firstly great plugin! very helpful

 

Now I have a slight issue with the columns/rows setup and was hoping there was an override somewhere i'm missing. My Drive layout looks like the picture attached, where bays 0-5 are in s standard layout but 6+7 are side by side and not ontop of each other.

 

Is it possible to override the plugin in some way so that my layout matches the physical one?

 

Thanks in Advance

 

cw20v1-x62-4-2969094.jpg

  • Author
On 6/17/2024 at 1:47 PM, GalballyJ said:

Hi,

 

Firstly great plugin! very helpful

 

Now I have a slight issue with the columns/rows setup and was hoping there was an override somewhere i'm missing. My Drive layout looks like the picture attached, where bays 0-5 are in s standard layout but 6+7 are side by side and not ontop of each other.

 

Is it possible to override the plugin in some way so that my layout matches the physical one?

 

Thanks in Advance

 

It won't match, is not intended to match all the various physical layouts out there, but the closest thing you can do is either create two separate groups (this will be closest to match the physical layout). Yon define the start number of each group.

 

Or you can set it up to 3 columns, 2 rows, 8 total, override.

 

examples:

dl_layout_ex.png.32b04a7c0dd673fe9a67fd45fd94e0ef.png

  • Author
On 6/16/2024 at 7:22 PM, krzykrl said:

Hello,

 

I have added drives and after some fuss configuring 520 --> 512 sector size and other hurdles, I realized that the Disk location is "stuck" and unable to update. Some tabs are missing and I can basically only view the pane.

 

I have tried to uninstall and reinstall, and not sure where to blow out the files to start over from scratch. any help is appreciated!

 

EDIT: latest OS, And SW.

 

You can always try to wipe/rename the disklocation.sqlite from /boot/config/plugins/disklocation:

mv /boot/config/plugins/disklocation/disklocation.sqlite /boot/config/plugins/disklocation/disklocation.sqlite.bak

 

But if it halts, it might be wrong config with the devices still. You can try to run the updater manually to see which device it fails (if any):

php -f /usr/local/emhttp/plugins/disklocation/pages/cron_disklocation.php force

 

Hi all,

I may be missing something but it seems like the plugin reads my parity drives as cache.

And i dont find any way to change colors on ready assigned drives.

I have tried to reset all colors but still the same issue.

 

regards

//Hans

 

EDIT:

Dont mind, seems like it rescanned an old database with old drives..
Problem solved after deleting the old databases.

Edited by Hansa
Problem solved.

On 6/19/2024 at 7:27 AM, FlamongOle said:

 

You can always try to wipe/rename the disklocation.sqlite from /boot/config/plugins/disklocation:

mv /boot/config/plugins/disklocation/disklocation.sqlite /boot/config/plugins/disklocation/disklocation.sqlite.bak

 

But if it halts, it might be wrong config with the devices still. You can try to run the updater manually to see which device it fails (if any):

php -f /usr/local/emhttp/plugins/disklocation/pages/cron_disklocation.php force

 

That did it!

 

Thank you for all that you do on this plugin, i find it very userful!

  • 2 weeks later...

Hello,
I'm having this problem with Disk Location.
Both of my nvme cache drives, the manufacturer is not recognized.

I had a pair of Samsung before and I had to replace them.
Now, I can see the model but the manufacturer info is missing (Crucial Drives)
What can I do to force recognition of the manufacturer ?

Cache.PNG

Manufacturer.PNG

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.