Dell Perc 5i on Ubuntu 64

I've been setting up an Ubuntu server on a Dell with a 29xx series with a Perc 5i SAS/SATA RAID controller. It took a bit of digging around and piecing together posts on the ubuntu forums and random blogs, but I'm pretty sure I've got it all up and working. Here's the short story:

  1. Add the deb ports for dell's Open Management tools to your sources.conf

    1. /etc/apt/sources.list: deb ftp://ftp.sara.nl/pub/sara-omsa dell sara
    2. add the sara key to your gpg list
      1. wget http://ftp.sara.nl/debian_sara.asc
      2. sudo apt-key add debian_sara.asc
    3. apt-get update
  2. Install snmp tools

    1. apt-get install snmp snmpd
  3. Install openipmi and ipmitool

    1. apt-get install openipmi
    2. apt-get install ipmitool
    3. there's an open Ubuntu bug #110992 that requires ipmi_devinf and ipmi_si to be appended to /dev/modules by hand to enable creation of the /dev/ipm* needed by ipmitool on start-up.
  4. Install lib32 ncurses and ia32-libs

    1. apt-get install -f lib32ncurses5
    2. apt-get install -f ia32-libs
  5. Install dell's omsa tools

    1. apt-get install dellomsa
  6. Update your libraries

    1. ldconfig
      1. this takes care of a few errors I got that looked like this
      2. /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
  7. Place the following init script and put it in /etc/init.d/

    1. #!/bin/sh
      
      /opt/dell/srvadmin/dataeng/bin/dsm_sa_datamgr32d
      /opt/dell/srvadmin/dataeng/bin/dsm_sa_eventmgr32d
      /opt/dell/srvadmin/dataeng/bin/dsm_sa_snmp32d
      
      /opt/dell/srvadmin/dataeng/bin/dataeng status
      
      /opt/dell/srvadmin/iws/bin/linux/dsm_om_connsvc start
      /opt/dell/srvadmin/iws/bin/linux/dsm_om_connsvc start
      
      /etc/init.d/dataeng stop ; modprobe mptctl ; /etc/init.d/dataeng start
      
      /opt/dell/srvadmin/dataeng/bin/dsm_sa_datamgr32d
      /opt/dell/srvadmin/dataeng/bin/dsm_sa_eventmgr32d
      /opt/dell/srvadmin/dataeng/bin/dsm_sa_snmp32d
      
      /opt/dell/srvadmin/dataeng/bin/dataeng status
      
      /opt/dell/srvadmin/iws/bin/linux/dsm_om_connsvc start
      /opt/dell/srvadmin/iws/bin/linux/dsm_om_connsvc start
      
  8. Enable snmp in omsa tools

    1. /etc/init.d/dataeng enablesnmp
  9. Execute the dell_omsa.sh script to get up and running

    1. /etc/init.d/dell_omsa.sh
  10. Register the new driver module with omsa

    1. /etc/init.d/instsvcdrv restart
  11. Edit your /etc/snmp/snmpd.conf so it can be used (I take no responsibility if the following settings are not appropriate security for your network)

    1. change: com2sec paranoid default public to com2sec readonly default public
  12. Change the way taht ubuntu starts snmpd

    1. /etc/default/snmpd: change
    2. SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' to
    3. SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -p /var/run/snmpd.pid 127.0.0.1'
  13. /etc/init.d/snmpd restart

  14. /etc/init.d/dataeng restart

  15. Verify snmpd

    1. snmpwalk -OS -v 1 -c public localhost .1.3.6.1.4.1.674.10892.1
  16. Start OMSA web services on reboot

    1. update-rc.d dsm_om_connsvc defaults
  17. Finally, by default you must log into the web admin with the root account. So enable root account

    1. sudo passwd root
  18. One more catch for 64 bit ubuntu users, you must change the lib paths in /etc/pam.d/omauth and install 32 bit pam libs

    1. change all instances of /lib/security/ to /lib32/security
    2. download the i386 versions of the following libs (you can determine the package that provides a particular lib by dpkg -S /path/to/file, e.g. dpkg -S /lib/security/pam_unix.so)
      1. libselinux1_2.0.15-2ubuntu1_i386.deb
      2. libpam-modules_0.99.7.1-5ubuntu1_i386.deb
      3. libsepol1_2.0.3-1_i386.deb
    3. Extract them to a tmp directory
      1. dpkg-deb -x <libname> /tmp/lib32s
    4. then copy the following over to /lib32 and /lib32/security
      1. lib/libsepol.so.1
      2. lib/libselinux.so.1
      3. lib/security/pam_unix.so
      4. lib/security/pam_nologin.so
    5. run ldconfig
  19. You should now be able to log into the OMSA web manager at https://localhost:1311 using your root name password

  20. Having root enabled can be viewed as a security list, so you probably want to add a normal admin user to OMSA's manager group and disable root

    1. adduser dellroot
    2. usermod -g root dellroot # user must be added to the root group to gain admin privileges in OMSA manager

I'd like to thank the sad software blogger for a good bit of this information, especially pertaining to snmp.

Share on: TwitterFacebookGoogle+Email

Comments !