Jump to content
olehj

[PLUGIN] Disk Location

349 posts in this topic Last Reply

Recommended Posts

Disk Location is a different disk tray layout plugin which uses the harddisk path to locate the drives. It supports only drives found by the SCSI Generic drivers, which is usually SATA and nVME including devices attached to hardware storage/raid cards.

 

This also include a handy "Locate" function which help you allocate the tray from where the disk is installed in, if you have hotswap trays with their own HD-activity LED (or made your own custom ones). This might not work on SSD's or maybe even some other types of harddrives.

 

You can change the direction of the trays horizontal and vertical as well as the numbering direction of the trays, make some override to add more storage "not included in the hotswap tray area", change the background colors of the different type of storage (unraid, unassigned and empty), and more. Doing changes will not delete or clear any configuration and values are mainly stored based upon serial number and model name of the harddisk.

 

For more information and help, use the inline Help function from Unraid.

 

It might take some time to install and update the plugin as it goes trough all your drives, more you have, longer it will take. For me it takes about 5-10 seconds with 15 harddisks, but upto 30-60 seconds if they need to wake up from standby.

 

Unraid 6.7.2 or later must be installed.

 

Download plugin using this link here: https://raw.githubusercontent.com/olehj/disklocation/master/disklocation-master.plg

Or install it via "Community Applications" plugin.

 

For unstable development build, check next post.

 

Screenshots:

DiskLocation DevicesDiskLocation InformationDiskLocation ConfigurationDiskLocation Config Tray

 

 

Please report bugs and feature requests at github: https://github.com/olehj/disklocation

Edited by olehj
Updated requirement for the plugin

Share this post


Link to post

DEPRECATION INFO

 

This plugin support only Unraid 6.7.2 and onward! Development build might be installed otherwise, but is not recommended or supported!

 

AVAILABLE BUILDS

 

Stable:

 

Development (not recommended at all - but you know, brave ppl's!):

 

To swap between stable and development builds, please delete existing plugin from the plugin manager before you install the other one. Be aware that database changes is NOT backwards compatible, but the old database should be backed up at /boot/config/plugins/disklocation/ for every database version (v0/v1/v2... etc.) it upgrades from. Else other info might be available via me on this forum, usually for debugging purposes.

Do not update development builds automatically unless instructed to do so, unless you like risk. After testing and debugging and the new stable release containing the fixes is launched, I advice you to remove the development build and install the stable one instead!

Edited by olehj
Build info, and updated deprecation

Share this post


Link to post
1 minute ago, uldise said:

a quick question: can you enter devices fully manually?

No, but it should pick up everything based upon PATH (3:0:0:0 etc), then you can select the drives you wanna include.

Share this post


Link to post

i'm running unraid on top of esxi. so not all drives belongs to unraid VM.

but if i could store info from all 24 bay server drives in this plugin, this would be very cool :)

Share this post


Link to post
51 minutes ago, uldise said:

i'm running unraid on top of esxi. so not all drives belongs to unraid VM.

but if i could store info from all 24 bay server drives in this plugin, this would be very cool :)

If the VM got passthrough or any recognizable harddisk device under unraid, it should work. I dunno if you already tried the plugin and checked the contents in the "Config" page?

Eventually, how does the drives identify under /dev/ ? and can you do a smartctl on these?

Share this post


Link to post

sorry have not tried jet. as i wrote, i can use your plugin with very success, if i can manually enter information about drives that is used for other esxi VMs - then i would have one place to store information on all drives in server.

Share this post


Link to post

Hello Olejh!

 

First, I was really awaiting this plugin, and it looks amazing! Testing it on 6.6.6, on a Dell R510, with a H200 in IT mode. Drive lights seems to be working normally when I access the array or preclear disks.

 

However, I get no disk light activity when I hit the Locate buttons. Tried different disks, and waited a bit to see if it would light up, to no avail.

 

Any idea?

 

Thanks in advance

Share this post


Link to post
2 hours ago, TeeNoodle said:

Hello Olejh!

 

First, I was really awaiting this plugin, and it looks amazing! Testing it on 6.6.6, on a Dell R510, with a H200 in IT mode. Drive lights seems to be working normally when I access the array or preclear disks.

 

However, I get no disk light activity when I hit the Locate buttons. Tried different disks, and waited a bit to see if it would light up, to no avail.

 

Any idea?

 

Thanks in advance

Hello and thank you!

 

The Locate function is very vague and only calls smartctl -x /dev/bsg/PATH every half second.

 

