This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
add status column to Disk |Info to see if disk is instandby.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
add status column to Disk |Info to see if disk is instandby.
Actually is not easy to know if my disk are in standby or not, I configure parameter in WebGUI to select "Disable,5mint, 10, etc...", But Is not possible to see or to know if the disk go to standby really or not.
I think is a great ad-on to Disk | Info page ( recently tempt was added, so why not status? )
I think is a great ad-on to Disk | Info page ( recently tempt was added, so why not status? )
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- ChriZathens
- Forum Moderator

- Posts: 758
- Joined: 23 Jun 2012 09:14
- Location: Athens, Greece
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Judging by the temperature addition, where I actually hear the disks spinning up before the system actually shows their temperature, I would say that it will always show them as spinning...
It would really be a good addition, but I think it should be added in a different page..somewhere where no temp is retrieved..
It would really be a good addition, but I think it should be added in a different page..somewhere where no temp is retrieved..
My Nas
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- Case: Fractal Design Define R2
- M/B: Supermicro x9scl-f
- CPU: Intel Celeron G1620
- RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
- PSU: Chieftec 850w 80+ modular
- Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
- O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
- Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
YES, you are right, if temp is show, disk are spinnning, I do not think well , but still think is a good addition , perhaps in other page , index.php ?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
RedAntz
- experienced User

- Posts: 125
- Joined: 11 Jul 2012 07:46
- Location: Sydney, Australia
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
This is actually in 1 of my TODO list
.
However, I'd like to focus on getting existing controller detection into trunk first to avoid scope creep. Otherwise it will sit in experimental branch forever.
Having said that, the reason hard disk spins up is because of smartctl commands issued during device type auto-detection.
See https://forums.freebsd.org/showthread.php?p=232186
That rules out Diagnostics|Information|Disks, Disks|Management or Status|Disks page as smartctl provides a lot of the information displayed (Serial / device model / temperature ...) . Real time detection means they will spin up when you refresh those pages (although i'd love to put this info in STATUS column ... let's see if I can find a way to get around it when I work on this
)
However, I'd like to focus on getting existing controller detection into trunk first to avoid scope creep. Otherwise it will sit in experimental branch forever.
Having said that, the reason hard disk spins up is because of smartctl commands issued during device type auto-detection.
See https://forums.freebsd.org/showthread.php?p=232186
That rules out Diagnostics|Information|Disks, Disks|Management or Status|Disks page as smartctl provides a lot of the information displayed (Serial / device model / temperature ...) . Real time detection means they will spin up when you refresh those pages (although i'd love to put this info in STATUS column ... let's see if I can find a way to get around it when I work on this
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Hi,
I already have the disk state (standby, active = spinning) and the temperature on the status page of the webGUI (see screenshot in my post => viewtopic.php?f=56&t=3797) with some patches of index.php and a shell script.
Edit:
@raulfg3 & RedAntz: at least on both of my two servers I see the temperature regardless if the disks are spinning or not, but possibly on certain systems / controller / disk types this is not possible. To prevent disks spinning up I check if they are in standby mode:
and print out the state and temperature. Btw, after upgrading to the actual release (847) I discovered that it is possible to retrieve the disk temperature also if the disks are spun-down without spinning them up (new version of smartctl ?), but as I said before, this must not be valid for all systems ...
You will find this in the script => hd_status.sh, which is called from the modified index.php => index.php.
The output on index.php:

I did not incorporate zfs pools because currently I'm not running them.
Regards,
crest
I already have the disk state (standby, active = spinning) and the temperature on the status page of the webGUI (see screenshot in my post => viewtopic.php?f=56&t=3797) with some patches of index.php and a shell script.
Edit:
@raulfg3 & RedAntz: at least on both of my two servers I see the temperature regardless if the disks are spinning or not, but possibly on certain systems / controller / disk types this is not possible. To prevent disks spinning up I check if they are in standby mode:
Code: Select all
smartctl -n standby -q silent -A $DEVICE_NAMECode: Select all
2) MSG="<font color="darkgreen">Standby</font>"; MSG_TEMP=`smartctl -A $DEVICE_NAME | awk '/Temperature_Celsius/ {print $10}'`;;The output on index.php:

