Smartmontools on OmniOS/napp-it?

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
I'm not a Unix guru by any means, but I'm running OmniOS+napp-it for my SAN and can't for the life of me get Smartmontools up and running. I've followed half a dozen different guides with no success. Can anyone give me any pointers?

Gea, you around? I'm sending up the distress call. LOL.
 

gea

Senior member
Aug 3, 2014
241
17
81
I'm not a Unix guru by any means, but I'm running OmniOS+napp-it for my SAN and can't for the life of me get Smartmontools up and running. I've followed half a dozen different guides with no success. Can anyone give me any pointers?

Gea, you around? I'm sending up the distress call. LOL.

The napp-it installer (wget ..) installs smartmontools.
What happens if you call menu Disks >> Smartinfo
 

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
That's what I thought because SMART worked fine when I was running straight Solaris 11+napp-It. I had a second OmniOS+napp-It box for a while, same issue. Put server 2012R2 on it instead and I can confirm SMART is working inside of Windows so it's not a hardware issue and given napp-it installed them just fine on straight Solaris 11, I have to assume it's specifically an issue with OmniOS.

20150524002551-720881e5.png


It does the same thing on f5 except now I can't access any of the ZFS menus. At this point I probably screwed something up trying to get it manually installed. IF I was to nuke OmniOS and install plain Solaris 11 again, the ZFS pool should remain intact, correct? I mean I've got backups of course but it would be preferable not to have to wait for a restore.
 
Last edited:

gea

Senior member
Aug 3, 2014
241
17
81
1. Solaris vs OmniOS

This is a very basic question, as you must choose between
two different lines of further development:

- Oracle Solaris with pool v. 29+ (and the offer of ZFS encryption)
- OpenZFS like OmniOS with pool v.5000 and feature flags

Both are completely incompatible unless you stay at pool v.28/ZFS v5
that does not offer either the newer features from Oracle like
encryption nor the newer features of Illumos/OmniOS like LZ4 compression.

If you have created the pool without forcing v28/5 you cannot
move the pool between them.


2. There is no known problem of smartmontools on OmniOS
Rerun the wget installer and check the console output when it comes
to smartmontools (or check the installer log in /root)

or try to install manually as root (best, use Putty and copy paste via a mouse right click)
Code:
cd /root
wget [URL]http://downloads.sourceforge.net/project/smartmontools/smartmontools/6.3/smartmontools-6.3.tar.gz[/URL] 
gzcat /root/smartmontools-6.3.tar.gz | tar xf - cd smartmontools-6.3/ 
./configure --prefix=/usr --sysconfdir=/etc 
make 
make install 
make clean
or install via IPS from http://scott.mathematik.uni-ulm.de/
(OmniOS repository university Ulm)
 
Last edited:

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
-bash: ./configure: No such file or directory
make: Fatal error: No arguments to build
make: Fatal error: Don't know how to make target 'install'
make: Fatal error: Don't know how to make target 'clean'
 

gea

Senior member
Aug 3, 2014
241
17
81
-bash: ./configure: No such file or directory
make: Fatal error: No arguments to build
make: Fatal error: Don't know how to make target 'install'
make: Fatal error: Don't know how to make target 'clean'


There was a missing linebreak..
You must call configure from the smartmontools folder

Code:
cd /root
wget http://downloads.sourceforge.net/project/smartmontools/smartmontools/6.3/smartmontools-6.3.tar.gz
gzcat /root/smartmontools-6.3.tar.gz | tar xf - 
cd smartmontools-6.3/ 
./configure --prefix=/usr --sysconfdir=/etc 
make 
make install 
make clean
 
Last edited:

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
configure: error: in '/root/smartmontools-6.3':
configure: error: C++ compiler cannot create executables
 

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
I followed several instructions for trying to install gpp with no success after which I can no longer access any of the ZFS menus in napp-it.

