[PLUGIN] Disk Location


Recommended Posts

1 minute ago, CorneliousJD said:

Gottcha, the layout display is what's used on the dashboard when you enable that though, would be nice (but low priority) to have an option to size both of them differently I guess. The default sizing looks perfect on the the "Devices" page but is too small IMO for the dashboard widget that you add.

I might add an adjustable factor in the future, I'll list it on github meanwhile.

Link to comment

Update 2020.03.04

  • Commit #139 - FEATURE: Added the ability to turn off scanning of device during a plugin update. If it's disabled it will rely on manual updates (Force Scan All) and S.M.A.R.T update schedules. (This will make updates and reboots faster though)
  • Commit #138 - FEATURE: Added possibility to adjust the size of the preview/dashboard layout.

@CorneliousJD something for you 😛 

Link to comment

Firstly, many thanks for this Plug-in.  I only came across it a few days ago but I find it helpful and easy to set up.

 

Just one minor observation I have a couple of Toshiba hard drives that are reported as being SSDs rather than regular hard drives.  (Actually, I don't have any SSDs.)  Toshiba model is reported correctly in the plug-in as HDWE150.  It's a 5TB drive.  unRaid reports the drive as TOSHIBA HDWE150 - a 7200 rpm drive.  (info here if interested https://www.toshiba-storage.com/products/toshiba-internal-hard-drives-x300/)


I also have a TOSHIBA HDWA130 (a 3TB drive) which is reported OK by the plug-in, but the manufacturer field is shown empty.  Not sure it that's down to the drive or the plug-in.

 

Obvioulsy these are not critical issues, and the plugin reports other aspects of the drives' data correctly.  Please let me know if you need any further info.

 

Thanks again.

 

S80_UK.

 

 

 

  

Link to comment

Update 2020.03.06

  • Commit #142 - IMPROVEMENT: Differ between SATA SSD, NVMe, and rotational devices.
  • Commit #141 - MINOR ISSUE: Checking for SSD only if rotation rate is not reported, some drives should show rotation rates again (ex. Toshiba drives).

"Force Scan All" might be needed to update all the devices.

 

@S80_UK fixed.. probably.

Link to comment
7 hours ago, olehj said:

Update 2020.03.06

  • Commit #142 - IMPROVEMENT: Differ between SATA SSD, NVMe, and rotational devices.
  • Commit #141 - MINOR ISSUE: Checking for SSD only if rotation rate is not reported, some drives should show rotation rates again (ex. Toshiba drives).

"Force Scan All" might be needed to update all the devices.

 

@S80_UK fixed.. probably.

@olehj - Wow! That was quick!  Thank you.  I just updated, rescanned, etc.

 

Yes, the false SSD identification is gone, and the Toshiba drives are showing the correct rotation rate info as well.  Many thanks for that. 

 

For the other issue which was with the Toshiba HDWA130, I see that the "Model family" string in the SMART data is also shown as empty when I access that from the Dashboard.  SInce the "Device model" string is present and since that also includes the manufacturer, I would say that's not an issue you can fix - the flaw is in the missing SMART data.  So thanks again for the above fix.

  • Like 1
Link to comment

Ive been trying to figure out this problem on my own for some time but and tired of messing around. I looked at the screenshots that you have on page on and I am missing the configure button and do not know how to re-add it. Ive tried removing the app and re-installing it but that hasnt seemed to work. Also it seems to be stuck with data from old drives that i had installed previously. For example in the screenshoot the 2TB HDD is no longer in my system but it says that it is active. So I need some help. Thanks

Untitled.jpg

Link to comment
1 hour ago, jchase222 said:

Ive been trying to figure out this problem on my own for some time but and tired of messing around. I looked at the screenshots that you have on page on and I am missing the configure button and do not know how to re-add it. Ive tried removing the app and re-installing it but that hasnt seemed to work. Also it seems to be stuck with data from old drives that i had installed previously. For example in the screenshoot the 2TB HDD is no longer in my system but it says that it is active. So I need some help. Thanks

Hi

 

The screenshots are outdated, and the information was given in the forum at some point. Though I will update the first post later.

 

The plugin is divided into two sections:

Tools -> Disk Location: This is the visible and configured section of your system

Settings -> Disk Location: This is where you configure your system. "Force Scan All" button under "Tray Allocations" will help solve most of the problems.

Link to comment
On 3/4/2020 at 3:44 PM, olehj said:

Update 2020.03.04

  • Commit #139 - FEATURE: Added the ability to turn off scanning of device during a plugin update. If it's disabled it will rely on manual updates (Force Scan All) and S.M.A.R.T update schedules. (This will make updates and reboots faster though)
  • Commit #138 - FEATURE: Added possibility to adjust the size of the preview/dashboard layout.

@CorneliousJD something for you 😛 

Awesome - Just one question, where do I find this feature at? I've tried taking a look and I just don't see it, and I'm sure I'm overlooking something but I figured I'd ask :) 

 

EDIT: Nevermind I found it! Size divider for mini layout - thanks!!!

Edited by CorneliousJD
  • Like 1
Link to comment
  • 2 weeks later...
On 3/2/2020 at 10:43 AM, olehj said:

Update 2020.03.03 (probably 3rd somewhere in the world already)

  • Commit #136 - IMPROVEMENT: Added help text for the "System" tab (also renamed the tab from "System Files").
  • Commit #135 - FEATURE: Added an "Undelete" button under "System" tab for undeleting manually deleted devices.

@mistah ..or you can use this new function when you update the plugin 😛

 

The buttons under "System" are only available when it's possible to use them, otherwise hidden if there's nothing to do.

All I had to do was force scan and there you go.. they all showed up! I love this plug in. 9)

  • Thanks 1
Link to comment
plugin: installing: https://raw.githubusercontent.com/olehj/disklocation/master/disklocation-master.plg
plugin: downloading https://raw.githubusercontent.com/olehj/disklocation/master/disklocation-master.plg
plugin: downloading: https://raw.githubusercontent.com/olehj/disklocation/master/disklocation-master.plg ... done

Installing plugin...

Plugin folder /boot/config/plugins/disklocation already exists

Checking existing package /boot/config/plugins/disklocation/disklocation.2020.03.18.zip...

Latest package does not exist /boot/config/plugins/disklocation/disklocation.2020.03.18.zip

Saving any previous packages from /boot/config/plugins/disklocation

Attempting to download plugin package https://github.com/olehj/disklocation/archive/master.zip...

Package disklocation.2020.03.18.zip downloaded to /boot/config/plugins/disklocation

Extracting plugin package...
Archive: /boot/config/plugins/disklocation/disklocation.2020.03.18.zip
e599504d5f93068fbcffe0329e5ed577e773adc4
creating: /tmp/disklocation-packages/disklocation-master/
inflating: /tmp/disklocation-packages/disklocation-master/COPYING
inflating: /tmp/disklocation-packages/disklocation-master/README.md
inflating: /tmp/disklocation-packages/disklocation-master/disklocation-devel.plg
inflating: /tmp/disklocation-packages/disklocation-master/disklocation-master.plg
creating: /tmp/disklocation-packages/disklocation-master/disklocation/
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocation.cron
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocation.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocationConfig.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocationConfig_allocations.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocationConfig_drives.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocationConfig_main.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocationConfig_system.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocation_dashboard.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocation_devices.page
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/disklocation_info.page
creating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/config.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/config_drives.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/config_system.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/config_trayalloc.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/devices.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/info.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/locate.php
creating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/script/
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/script/locate_script_bottom.js
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/script/locate_script_top.js.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/sqlite_tables.php
creating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/styles/
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/styles/disk.css.php
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/styles/help.css
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/styles/signals.css
inflating: /tmp/disklocation-packages/disklocation-master/disklocation/pages/system.php

Extraction done.

Package file disklocation.2020.03.18.zip extracted.

Adding disks into database, please wait... this might take a while...

Warning: SQLite3::exec(): table settings has no column named grid_count in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 442
table settings has no column named grid_count
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 475
cannot start a transaction within a transaction
Warning: SQLite3::exec(): no such column: hash in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 498
no such column: hash
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 527
cannot start a transaction within a transaction
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 629
cannot start a transaction within a transaction
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 659
cannot start a transaction within a transaction
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 692
cannot start a transaction within a transaction[151200] system.php:92 @ functions: Debug function active.
[151200] system.php:1083 @ array: LSSCSI:24
[151200] system.php:1100 @ loop: Scanning: 0:0:0:0 Node: /dev/sg0
[151200] system.php:1100 @ loop: Scanning: 2:0:1:0 Node: /dev/sg3
[151201] system.php:1110 @ SMART: #:1|DEV:2:0:1:0=array
[151201] system.php:1133 @ HASH: #:1:3c20c5acb192a8368271ec0a27bdfe26c4d8e4e732ccca6a909a88c05bad3254

Warning: SQLite3::query(): Unable to prepare statement: 1, no such column: hash in /usr/local/emhttp/plugins/disklocation/pages/system.php on line 311

Fatal error: Uncaught Error: Call to a member function fetchArray() on bool in /usr/local/emhttp/plugins/disklocation/pages/system.php:313
Stack trace:
#0 /usr/local/emhttp/plugins/disklocation/pages/system.php(1135): find_and_unset_reinserted_devices_status(Object(DLDB), '3c20c5acb192a83...')
#1 {main}
thrown in /usr/local/emhttp/plugins/disklocation/pages/system.php on line 313

Plugin installed successfully!
plugin: installed

Updating Support Links

Getting an error when installing app and I am getting this when I try to open it

Warning: SQLite3::exec(): table settings has no column named grid_count in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 442
table settings has no column named grid_count
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 475
cannot start a transaction within a transaction
Warning: SQLite3::exec(): no such column: hash in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 498
no such column: hash
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 527
cannot start a transaction within a transaction
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 629
cannot start a transaction within a transaction
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 659
cannot start a transaction within a transaction
Warning: SQLite3::exec(): cannot start a transaction within a transaction in /usr/local/emhttp/plugins/disklocation/pages/sqlite_tables.php on line 692
cannot start a transaction within a transaction
Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: settings_group in /usr/local/emhttp/plugins/disklocation/pages/system.php on line 1298

Fatal error: Uncaught Error: Call to a member function fetchArray() on bool in /usr/local/emhttp/plugins/disklocation/pages/system.php:1300 Stack trace: #0 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(520) : eval()'d code(21): require_once() #1 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(520): eval() #2 /usr/local/emhttp/plugins/dynamix/template.php(60): require_once('/usr/local/emht...') #3 {main} thrown in /usr/local/emhttp/plugins/disklocation/pages/system.php on line 1300

Any ideas?

Link to comment
5 hours ago, Exilepc said:

Getting an error when installing app and I am getting this when I try to open i

Any ideas?

Try to delete the entire plugin and reinstall it, looks like something went wrong during download. Maybe you have to delete the database also under /boot/config/plugins/disklocation/disklocation.sqlite if the "Settings -> Disk Location -> System" does not exists or shows any database

 

 

Link to comment
On 3/27/2020 at 8:22 PM, olehj said:

Try to delete the entire plugin and reinstall it, looks like something went wrong during download. Maybe you have to delete the database also under /boot/config/plugins/disklocation/disklocation.sqlite if the "Settings -> Disk Location -> System" does not exists or shows any database

 

 

I have reinstalled 3-4 times without any luck, I have also confirmed the deletion all of the files when uninstalled.

Link to comment
1 hour ago, Exilepc said:

I have reinstalled 3-4 times without any luck, I have also confirmed the deletion all of the files when uninstalled.

I can't seem to find anything wrong here. Can you verify that the "/boot/config/plugins/disklocation/disklocation.sqlite" exists at all after installation? And that for some reason this is not mounted as read-only for whatever reason.

 

You can try the new version which fixes another issue as described in the next post:

Edited by olehj
Link to comment
  • 2 weeks later...

I'm getting a "Failed disk!" message on the dashboard in this plugin section.  I'm 100% sure there are no failed disks on my system.  I've tried deleting the database on reconfiguring from scratch, but it's still there.  

 

Any clue why it's showing this?

 

TY!

 

Screen Shot 2020-04-11 at 1.01.53 AM.png

Edited by zwolfinger
Attached wrong screenshot
Link to comment
6 hours ago, zwolfinger said:

I'm getting a "Failed disk!" message on the dashboard in this plugin section.  I'm 100% sure there are no failed disks on my system.  I've tried deleting the database on reconfiguring from scratch, but it's still there.  

 

Any clue why it's showing this?

 

TY!

Check if any of the drives have a "FAIL" SMART status. The "Information" tab should point it to the related drive as well.

Link to comment

After doing some more research on this, I see that unraid is having problems with SMART tests against my SAS drives.  When I do a self-test from the cli, I see "Error Counter logging not supported.   Device does not support Self Test logging."   And then I also remembered that these are running on an H800 in individual RAID-0 until my new HBA arrives.  So another reason SMART isn't working.

Feature request:  Ability to turn off SMART/failed drive status.  Or ability to just hide the failed drive status on the dashboard.

 

Thanks!

Edited by zwolfinger
added info about controller.
Link to comment
  • 2 weeks later...

I'm moving over from the server layout plugin.  First of all thanks for this plugin!

Second..  Is there a way to manually add a disk to the database?  I really like the other plugin's "Historical Drives" section.

It kinda give me a history of what was installed and when it was removed.

image.thumb.png.e03f2f46fb04b23e0b61975623feb488.png

Link to comment

Hello Ole-Henrik

 

Due to a dying disk I thought is was a good idea to edit the current disks and  - I cant. The edit-tab is missing

 

According to the Plugins-tab the plug-in is up-to-date (2020.03.18). My unRaid is @ version 6.8.3

 

Any idea how to fix this - got no idea if the plug-in produces any logfiles.

 

This plug-in is still a very desirable and must-have plug-in. Thanks again!

 

image.png.7e2812d5f02337e58aa6f55e8bdc738a.png

 

Edited by sjoerd
Link to comment
16 hours ago, sjoerd said:

Hello Ole-Henrik

 

Due to a dying disk I thought is was a good idea to edit the current disks and  - I cant. The edit-tab is missing

 

According to the Plugins-tab the plug-in is up-to-date (2020.03.18). My unRaid is @ version 6.8.3

 

Any idea how to fix this - got no idea if the plug-in produces any logfiles.

 

This plug-in is still a very desirable and must-have plug-in. Thanks again!

 

image.png.7e2812d5f02337e58aa6f55e8bdc738a.png

 

Did you go under "Settings" and go on "Disk Location" from there? These tabs exists under "Tools" only

  • Thanks 1
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.