I did not incorporate zfs pools because currently I'm not running them.
Regards,
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
I see that you are a php/coder guru, perhaps is better / easy for you to modify status_disks.php to show in status if disk are in standby or active, I find it more usefull that actual status show that only show "active" or missing.crest wrote:I already have the disk state (standby, active = spinning)
If you post a modified status_disks.php and/or hd_status.sh for this , I'm the first that want to test.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
not really a gururaulfg3 wrote:I see that you are a php/coder guru, perhaps is better / easy for you to modify status_disks.php to show in status if disk are in standby or active, I find it more usefull that actual status show that only show "active" or missing.crest wrote:I already have the disk state (standby, active = spinning)
If you post a modified status_disks.php and/or hd_status.sh for this , I'm the first that want to test.
Here we are, I needed to change two files => system.inc (to prevent spin-up of the disks) and => status_disks.php for the presentation of the disk activity. I know it's a quick 'n' dirty solution but it works on my server.

If you want to try it please replace
Code: Select all
system.inc => /etc/inc/system.incCode: Select all
status_disks.php => /usr/local/www/status_disks.phpThe file system.inc must be loaded with a pre/postinit command, status_disks.php can be replaced at any time.
Regards,
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Thanks a lot crest, is was I need, but on my system do not work.
I lose temp, and status is always =stanby and do not change ( and I start a coy of 8GB file to be sure that disk is spinning), some screen captures before ( actual N4F 847 x64):
and after change your 2 modified files:
I have no problem to test/send/atach any command that you want to probe in my system (my disk), only tell me what you need, if others user can confirm that work on his system I'll try to add this usefull addon to repo so perhaps zoon01 can include this by default and no need to do a postinit copy.
I lose temp, and status is always =stanby and do not change ( and I start a coy of 8GB file to be sure that disk is spinning), some screen captures before ( actual N4F 847 x64):
and after change your 2 modified files:
I have no problem to test/send/atach any command that you want to probe in my system (my disk), only tell me what you need, if others user can confirm that work on his system I'll try to add this usefull addon to repo so perhaps zoon01 can include this by default and no need to do a postinit copy.
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Look fine standby and temperature.
But I love my statistic.


crest, your addon look fine, create extension, where you can enable/disable futures on disk and index page ( simple replace original system and disk management pages)
But I love my statistic.

crest, your addon look fine, create extension, where you can enable/disable futures on disk and index page ( simple replace original system and disk management pages)
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Please download system.inc again, I've updated it and now it should work as expected (for some reason it was not the correct version ...raulfg3 wrote:Thanks a lot crest, is was I need, but on my system do not work.
I lose temp, and status is always =stanby and do not change ( and I start a coy of 8GB file to be sure that disk is spinning), some screen captures before ( actual N4F 847 x64):
...
I have no problem to test/send/atach any command that you want to probe in my system (my disk), only tell me what you need, if others user can confirm that work on his system I'll try to add this usefull addon to repo so perhaps zoon01 can include this by default and no need to do a postinit copy.
Please can you also try this version -> system.inc => /etc/inc/system.inc. It shows the temperature also in disk standby mode but CAN perhaps lead to spin-up a drive. Would be interesting to see how / if it works on other systems.
Btw, during my tests I discovered that - under DISKS | MANAGEMENT - disable SMART has no effect on a drive which had enabled SMART before ... not really a big issue but looks like a minor bug
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Thank youalexey123 wrote:Look fine standby and temperature.
But I love my statistic.
...
crest, your addon look fine, create extension, where you can enable/disable futures on disk and index page ( simple replace original system and disk management pages)
Interesting idea to build an extension, haven't done this yet but I will try if I have a bit more time ...
Your MRTG graphs looks really good, I like it. Did you notice if collecting the data for the graphs let the drives spin all the time? I found this post http://www.forums.nas4free.org/viewtopi ... =45&t=1445 from you, I will give it a try as soon as I know that MRTG leaves the drives in standby ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
OK, I'll check how to help you. Extension is tru way, You not need modify any firmware file, so you can update NAS4Fee main server without any problem.crest wrote:Interesting idea to build an extension, haven't done this yet but I will try if I have a bit more time ...
Ooooh, this is my old example. Now I use embedded versions only and my MRTGs running under jail. Currently I have drives "allways on" but I want use sleep state at my home. I create article about MRTG under jail, when I repair scripts for sleepingYour MRTG graphs looks really good, I like it. Did you notice if collecting the data for the graphs let the drives spin all the time? I found this post http://www.forums.nas4free.org/viewtopi ... =45&t=1445 from you, I will give it a try as soon as I know that MRTG leaves the drives in standby ...
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Yes, I would really appreciate you help - I was thinking about building extensions for a long time but, ...alexey123 wrote:OK, I'll check how to help you. Extension is tru way, You not need modify any firmware file, so you can update NAS4Fee main server without any problem.
... repair? perhaps I can support you in this case?alexey123 wrote:Currently I have drives "allways on" but I want use sleep state at my home. I create article about MRTG under jail, when I repair scripts for sleeping
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
I've already looked at your scripts and I need just remember a little change to the current script.crest wrote:alexey123 wrote:... repair? perhaps I can support you in this case?
Now all my free time I work on update TheBrig ...
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Check attachment. micro howto:
1. Create holding folder for it. In my case - /mnt/disk/app
2. Download into holding folder archive and
3.
Observe result on webgui under Extension.
I make backups for original system files, you can use original and silent files.
I see in last disk on index.php troubles - empty temperature.

