Jump to content
theone

Server Layout Plugin for unRAID v6

303 posts in this topic Last Reply

Recommended Posts

Thank you both for your inputs.

 

hernandito,

I like your text layout, but I will not change it at this point - there are too many options and each person would probably want it slightly different with different fields.

I will look for a better way to partition the data to make it more readable.

To make it more readable for now you can disable the fields you don't use much and use the tooltip (which I know is buggy on FF and MSIE  :() for the rest of the info.

 

trutl,

Regarding the Power On Hours - I will look into it - I agree that hours count is enough.

 

Share this post


Link to post

Also, one of my SSDs insists on reporting Power On Hours like this: 11742h+10m+58.720s.

 

Please post a screenshot or text output of the "smartctl --all /dev/sdx" command for your SDD so I can see how it all looks like.

Share this post


Link to post

Also, one of my SSDs insists on reporting Power On Hours like this: 11742h+10m+58.720s.

 

Please post a screenshot or text output of the "smartctl --all /dev/sdx" command for your SDD so I can see how it all looks like.

root@unSERVER:~# smartctl --all /dev/sdg
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.0.4-unRAID] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SandForce Driven SSDs
Device Model:     KINGSTON SV300S37A120G
Serial Number:    50026B773B00E313
LU WWN Device Id: 5 0026b7 73b00e313
Firmware Version: 505ABBF1
User Capacity:    120,034,123,776 bytes [120 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS, ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Jun 17 16:58:05 2015 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  48) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x0021) SCT Status supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   107   107   050    Pre-fail  Always       -       0/16489478
  5 Retired_Block_Count     0x0033   100   100   003    Pre-fail  Always       -       0
  9 Power_On_Hours_and_Msec 0x0032   087   087   000    Old_age   Always       -       11743h+52m+51.840s
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       34
171 Program_Fail_Count      0x0032   000   000   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   000   000   000    Old_age   Always       -       0
174 Unexpect_Power_Loss_Ct  0x0030   000   000   000    Old_age   Offline      -       9
177 Wear_Range_Delta        0x0000   000   000   000    Old_age   Offline      -       5
181 Program_Fail_Count      0x0032   000   000   000    Old_age   Always       -       0
182 Erase_Fail_Count        0x0032   000   000   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 Airflow_Temperature_Cel 0x0000   034   063   000    Old_age   Offline      -       34 (Min/Max 23/63)
194 Temperature_Celsius     0x0022   034   063   000    Old_age   Always       -       34 (Min/Max 23/63)
195 ECC_Uncorr_Error_Count  0x001c   120   120   000    Old_age   Offline      -       0/16489478
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
201 Unc_Soft_Read_Err_Rate  0x001c   120   120   000    Old_age   Offline      -       0/16489478
204 Soft_ECC_Correct_Rate   0x001c   120   120   000    Old_age   Offline      -       0/16489478
230 Life_Curve_Status       0x0013   100   100   000    Pre-fail  Always       -       100
231 SSD_Life_Left           0x0013   100   100   010    Pre-fail  Always       -       0
233 SandForce_Internal      0x0000   000   000   000    Old_age   Offline      -       12857
234 SandForce_Internal      0x0032   000   000   000    Old_age   Always       -       5158
241 Lifetime_Writes_GiB     0x0032   000   000   000    Old_age   Always       -       5158
242 Lifetime_Reads_GiB      0x0032   000   000   000    Old_age   Always       -       89147

SMART Error Log not supported

SMART Self-test Log not supported

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

root@unSERVER:~#

Share this post


Link to post

Thank you both for your inputs.

 

hernandito,

I like your text layout, but I will not change it at this point - there are too many options and each person would probably want it slightly different with different fields.

I will look for a better way to partition the data to make it more readable.

To make it more readable for now you can disable the fields you don't use much and use the tooltip (which I know is buggy on FF and MSIE  :() for the rest of the info.

 

 

Bummer... thank you for considering though. I have already disabled all the things I don't want to see in the Settings page.

 

I wish I could understand php enough to see how its reading and outputting the data... and in which order, and insert a <br> between things or sets of things.

 

 

 

Share this post


Link to post

one of my SSDs insists on reporting Power On Hours like this: 11742h+10m+58.720s.

Attached is a fix for the truncated SSD power-on-hours that you requested.

As I have no SSD can you check and report back if it works - I didn't truncate to much or to little.

unzip and replace the file in /usr/local/emhttp/plugins/serverlayout/php/

serverlayout_constants.zip

Share this post


Link to post

one of my SSDs insists on reporting Power On Hours like this: 11742h+10m+58.720s.

Attached is a fix for the truncated SSD power-on-hours that you requested.

As I have no SSD can you check and report back if it works - I didn't truncate to much or to little.

unzip and replace the file in /usr/local/emhttp/plugins/serverlayout/php/