Software error:
Can't load '/var/web-gui/data/napp-it/CGI/auto/IO/Tty/Tty.so' for module IO::Tty: ld.so.1: perl: fatal: relocation error: file /var/web-gui/data/napp-it/CGI/auto/IO/Tty/Tty.so: symbol PL_dowarn: referenced symbol not found at /usr/perl5/5.16.1/lib/i86pc-solaris-thread-multi-64int/DynaLoader.pm line 190.
at /var/web-gui/data/napp-it/CGI/IO/Tty.pm line 30.
Compilation failed in require at /var/web-gui/data/napp-it/CGI/IO/Pty.pm line 7.
BEGIN failed--compilation aborted at /var/web-gui/data/napp-it/CGI/IO/Pty.pm line 7.
Compilation failed in require at /var/web-gui/data/napp-it/CGI/Expect.pm line 22.
BEGIN failed--compilation aborted at /var/web-gui/data/napp-it/CGI/Expect.pm line 22.
Compilation failed in require at /var/web-gui/data/napp-it/zfsos/_lib/illumos/zfslib.pl line 2758.
BEGIN failed--compilation aborted at /var/web-gui/data/napp-it/zfsos/_lib/illumos/zfslib.pl line 2758.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
 

gea

Senior member
Aug 3, 2014
241
17
81
The first error indicates that your gcc compiler is not installed correctly
The second error (Tty.so) indicates that you have done an online napp-it update without the needed napp-in logout/login afterwards or that you have installed software that modifies your Perl environment.

What I would suggest
- Do a clean reinstall of OmniOS 151014 LTS
- Install napp-it via wget

This should lead you to a functional system with smartmontools installed
http://napp-it.org/downloads/omnios_en.html
 

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
It's quite likely I installed something that modified Perl when i was trying to get gcc working. SAN was rebooted after the upgrade was finished.

I've got backups running right now in anticipation of having to rebuild it. I'll probably do that over the weekend.

However, this is a pretty recent (clean) install of OmniOS and smartmontools has never worked and based on what you're saying, it should have? Or it was a clean install until I tried to get smartmontools working. LOL.
 

gea

Senior member
Aug 3, 2014
241
17
81
Every config is different. This and the "problem" that napp-it
is not limited to a single OS release like for ex FreeNAS or
NexentaStor but supports a range of operating systems wth different
releases can be a source of problems here and there.

But I am not aware of a general problem with the napp-it wget installer
on a current OmniOS with gcc or smartmontools. It should just work.
 

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
Is smartmontools supposed to be installed by napp-it or is it part of the OmniOS base install? Given it worked on Solaris 11.1 without any additional work led me to believe it was part of the base OS install but my assumption could have been completely inaccurate.
 

gea

Senior member
Aug 3, 2014
241
17
81
Is smartmontools supposed to be installed by napp-it or is it part of the OmniOS base install? Given it worked on Solaris 11.1 without any additional work led me to believe it was part of the base OS install but my assumption could have been completely inaccurate.


OmniOS is "Just enough OS for a base server" without tools like
smartmontools. I compile it during setup of napp-it (online wget installer)
 

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
Forgot to update the thread. Gea, again, I appreciate all your assistance. I decided to go back to Solaris and all is right with the world now. I do have one more question though (as always).

20150709095911-7da6c85b.png


RaidZ2 array. Bottom two drives are ZIL and boot drives. It looks to me like that one disk is getting hit way harder than the others. Any guess why?
 

gea

Senior member
Aug 3, 2014
241
17
81
Forgot to update the thread. Gea, again, I appreciate all your assistance. I decided to go back to Solaris and all is right with the world now. I do have one more question though (as always).

..

RaidZ2 array. Bottom two drives are ZIL and boot drives. It looks to me like that one disk is getting hit way harder than the others. Any guess why?

One disk is very busy and the amount of writes is much higher than on other disks. This would be normal only on a resilver, During regular use, I would expect a "weak" disk ex with bad sectors or other reasons that may give you a slower disk or repeated writes. I would check that disk with a low level tool ex from the disk manufacturer.

see details about iostat
http://docs.oracle.com/cd/E23824_01/html/821-1451/spmonitor-4.html
 

XavierMace

Diamond Member
Apr 20, 2013
4,307
450
126
Or there was a third option. I'm dumb. I rechecked my drive ID's. That drive is the ZIL. With that in mind, that seem normal? It's not showing any waits so it's not queuing up.
 

gea

Senior member
Aug 3, 2014
241
17
81
Or there was a third option. I'm dumb. I rechecked my drive ID's. That drive is the ZIL. With that in mind, that seem normal? It's not showing any waits so it's not queuing up.

With sync enabled, you write the same amount of data to your ZIL like to all datadisks together. So yes, all as expected.