You can test manually by using that command, just replace PATH with the path number available (you can see it from the list, or by ls /dev/bsg). Everytime you run the command, the LED on the HD might light up. If the smart data does not work, goes too fast, then the locate button won't work either.

 

Sometimes I also discovered I might need to click "Locate" maybe more than one time, or just go to another device before clicking the other one.

 

Consider this function neat if it works, else, don't really expect it. I just discovered that smartctl activated the LED's for the mechanical drives here, so I thought it would be a fun and useful addition to the plugin.

 

But give the above command a go, and check the light when you press enter. It uses -x because it typically takes longer time than other.

Share this post


Link to post

This is cool, thanks.

 

Would you consider adding a way to mark a "tray" as hidden / not really there?

 

My case has 5 hot swap bays and 3 trays across the bottom. I could add 2 columns of 5 rows, but I'd like to hide/remove two of the "trays" from the first column since they don't really exist.

 

Also, would you consider putting in a request to upgrade smartmontools in the 6.7 series? Then you wouldn't have to overwrite it.

Share this post


Link to post
46 minutes ago, ljm42 said:

This is cool, thanks.

 

Would you consider adding a way to mark a "tray" as hidden / not really there?

 

My case has 5 hot swap bays and 3 trays across the bottom. I could add 2 columns of 5 rows, but I'd like to hide/remove two of the "trays" from the first column since they don't really exist.

 

Also, would you consider putting in a request to upgrade smartmontools in the 6.7 series? Then you wouldn't have to overwrite it.

 

You can add 1 row of 5, then you set override to 8. Then you will have 5+3 as a tray layout.

 

smartmontools is easily written into it and seems to cause no trouble, and it will only update as long as it is newer than existing package. It will be removed when Unraid updates the system to use it native, I don't think there's any point for a special request for it now, as it is probably around the corner anyway ;)

 

edit: smartmontools 7 is already a part of the 6.7 branch.

Edited by olehj

Share this post


Link to post
1 hour ago, olehj said:

You can add 1 row of 5, then you set override to 8. Then you will have 5+3 as a tray layout.

Hey that worked!  To complicate things further, I also have this 8 drive external case :) 

  https://www.pc-pitstop.com/sata_enclosures/scsat84xt.asp 

any thoughts on having columns of 3, 5, and 8 drives? I'll probably add a second 8 drive case in the future to max out the LSI 9201-16e card.

 

update... actually I can add the 5 and 3 together and have two columns of 8. That will work.

 

1 hour ago, olehj said:

edit: smartmontools 7 is already a part of the 6.7 branch.

Oh you're right! Does the plugin install the package only when needed?

Edited by ljm42

Share this post


Link to post
6 hours ago, ljm42 said:

Hey that worked!  To complicate things further, I also have this 8 drive external case :) 

  https://www.pc-pitstop.com/sata_enclosures/scsat84xt.asp 

any thoughts on having columns of 3, 5, and 8 drives? I'll probably add a second 8 drive case in the future to max out the LSI 9201-16e card.

 

update... actually I can add the 5 and 3 together and have two columns of 8. That will work.

 

Oh you're right! Does the plugin install the package only when needed?

If the disks are recognized in your system as internal single SCSI drives, you should be good to go. Else we have only this one option for override, so yes, 2*8 trays is what you'd be looking at then. As a side note, you can also invert the override, by setting it to like 3 trays (row or columns) and override to 8 (but it might be displayed different). Play around :P

 

The plugin installs it via installpkg and are completely managed via Unraid itself, my plugin just list it as a thing to be installed. So yes, it will only install if the installed version is older than the one already installed.

Share this post


Link to post

Great app, thank you! Feature request. Support for 36 bay servers (24 front & 12 back) or just more granular control over tray layout. 

Share this post


Link to post
17 minutes ago, spacebender said:

Great app, thank you! Feature request. Support for 36 bay servers (24 front & 12 back) or just more granular control over tray layout. 

Should support 36 (and more) just fine, just define your rows and columns and eventually overrides. As for now the tray layout would require a total redesign and the configuration would be to excessive if it should be configured for every possible server layouts, so I believe it won't happen any time soon.

Rather try to work around it like setting it up to 24 in front eg. 4*6 (or whatever it looks like) with 36 set to override to get your extra 12 on the side.

Share this post


Link to post