Yes it is working. Thanks

Share this post


Link to post

theone, THANK YOU for such a great plugin!  I have/had a sheet of paper covered with erased text, arrows pointing to where drives moved to when I was too lazy to erase/re-write and scribbled notes in my mostly illegible handwriting.  I have been meaning to translate it to an electronic format for years but the thought of transcribing 20+ model numbers and serial numbers made me procrastinate in perpetuity.

 

Bummer... thank you for considering though. I have already disabled all the things I don't want to see in the Settings page.

 

I wish I could understand php enough to see how its reading and outputting the data... and in which order, and insert a <br> between things or sets of things.

 

That's all I really need.  I only really care to display UNraid disk number, Model, Serial Number, Capacity and Notes so just adding a <br> between each item would make it more readable and probably not run out of vertical room for me.   

 

As-is, it isn't pleasing to the eye but serves the purpose of being able to find my disks and not having to maintain a pen and paper disk map.

 

My other nit-picky suggestion would be to have a printer-friendly output with the boxes outlined instead of filled with the brushed aluminum background.  My server is in the basement so I print the layout page to take with me when I go down there to add/remove drives.  The current layout prints OK, but wastes toner.

Share this post


Link to post

I have an array with 20x3.5" drives organised in a 5x4 matrix of hot swap bays which are accessible from outside the server.    I also have two 2.5" SSD's which are mounted separately inside the server.  I would love it if there was a way to indicate these last two drives separately  from the main bank (rather like the Flash drive is).

Share this post


Link to post

I have an array with 20x3.5" drives organised in a 5x4 matrix of hot swap bays which are accessible from outside the server.    I also have two 2.5" SSD's which are mounted separately inside the server.  I would love it if there was a way to indicate these last two drives separately  from the main bank (rather like the Flash drive is).

You can add another row or column to put them in and "turn off" the unused slots so they aren't displayed.

Share this post


Link to post

Downloaded and played with it a bit.

 

Because I loaded up my trays such that I had some empty trays between filled trays, I couldn't find out a way to correctly identify which drive was in which tray, short of pulling it out and checking it visually.

 

After doing that, I was ready to rock and roll. :)

 

Thank you for a great plug-in.  I'm so happy not to have to create a 'map' anymore!!

Share this post


Link to post

I have an array with 20x3.5" drives organised in a 5x4 matrix of hot swap bays which are accessible from outside the server.    I also have two 2.5" SSD's which are mounted separately inside the server.  I would love it if there was a way to indicate these last two drives separately  from the main bank (rather like the Flash drive is).

You can add another row or column to put them in and "turn off" the unused slots so they aren't displayed.

Could not see how to "turn off" the unused slots if I added another row.  Probably something I am missing.

 

Another question - I am currently using 2x4GB drives in a RAID-O array to give me a 8GB parity disk.  Any recommended way to handle this case where one logical drive at the unRAID level actually occupies 2 slots in the cage layout? 

 

Finally I notice that my 4TB WD Green drives and my 6TB WD Red drives display blank in the Manufacturers column - is there anything I can do to get the manufacturer displayed? Is there any information you might need to work out why these might not be displayed?

Share this post


Link to post
Finally I notice that my 4TB WD Green drives and my 6TB WD Red drives display blank in the Manufacturers column - is there anything I can do to get the manufacturer displayed? Is there any information you might need to work out why these might not be displayed?

 

I have no problem with any WD drive (but my largest drive is 3TB), but I do have a Hitachi (my cache drive) which displays "Hitachi HDS5C1010CLA382" as the model, with nothing in the Manufacturer column

Share this post


Link to post

I have an array with 20x3.5" drives organised in a 5x4 matrix of hot swap bays which are accessible from outside the server.    I also have two 2.5" SSD's which are mounted separately inside the server.  I would love it if there was a way to indicate these last two drives separately  from the main bank (rather like the Flash drive is).

You can add another row or column to put them in and "turn off" the unused slots so they aren't displayed.

Could not see how to "turn off" the unused slots if I added another row.  Probably something I am missing.

...

On the Data tab in the Preview Server Layout section, click on a slot to toggle it on or off.

Share this post


Link to post

I have an array with 20x3.5" drives organised in a 5x4 matrix of hot swap bays which are accessible from outside the server.    I also have two 2.5" SSD's which are mounted separately inside the server.  I would love it if there was a way to indicate these last two drives separately  from the main bank (rather like the Flash drive is).

You can add another row or column to put them in and "turn off" the unused slots so they aren't displayed.

Could not see how to "turn off" the unused slots if I added another row.  Probably something I am missing.

...

On the Data tab in the Preview Server Layout section, click on a slot to toggle it on or off.

Thanks - that was easy.    I thought I had tried that but obviously not.

Share this post


Link to post

Would it be possible to add a field to the layout to define which SATA card the drive is plugged into? This would be very useful for debugging bad cards and keeping track of what is going through the PCI-E card(s) and what is going through the motherboard. I suppose this can be done in the notes section, but it seems this should be specific to the tray and not to the drive.

Share this post


Link to post

Would it be possible to add a field to the layout to define which SATA card the drive is plugged into? This would be very useful for debugging bad cards and keeping track of what is going through the PCI-E card(s) and what is going through the motherboard. I suppose this can be done in the notes section, but it seems this should be specific to the tray and not to the drive.

 

It would probably have to be manually entered, as there's no easy way to automate it.  You can now get the ata number, if the drive has one, by searching the syslog for the first occurrence of the drive's serial number.  And you can locate the scsi symbol (both scsi 0:0:0:0 and sd 0:0:0:0) by searching for lines with the drive symbol (sdX), or using the lsscsi command.  The SATA ports are associated with the scsi symbol.  You can get the SATA controllers from the lspci command (usually as 'SATA controller' but sometimes as 'Serial ATA' and 'controller').  But I don't know an easy way to reliably associate the scsi symbols with the PCI ID's of the SATA controllers.

Share this post


Link to post

I was imagining that to be a manual step that would be done when first building the server and updated when the server is modified. I mainly want it because I can never remember how I have my wires plugged in. Automation seems nice, but I agree, I don't think it's attainable.

Share this post


Link to post

Just thought I would comment on how useful this plugin is to me right now.

 

I am currently in the process of upsizing parity and disk1 from 4TB to 6TB. Then I will reuse those 4TB disks to upsize disk4 and disk5, my last 3TB disks. Counting preclears for the new drives, and parity checks after each rebuild, this whole process will take well over a week.

 

Thanks to this plugin, I can easily keep track of which drives are where as they get reassigned.

 

I will wait until all the upgrades are done, then shutdown and remove the 3TB drives I won't be using in the array anymore, and put all the drives in their final positions.

 

Only had to shutdown and open the case at the beginning, and will do it once again at the end.

Share this post


Link to post

I know I did that. This is what the complete log tells me:

 

plugin: installing: https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout.plg

plugin: downloading https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout.plg

plugin: downloading: https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout.plg ... done

 

Installing plugin...

 

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

 

Checking existing package /boot/config/plugins/serverlayout/serverlayout-package-2015.06.15.tar.gz...

 

Latest package does not exist /boot/config/plugins/serverlayout/serverlayout-package-2015.06.15.tar.gz

 

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

mv: cannot stat '/boot/config/plugins/serverlayout/serverlayout-package-*': No such file or directory

 

Attempting to download plugin package https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout-package-2015.06.15.tar.gz...'>https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout-package-2015.06.15.tar.gz...

 

Package server down https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout-package-2015.06.15.tar.gz - Plugin cannot install

 

Reverting back to previously saved packages...

 

No previous packages to restored

 

Plugin install failed

plugin: run failed: /bin/bash retval: 1

Share this post


Link to post

I know I did that. This is what the complete log tells me:

 

plugin: installing: https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout.plg

plugin: downloading https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout.plg

plugin: downloading: https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout.plg ... done

 

Installing plugin...

 

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

 

Checking existing package /boot/config/plugins/serverlayout/serverlayout-package-2015.06.15.tar.gz...

 

Latest package does not exist /boot/config/plugins/serverlayout/serverlayout-package-2015.06.15.tar.gz

 

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

mv: cannot stat '/boot/config/plugins/serverlayout/serverlayout-package-*': No such file or directory

 

Attempting to download plugin package https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout-package-2015.06.15.tar.gz...'>https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout-package-2015.06.15.tar.gz...

 

Package server down https://raw.githubusercontent.com/theone11/serverlayout_plugin/master/serverlayout-package-2015.06.15.tar.gz - Plugin cannot install

 

Reverting back to previously saved packages...

 

No previous packages to restored

 

Plugin install failed

plugin: run failed: /bin/bash retval: 1

 

Doesn't get to the root of the problem, but you could download the tar.gz manually and copy it across to the appropriate folder.  See if that works.

Share this post


Link to post

It is a combination of two things which went wrong here.

 

1. There is a mistake in the PLG itself (TEMP variable should be without the quotes to allow the * to expand)

 

2. The server could not be reached to download the files

 

For the first issue, there needs to be an update to the PLG file itself

 

For the second issue make sure you have a working internet connection when installing the plugin.

 

Share this post


Link to post

Hey Guys,

I seem to have a similar problem to those early on that experienced drives not showing up.  In my case I believe the issue relates to my use of SAS drives.  The discovery string "ata-" works fine for my cache SSD, but I believe i need an additional "if else" statement to identify SCSI (i.e. "scsi-")

 

Any chance adding that is a possibility?

 

Thanks!

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.