Complete Usage Statistics shows "none" instead of partitions

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,348
On my CentOS 6 server, suddenly I noticed that when I click on "Complete Usage Statistics" in DirectAdmin, it does not show anything where it usually is displayed the partitions/filesystem, it only says "none". Please see attached picture of this:

CompleteUsageStatistics.png

Alle my other servers is CentOS 7, and they do not have this problem. I do not know how long its been like it, but not many days. Maybe it is after the latest kernel for CentOS 6? Have anybody else the same problem?

I looked in /var/log/directadmin/error.log - and that log file only contain this:

Code:
2016:11:03-05:46:21: Can't connect to ssl!
2016:11:03-05:46:21: -> A failure in the SSL library occurred, usually a protocol error.
2016:11:03-05:46:21: -> error:00000001:lib(0):func(0):reason(1)

I have default openssl version from CentOS, and do not have any problem with ssl certificates on the server. But could it be related? I can mention that I run DirectAdmin control panel on https on server hostname.
 
Hello,

Do not have the issue on my end with 2.6.32-642.6.1.el6.x86_64 kernel on CentOS 6. Probably it's an issue on the particular server only.

What do you see with:
Code:
df -h
?
 
It seems I have a newer kernel then you, my centos 6 kernel is: 2.6.32-642.6.2.el6.x86_64

Thanks, I run your command, and the output is helpful to debug this:

Code:
[root@server ~]# df -h
df: `/tmp/SECUPD': Input/output error
df: `/tmp/SECUPD': Input/output error
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       138G   11G  120G   9% /
tmpfs            16G   36K   16G   1% /dev/shm
/dev/sda1       976M  166M  760M  18% /boot
/dev/sda6       948G  216G  684G  25% /home
/dev/sda5       4.6G   79M  4.2G   2% /tmp
[root@server ~]#

A quick google search and I find that SECUPD could be related to idrac. And yes, I have idrac on the server, and recently there was yum updates available for srvadmin (idrac). I am quite sure the latest updates for idrac is the problem. I will slowly investigate, and post my solution here when I am finished.
 
I have looked into the time I upgraded my kernel, and two minutes after I upgraded to new kernel, my /etc/mtab was modified (I se the modified date on the file, is the same as installing my new kernel), and it seems theese two lines was added to /etc/mtab after upgrading the kernel:

Code:
/dev/sdb /tmp/SECUPD vfat rw,shortname=mixed 0 0
/dev/sdc /tmp/SECUPD vfat rw,shortname=mixed 0 0

The Input/output error in my previous post when doing df -h, is probably because I have secured /tmp

I don't think it is related to idrac anymore. It happened when I upgraded to latest centos 6 kernel. I wonder if anybody else with newest centos 6 kernel have these same to lines added to /etc/mtab?
 
Last edited:
So the errors in output breaks parsing in Directadmin:

Code:
df: `/tmp/SECUPD': Input/output error
df: `/tmp/SECUPD': Input/output error

probably Directadmin requires an update to filter errors. So please consider bringing this to John's attention via tickets.
 
Thanks. Yes, will will send email to John. But first I must resolve this. I have just now compared /etc/mtab on my backup from before the kernel upgrade, and indeed the two lines was added to /etc/mtab when I upgraded to kernel 2.6.32-642.6.2.el6.x86_64 - it is newer kernel then you posted, so if you upgrade your kernel, please let me know if you also get automatically added these two lines to /etc/mtab:

Code:
/dev/sdb /tmp/SECUPD vfat rw,shortname=mixed 0 0
/dev/sdc /tmp/SECUPD vfat rw,shortname=mixed 0 0

Let's hope my server is not hacked. :) I need to search more about SECUPD before doing anything. I need to know what it is, and why it was added when upgrading my kernel.
 
Thanks. I also looked at that link in google search result. When thinking more about it, I actually did have yum updates to idrac at the same time as installing the new kernel in yum. So regarding modified date/time on /etc/mtab, it also is the same time as latest yum updates for idrac - so now I am leaning toward thinking it is idrac again. :)

Thank you for confirmation that you did not get mtab modified after rebooting in new kernel. It must be idrac then.
 
I believe DA would actually parse every line, so it's probably a non-zero exit code?
Worth checking:
Code:
/bin/df -hP; echo $?
where DA wants code 0, or it doesn't even bother parsing anything.

John
 
@John, Heres output from your command:

Code:
[root@server ~]# /bin/df -hP; echo $?
/bin/df: `/tmp/SECUPD': Input/output error
/bin/df: `/tmp/SECUPD': Input/output error
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       138G   11G  120G   9% /
tmpfs            16G   36K   16G   1% /dev/shm
/dev/sda1       976M  166M  760M  18% /boot
/dev/sda6       948G  217G  684G  25% /home
/dev/sda5       4.6G   85M  4.2G   2% /tmp
1
[root@server ~]#
 
That would be why then. DA needs a zero output, or it considers it an error, and doesn't bother to parse anything.
 
Back
Top