I would 2nd the request to have the ability to show different locations of Drives.  I have a 36 bay case as well.  Also would be nice if the warranty field was a fill in like the Purchased field instead of a length.  Since most major manufacturers give you the ability to look up the warranty.

Share this post


Link to post

screenshot_04_config_override.thumb.png.197edb097412763eb393f9b110bc0daf.png2019.01.28 released: Added slightly better support for 36 tray servers and in general override tray optimization.

 

For 36 tray servers, set trays to ex:

 

Grid: 4 columns * 6 rows

Override: 36

 

This will make 2 sections, one for 24 trays and the last for the remaining 12: 4*6 + 4*3

 

Edited by olehj

Share this post


Link to post

Thanks for the update.  It looks great.  Thanks for the fast response.  Any plans for future results for adding in exact warranty date vs the number of months.

 

Share this post


Link to post
1 minute ago, godfellaz3 said:

Thanks for the update.  It looks great.  Thanks for the fast response.  Any plans for future results for adding in exact warranty date vs the number of months.

 

No timeline for that yet - it's likely that this will be included if I have to do any other adjustments to the existing database. As for now I try to limit that, and consider rather either changing the purchase date so it fits your warranty. I expected warranty to be valid from the purchase date (at least it is here in this country), and not when the factory sets it.

Share this post


Link to post
41 minutes ago, olehj said:

I expected warranty to be valid from the purchase date (at least it is here in this country), and not when the factory sets it.

Here in the USA, purchase date is the official warranty term, but if you are doing an online RMA, it's a pain to get warranty after the factory date even if you legally still have warranty. Digging out a receipt and getting the manufacturer to honor it isn't worth the hassle most of the time.

Share this post


Link to post
15 minutes ago, jonathanm said:

Here in the USA, purchase date is the official warranty term, but if you are doing an online RMA, it's a pain to get warranty after the factory date even if you legally still have warranty. Digging out a receipt and getting the manufacturer to honor it isn't worth the hassle most of the time.

Alright, I will probably add this in a future update. Feel free to add a feature request at github, nice for a reminder

Share this post


Link to post

Hi Olehj. 

 

Thank you for this. It is very helpful.

 

Is there a way to select what fields show up on the main page? Currently it shows everything. It would be nice to turn off things like path, model #, speed, temp, etc. This way it’s easier to read.

 

I have not yet assigned all my drives, but it takes like 60 seconds to load the page. I have 15 drives. Is this normal? I only have one un-assigned drive. 

 

Thanks again.

 

h.

Share this post


Link to post
4 hours ago, hernandito said:

Hi Olehj. 

 

Thank you for this. It is very helpful.

 

Is there a way to select what fields show up on the main page? Currently it shows everything. It would be nice to turn off things like path, model #, speed, temp, etc. This way it’s easier to read.

 

I have not yet assigned all my drives, but it takes like 60 seconds to load the page. I have 15 drives. Is this normal? I only have one un-assigned drive. 

 

Thanks again.

 

h.

Currently no ways of selecting what to display, it might be added in the future. I also had some issues adding a 5th tab - but I guess I have another idea of implementing this.

It's hard to say what's normal or not, it really depends on how fast it scan's trough all of your drives with smartctl -x. I have 15 drives as well, and it takes ~5 seconds. It might be that your drives needs to be spun up from a standby state and wakes up drives one by one, so the question is: does it happen even after a page refresh, or only after "a while"?

Share this post


Link to post

Sudden UPDATE!

 

###2019.01.30(b)

- Commit #21 - FEATURE: Added options to select what to show at Devices page

- Commit #20 - FEATURE: Added temperature unit selection, C/F/K

- Commit #19 - BUG: Fixed HDD reported as SSD if rotation was 0

- FEATURE: You can now choose between Unraid version (select months: 12/24/36...) or Manual ISO dates (YYYY-MM-DD) in the warranty section, a config switch is required before this is accessible.

- Updated Help for new features.

- Database will be backed up during install because it will be upgraded.

Edited by olehj

Share this post


Link to post
20 hours ago, hernandito said:

I have not yet assigned all my drives, but it takes like 60 seconds to load the page. I have 15 drives. Is this normal? I only have one un-assigned drive. 

With the new update 2019.01.30b, you can try to deselect "Disk Operation LED" and check if the response will be faster. This runs an additional smart query for drives not in Unraid array. Then you can enable it when the creation of the array is done. A smart query is likely to run slower if the system is very busy, and also slower if it is an unassigned drive because it can't get cached unraid data.

Share this post


Link to post

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.