Also temperatures not online, but this issue repairable
1. Create holding folder for it. In my case - /mnt/disk/app
2. Download into holding folder archive and
Code: Select all
tar xzf silent_disk.tgzCode: Select all
php-cgi silentdisk_install.phpI make backups for original system files, you can use original and silent files.
I see in last disk on index.php troubles - empty temperature.

Also temperatures not online, but this issue repairable
You do not have the required permissions to view the files attached to this post.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
OK, I do.crest wrote:Please download system.inc again, I've updated it and now it should work as expected (for some reason it was not the correct version ...).
Temp is show correct on two system, my production NAS and my test NAS.
new column Activity is show correct for ada0 to ada5 in my NAS (SATA integrated on mainboard: ASUS P5Q-WS )
But do not work for my 8SATA SAS 3081E-R
On my Test NAS, Temp works fine, but Activity allways show Standby and I totally sure that is spinning, my test NAS is a HP DC5700 http://h20566.www2.hp.com/portal/site/h ... .199480143
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Raul right
smartcontrol in all cases wake from standby disks. But disk know standby mode, I hear the disk accelerates and stops

Uuups

smartcontrol in all cases wake from standby disks. But disk know standby mode, I hear the disk accelerates and stops

Uuups
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
I nerver heard the disks accelerating and stopping when I use "-n standby" ... ?alexey123 wrote:Raul right
smartcontrol in all cases wake from standby disks. But disk know standby mode, I hear the disk accelerates and stops

pls try it again with "-n standby", should not accelerate disks ... at least on my server with this command the drives don't and smartctl terminates with exit code 2 (which is correct in this case).
WOW, great, thank you very much...alexey123 wrote:Check attachment. micro howto:
1. Create holding folder for it. In my case - /mnt/disk/app
2. Download into holding folder archive and3.Code: Select all
tar xzf silent_disk.tgzObserve result on webgui under Extension.Code: Select all
php-cgi silentdisk_install.php
I installed the extension, on a Virtualbox it worked like a charm, on my physical server not, have to dig in why ...
I will check this in the hd_status.sh script, shouldn't be that problem ...alexey123 wrote:I see in last disk on index.php troubles - empty temperature.
I didn't implement this, have to look how to do ...alexey123 wrote:Also temperatures not online, but this issue repairable
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Extension, when you install it make backup original index.php, system.inc and disks_status.php from current server. Then simple swich files.crest wrote: I installed the extension, on a Virtualbox it worked like a charm, on my physical server not, have to dig in why ...
May be you use on server modified files?
For fast repair issue put into extension folder silent_disks original files from virtual box.
Generaly my problem is:
I can send disk to any mode( sleep, idle, standby) . But! When smartctl touch disk, mode jump to standby (in Lab server) or Active or IDLE at home server. Disk begin to rotate. I want true silent check, but I have no idea for do it with FreeBSD .
Why? I ready to attach any hardware termosensors, also I can switch zones over LPT (see my LPT addons , I prepare binaries for use LPT as swich for 254 sensors) and as analog input I can use CPU FAN ( viewable over mbmon! ) It will work.
But I haven't LPT at my home server and mbmon not work on it - need install and check ipmi-tools.
I want to replace my LAB server on HP D530 - it not have any analog input, it not show CPU temperature
I want a universal solution to the problem
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
I find scrip, which check state disk - spinning or not without smartctl. As for me - work great
If use camcontrol instead smartctl, disk not begin to run.
Code: Select all
#!/bin/sh
camcontrol devlist | awk -F\( '{print $2'} | awk -F\, '{print $1}' |while read LINE
do
CM=$(camcontrol cmd $LINE -a "E5 00 00 00 00 00 00 00 00 00 00 00" -r - | awk '{print $10}')
if [ "$CM" = "FF" ] ; then
echo "$LINE: SPINNING"
elif [ "$CM" = "00" ] ; then
echo "$LINE: IDLE"
else
echo "$LINE: UNKNOWN"
fi
doneHome12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Yes, looks very good BUT - in the meantime I did some tests, also with older PATA drives and there I found, that with the actuell release smartctl do not recognize if the drives are in standby or active. Therefore I tested with the script you sent and it's the same, camctrl also do not recognize the state (spinning, standby) - so I suppose that there is a problem wit FreeBSD in the actual version together with PATA drives ...?alexey123 wrote:I find scrip, which check state disk - spinning or not without smartctl. As for me - work great
...
If use camcontrol instead smartctl, disk not begin to run.
I will do further tests and incorporate in status_disks.php when I am successfull.
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
NOT SAY ANYTHING ABOUT OLD PATA DRIVE!!!!111crest wrote:Yes, looks very good BUT - in the meantime I did some tests, also with older PATA drives and there I found
FreeBSD 9 not know work with PATA. For example on disk config page we have controlbox Transfer mode.

