Dell OMSA 5 on Debian

Since the advent of the debianized version of Dell OMSA installation has been a breeze. Just add the following lines to /etc/apt/sources.list

# OMSA
deb http://ftp.sara.nl/pub/sara-omsa dell sara

and then install using

aptitude update
aptitude install dellomsa

In case you have the mpt-based SAS controller you need to load the mptctl module. I haven't tested this myself but I had some feedback from user using the SAS 5/i storage controllers. Thanks for that info! Well, just load the module and restart OMSA and the storage information should be available.

modprobe mptctl
/etc/init.d/instsvcdrv restart

On a 64-bit machine you will not be able to login to the web interface unless you add some files from a 32-bit installation and edit a configuration file. So if you have a 64-bit installation of Etch then copy these files from a 32-bit version of an Etch installation:

/lib/libselinux.so.1
/lib/libsepol.so.1
/lib/security/pam_nologin.so
/lib/security/pam_unix.so

I've put up the files from a Debian Etch 32-bit in case you don't have a 32-bit system. See link below.

Start with copying the libraries to /lib32/. You might need to install the package ia32-libs to get 32-bit applications playing on a 64-bit system.

Edit /etc/pam.d/omauth and replace /lib with /lib32 so the end result looks like this:

#%PAM-1.0
#auth       required     pam_stack.so service=system-auth
#auth       required    /lib/security/pam_nologin.so
#account    required    pam_stack.so service=system-auth
auth       required     /lib32/security/pam_unix.so nullok
auth       required     /lib32/security/pam_nologin.so
account    required     /lib32/security/pam_unix.so nullok

Restart the services after this change:

/etc/init.d/instsvcdrv restart

The web service hasn't started yet.

/etc/init.d/dsm_om_connsvc start

If you want it to start after a reboot then run:

update-rc.d dsm_om_connsvc defaults 95

After this you should be able to login to your server.

https://192.168.0.10:1311/

Check the syslog for errors if you can't login. You can login using a ordinary user account on the machine and if logging in as root you will be able to do some more stuff. I believe I don't have to tell you that you should be very restrictive about who is having access to this service.

AttachmentSize
lib.zip153.25 KB

Comments

32-bit files link

You wrote:
I've put up the files from a Debian Etch 32-bit in case you don't have a 32-bit system. See link below.

I can't see where is this link. Is it missing?

--
Olivier Korn

Link to 32-bit libs

Sorry about that. Forgot to allow anonymous users to access the attachment.

Give it another try.

// John 

 

Thank you so much!

Hi John,

Thank you for the link. I can see it now (and I can download the file too).

By the way, I managed to extract the 4 files by myself, using 7-zip and .deb files from packages.debian.org repository.

This should be written somewhere too : for the storage to be monitored, you have to "modprobe mptctl" before "/etc/init.d/instsvcdrv restart".

Thank you for your article. It was very helpful.

Regarding mptctl

If you need mptctl depends on what kind of controller you have. SAS 5/i is mpt based but Perc 5/i is not.

See this post at Dell

By the way, good I could be of help!

Cheers!

OMSA 5.1 Login

Hi there, I'm able to view https://ip-address:1311 in my server. However, I'm not able to login...Can please tell me where to check the error? I do not change lib directory name there but I can still view the web login page of OMSA in my debian server.

OMSA 5.1 Login

If it's a 64-bit Debian system then you need the 32-bit libs that I mention in the description above. Assuming that they are in place and you have edited the file /etc/pam.d/omauth check the logs for any errors.

Do you see any errors showing up in /var/log/auth.log? Try tail the log:

tail -f -n20 /var/log/auth.log

Now try to login and see if anything is logged. If you see these lines you have probably supplied the wrong username/password.

Jan 25 19:32:22 server dsm_om_connsvc32d: (pam_unix) check pass; user unknown
Jan 25 19:32:22 server dsm_om_connsvc32d: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
 

It might be worthwhile to check the syslog as well to see if any files are missing. When logging in you might see these lines (even when you are able to login) so they can probably be ignored:

Jan 25 19:32:51 server dsm_om_connsvc32d: PAM unable to dlopen(/lib/security/pam_unix.so)
Jan 25 19:32:51 server dsm_om_connsvc32d: PAM [dlerror: /lib/security/pam_unix.so: cannot open shared object file: No such file or directory]
Jan 25 19:32:51 server dsm_om_connsvc32d: PAM adding faulty module: /lib/security/pam_unix.so

Do you see any message that any other file is missing?

Do you login using the same username and password as an existing system user?

// John

cannot login

I see the missing files:
...
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM adding faulty module: /lib32/security/pam_unix.so
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM unable to dlopen(/lib32/security/pam_nologin.so)
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM [error: /lib32/security/pam_nologin.so: cannot open shared object file: No such file or directory]
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM adding faulty module: /lib32/security/pam_nologin.so
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM unable to dlopen(/lib/security/pam_unix.so)
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM [error: /lib/security/pam_unix.so: wrong ELF class: ELFCLASS64]
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM adding faulty module: /lib/security/pam_unix.so
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM unable to dlopen(/lib/security/pam_smbpass.so)
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM [error: /lib/security/pam_smbpass.so: cannot open shared object file: No such file or directory]
May 9 15:58:41 euclosbi dsm_om_connsvc32d: PAM adding faulty module: /lib/security/pam_smbpass.so
....

What To do?

It seems that some files are

It seems that some files are still missing. For example pam_nologin.so.

Did you copy the files from the zip file lib.zip that is attached to this post and did you put them under the /lib32 dir? That is where they belong on a 64-bit server in case you are using that?

After the copying did you change the paths accordingly in the /etc/pam.d/omauth so that they point to the new libraries and then restarted OMSA?

Sorry, that I reply here but I removed you supplied email address so that you should get spam, but I forgot what it was to quickly :-(

 // John

  

ELFCLASS64 errors

If you're getting the ELFCLASS64 errors it means it's trying to use 64bit modules where you need 32bit ones. Copy the ones in the lib.zip file provided above into the lib32 directory. Double check that they're all 32bit files by running the file command eg"file pam_nologin.so" on all the files. run ldconfig and try logging in again.

-Alan

Thanks

Thanks for the howto. Got my Dell 2970 working without any probs.

Hilbert

Great Work

You are wonderful, I can't believe the simplicity of the installation. This project of yours makes installing OMSA a breeze. apt-get ... and it all works (32-bit machine), on a Dell PE2650 PERC3

Thank you for your effort.

Thanks for your efforts...

Works great on all our dell servers. Your efforts are much appreciated!

One comment on the installation:
We monitor our servers with Nagios. For this reason OMSA needs to be snmp enabled.
After the proposed installation method above I found that snmp isn't enabled by default. This can be done with the following command:

/etc/init.d/dataeng enablesnmp
/etc/init.d/snmpd restart

Thanks again :-)

Tim van Dijk

Perc 4e/di controller support ?

Great, got it working except my controller isn't showing up (Perc4e/Di on a Dell 2850)
Anyone know what I need to support this controller ?

-Trevor.

Perc 4e/di controller support

I've just used Perc 4e/Di with OMSA 4.4 and that worked great. OMSA 5 is supposed to support Perc 4. Are you running Ubuntu or Debian or any other flavor?

There have been some reports of trouble when running certain kernel versions and that might be a issue with the IPMI module. Check this out:

http://lists.us.dell.com/pipermail/linux-poweredge/2008-September/037387.html

// John

OMSA installation problem

I am having problems getting dellomsa up and running. Following the install instructions I get as far as starting dsm_om_connsvc. It fails to start. I can't get any web access on port 1311 - nothing is listening.

The errors for the locale on the omsadell install I have ignored as I don't believe this will have a bearing on the problem. However I can try and fix this if you think it is relevant. I have installed what I think are the relevant 64 and 32 bit library files but it has not fixed the problem.

See below.

Regards
Ewan

OS info:
# uname -a
Linux sbc-nagios-01 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux
Server info:
Dell PowerEdge1850

#############################
#These installs below ran ok.

wget http://ftp.sara.nl/debian_sara.asc
apt-key add debian_sara.asc
apt-get install snmp snmpd
apt-get install openipmi
apt-get install ipmitool

###################
# The omsadell install runs with some locale errors - ignored - and ld errors which self-resolve on running ldconfig.

apt-get install omsadell
Reading state information... Done
The following packages were automatically installed and are no longer required:
procmail linux-headers-2.6.31-14 linux-headers-2.6.31-17
linux-headers-2.6.31-17-generic linux-headers-2.6.31-14-server
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
dellomsa
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 226kB disk space will be freed.
Do you want to continue [Y/n]? Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_GB.ISO8859-1",
LC_CTYPE = "en_GB.ISO8859-1",
LC_MONETARY = "en_GB.ISO8859-1",
LC_COLLATE = "en_GB.ISO8859-1",
LC_MESSAGES = "C",
LC_NUMERIC = "en_GB.ISO8859-1",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 175277 files and directories currently installed.)
Removing dellomsa ...
Processing triggers for ureadahead ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@sbc-nagios-01:/etc/init.d# ldconfig -p | egrep libdcs
root@sbc-nagios-01:/etc/init.d#
root@sbc-nagios-01:/etc/init.d# apt-get install dellomsa
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.31-14 linux-headers-2.6.31-17
linux-headers-2.6.31-17-generic linux-headers-2.6.31-14-server
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
dellomsa
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/82.9MB of archives.
After this operation, 226kB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_GB.ISO8859-1",
LC_CTYPE = "en_GB.ISO8859-1",
LC_MONETARY = "en_GB.ISO8859-1",
LC_COLLATE = "en_GB.ISO8859-1",
LC_MESSAGES = "C",
LC_NUMERIC = "en_GB.ISO8859-1",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package dellomsa.
(Reading database ... 167749 files and directories currently installed.)
Unpacking dellomsa (from .../dellomsa_5.5.0-5_amd64.deb) ...
Processing triggers for ureadahead ...
Setting up dellomsa (5.5.0-5) ...
Checking that /etc/ld.so.conf.d/dell-omsa.conf contains required paths...
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/dataeng/bin
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/hapi/bin
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/oma/bin
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/omsa/bin
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/shared/bin
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/sm
Adding to /etc/ld.so.conf.d/dell-omsa.conf: /opt/dell/srvadmin/sm/dellvl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "en_GB.ISO8859-1",
LC_NUMERIC = "en_GB.ISO8859-1",
LC_MESSAGES = "C",
LC_COLLATE = "en_GB.ISO8859-1",
LC_CTYPE = "en_GB.ISO8859-1",
LC_TIME = "en_GB.ISO8859-1",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-rc.d: warning: instsvcdrv start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (0 3 4 5 6)
update-rc.d: warning: instsvcdrv stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1 2)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "en_GB.ISO8859-1",
LC_NUMERIC = "en_GB.ISO8859-1",
LC_MESSAGES = "C",
LC_COLLATE = "en_GB.ISO8859-1",
LC_CTYPE = "en_GB.ISO8859-1",
LC_TIME = "en_GB.ISO8859-1",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-rc.d: warning: dataeng start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 4 5)
update-rc.d: warning: dataeng stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1 2)
Stopping & Starting dellomsa...
Stopping Systems Management Data Engine:
Stopping dsm_sa_eventmgr32d: *
Stopping dsm_sa_datamgr32d: *
Stopping Systems Management Device Drivers:
Stopping dcdbas: *
Starting Systems Management Device Drivers:
Starting dcdbas: *
Starting Systems Management Data Engine:
Starting dsm_sa_datamgr32d: /opt/dell/srvadmin/dataeng/bin/dsm_sa_datamgr32d: error while loading shared libraries: libdcsmil32.so.5: cannot open shared object file: No such file or directory
*
Starting dsm_sa_eventmgr32d: /opt/dell/srvadmin/dataeng/bin/dsm_sa_eventmgr32d: error while loading shared libraries: libdcsupt32.so.5: cannot open shared object file: No such file or directory
*

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

##confirm the install:
# dpkg --list | egrep -i omsa
ii dellomsa 5.5.0-5 Dell OpenManage Server Administrator 5.
#

###################################################
# I picked up the libstdc++.so.5 error at this point and installed libstdc++5_3.3.6-17ubuntu1_amd64.deb.
# I then installed libstdc++5_3.3.6-18_i386.deb into /tmp and copied over libstdc++.so.5.0.7 and linked libstdc++.so.5 to it.
# I followed this up with the instructions at http://john.parnefjord.se/node/39.
# I did the modprob mptctl but I don't think this is relevant to my PERC RAID controller.
# I installed the remaining missing files - /lib32/security/pam_nologin.so and /lib32/security/pam_unix.so from the lib.zip file # provided here.
# I then restarted the services and get an error on the dsm_om_connsvc start which leaves me stumped.
# See output below. Hopefully there is something here which gives a clue.

# /etc/init.d/snmpd restart
* Restarting network management services:
...done.
# /etc/init.d/snmpd status
* snmpd is running
# /etc/init.d/dataeng restart
Stopping Systems Management Data Engine:
Stopping dsm_sa_snmp32d: Not started *
Stopping dsm_sa_eventmgr32d: Not started *
Stopping dsm_sa_datamgr32d: *
Starting Systems Management Data Engine:
Starting dsm_sa_datamgr32d: *
Starting dsm_sa_eventmgr32d: *
Starting dsm_sa_snmp32d: *
# /etc/init.d/dataeng status
dsm_sa_datamgr32d (pid 16150) is running
dsm_sa_eventmgr32d is stopped
dsm_sa_snmp32d is stopped
# /etc/init.d/dsm_om_connsvc status
dsm_om_connsvc32d is stopped
# /etc/init.d/dsm_om_connsvc start
dsm_om_connsvc32d is stopped
Starting DSM SA Connection Service: /lib/lsb/init-functions: line 30: 16988 Aborted /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec --oknodo --pidfile "$pidfile" -- "$@"
*

# /etc/init.d/dsm_om_connsvc status
dsm_om_connsvc32d is stopped
#
#( The /dev/nulls were removed from etc/init.d/dsm_om_connsvc to allow the error output to be seen).

########################################################################################################
#Further Background info:

# ls -l /lib32/libselinux.so.1
-rw-r--r-- 1 root root 104148 Oct 20 00:05 /lib32/libselinux.so.1
# ls -l /lib32/libsepol.so.1
-rw-r--r-- 1 root root 239452 Aug 24 2009 /lib32/libsepol.so.1
# ls -l /lib32/security
total 104
-rw-r--r-- 1 root root 42648 May 1 2009 pam_ldap.so
-rw-r--r-- 1 root root 5908 Apr 14 10:20 pam_nologin.so
-rw-r--r-- 1 root root 51484 Apr 14 10:20 pam_unix.so
# cat /etc/pam.d/omauth
#%PAM-1.0
#auth required pam_stack.so service=system-auth
#auth required /lib32/security/pam_nologin.so
#account required pam_stack.so service=system-auth

auth required /lib32/security/pam_unix.so nullok
auth required /lib32/security/pam_nologin.so
account required /lib32/security/pam_unix.so nullok
#
# ldconfig -p | egrep libstdc
libstdc++.so.6 (libc6,x86-64) => /usr/lib/libstdc++.so.6
libstdc++.so.6 (libc6) => /usr/lib32/libstdc++.so.6
libstdc++.so.5 (libc6,x86-64) => /usr/lib/libstdc++.so.5
libstdc++.so.5 (libc6) => /usr/lib32/libstdc++.so.5
# ldconfig -p | egrep libdcs
libdcsupt32.so.5 (libc6) => /opt/dell/srvadmin/shared/bin/libdcsupt32.so.5
libdcsupt32.so (libc6) => /opt/dell/srvadmin/shared/bin/libdcsupt32.so
libdcsnis32.so.5 (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsnis32.so.5
libdcsnis32.so (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsnis32.so
libdcsmil32.so.5 (libc6) => /opt/dell/srvadmin/dataeng/bin/libdcsmil32.so.5
libdcsmil32.so (libc6) => /opt/dell/srvadmin/dataeng/bin/libdcsmil32.so
libdcship32.so.5 (libc6) => /opt/dell/srvadmin/omsa/bin/libdcship32.so.5
libdcship32.so (libc6) => /opt/dell/srvadmin/omsa/bin/libdcship32.so
libdcsgen32.so.5 (libc6) => /opt/dell/srvadmin/dataeng/bin/libdcsgen32.so.5
libdcsgen32.so (libc6) => /opt/dell/srvadmin/dataeng/bin/libdcsgen32.so
libdcsfru32.so.5 (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsfru32.so.5
libdcsfru32.so (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsfru32.so
libdcsecp32.so.5 (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsecp32.so.5
libdcsecp32.so (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsecp32.so
libdcsbpp32.so.5 (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsbpp32.so.5
libdcsbpp32.so (libc6) => /opt/dell/srvadmin/omsa/bin/libdcsbpp32.so
#

# lsmod | egrep mpt
mptctl 35496 1
mptbase 98212 1 mptctl

# netstat -an | egrep 1311
#
####################################################

Ewan Scott
14 Apr 2010

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><pre>
  • Lines and paragraphs break automatically.

More information about formatting options

To combat spam, please enter the code in the image.