It not work because FreeBSD team make transfer speed into ata kernel maximum. But it was work on FreeBSD 7.
I've always used discs in that order. Windows - up to the second disk failure (approximately one and a half years), Linux - again to a second failure ( ~2 years +) freebsd - to death. If disk not work on freebsd, Hirens CD cannot repair it. But this true for FreeBSD < 7.
Now I have on FreeBSD machine some as windows - disk lifetime is 3 years.
I continue to study it.that with the actuell release smartctl do not recognize if the drives are in standby or active. Therefore I tested with the script you sent and it's the same, camctrl also do not recognize the state (spinning, standby) - so I suppose that there is a problem wit FreeBSD in the actual version together with PATA drives ...?
I will do further tests and incorporate in status_disks.php when I am successfull.
I want chek disk activity and temperature without spinning disk UP, Up down up down - this is not good way, drives consume a lot of power when accelerating, sometimes it's better not to send a disk to sleep than to disperse it.
UPD
During transfer camcontrol says about driver is in standby mode.

But I can send it to sleep with comand
Code: Select all
camcontrol sleep ada1I find very interest post
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
I continue. I make next commands
When I check disk state it begin to spinning. Hmmmm? I go to read ata commandsnas4free: data # date
Fri Sep 20 06:43:06 UTC 2013
nas4free: data # smartctl -n standby -i /dev/ada1
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.1-RELEASE-p5 i386] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, http://www.smartmontools.org
Device is in STANDBY mode, exit(2)
nas4free: data # camcontrol sleep ada1
nas4free: data # smartctl -n standby -i /dev/ada1
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.1-RELEASE-p5 i386] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, http://www.smartmontools.org
(pass1:ata1:0:1:0): CHECK_POWER_MODE. ACB: e5 00 00 00 00 40 00 00 00 00 00 00
(pass1:ata1:0:1:0): CAM status: Command timeout
Device is in SLEEP mode, exit(2)
nas4free: data # smartctl -n standby -i /dev/ada1
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.1-RELEASE-p5 i386] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, http://www.smartmontools.org
Device is in STANDBY mode, exit(2)
nas4free: data # date
Fri Sep 20 06:43:50 UTC 2013
nas4free: data #
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
Snunn1
- Starter

- Posts: 35
- Joined: 05 Sep 2013 21:55
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
You might like to use my guide HERE as a basis.alexey123 wrote:Ooooh, this is my old example. Now I use embedded versions only and my MRTGs running under jail. Currently I have drives "allways on" but I want use sleep state at my home. I create article about MRTG under jail, when I repair scripts for sleeping
Hope this Helps
S.
NAS4Free 10.2.0.2.2545 P14 Embedded on 1GB USB Key
HP N40L Microserver - 8GB ECC RAM, 3x Seagate 500GB RAIDZ1, 1x Seagate 500GB UFS & 1x 200GB SATA
Extensions: RRDGraphs
HP N40L Microserver - 8GB ECC RAM, 3x Seagate 500GB RAIDZ1, 1x Seagate 500GB UFS & 1x 200GB SATA
Extensions: RRDGraphs
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: add status column to Disk |Info to see if disk is instan
Thank you for the hint! I used your guide and it was realy easy with it to setup MRTG.
regards
crest
regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes: