May 072015
 

Isola Bella, Lago Maggiore, Italy

insta-14

Update 2015-12-17 Right, so instructions below are mostly deprecated, see comments section.

Dell posted fairly clear instructions here http://linux.dell.com/repo/hardware/ for both Dell Linux Repository and for Dell System Update (DSU)

Generally for Centos/RHEL it boils down to the following steps:


wget -q -O - http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash
yum install dell-system-update
dsu --inventory 
yum  -y install srvadmin-all
service dataeng start
service dsm_om_connsvc start
chkconfig dsm_om_connsvc on
chkconfig dataeng on

 

I’ll keep below post just for reference.

Red Hat

wget -q -O - http://linux.dell.com/repo/community/bootstrap.cgi | bash
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum update
yum install srvadmin-all
yum install dell_ft_install

Source http://linux.dell.com/repo/hardware/latest/

 

Ubuntu/Debian

# http://linux.dell.com/repo/community/deb/latest/
echo 'deb http://linux.dell.com/repo/community/deb/latest /' | tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
apt-key adv --recv-keys --keyserver pgp.mit.edu 1285491434D8786F
apt-get update
apt-get install srvadmin-all srvadmin-all snmp snmpd snmp-mibs-downloader libsnmp-base ipmitool -y

Make sure snmpd has line with

smuxpeer .1.3.6.1.4.1.674.10892.1

For Dell Power Edge R415 make sure modules are loaded /etc/modules

ipmi_devintf
ipmi_si

 

CLI

dataeng service starts automatically at reboot. If you want to manually start the service, issue the command below.

sudo service dataeng start

Now, you can use omreport, omconfig, and omhelp commands.

For example, you can issue omreport system summary to get details about your system.

You can use omconfig to configure component properties.

omhelp provides help information for commands.

See OpenManage? CLI User’s Guide for comprehensive documentation.

 

Web Interface

To use web interface, users with appropriate permissions need to be added.

Add users with appropriate permissions to /opt/dell/srvadmin/etc/omarolemap file. See detailed information in the User’s Guide.
Example:john_doe * Administrator

Start the web server.

service dsm_om_connsvc start

Go to https://:1311/ in your browser to access OMSA.

If you want to start dsm_om_connvsc service at boot, issue sudo update-rc.d dsm_om_connsvc defaults command.

 

Removal

Uninstall all packages

sudo apt-get --auto-remove remove srvadmin-all

Uninstall all packages including config files:

sudo apt-get --auto-remove purge srvadmin-all

 

Managing BIOS and firmware updates

Inventory firmware version levels

inventory_firmware

Compare versions installed to those available

update_firmware

Install any applicable updates

update_firmware --yes

Start interactive GUI

inventory_firmware_gui

 

 

omconfig about
omreport about
# Report system overview
omreport chassis

# Report system summary info (OS, CPUs, memory, PCIe slots, DRAC cards, NICs)
omreport system summary

# Report bios settings
omreport chassis biossetup

# Fan info
omreport chassis fans

# Temperature info
omreport chassis temps

# CPU info
omreport chassis processors

# Memory and memory slot info
omreport chassis memory

# Power supply info
omreport chassis pwrsupplies

# Detailed PCIe slot info
omreport chassis slots

# DRAC card info
omreport chassis remoteaccess
# See available attributes and settings
omconfig chassis biossetup -?

# Turn the AC Power Recovery setting to On
omconfig chassis biossetup attribute=acpwrrecovery setting=on

# Change the serial communications setting (on with serial redirection via)
omconfig chassis biossetup attribute=serialcom setting=com1
omconfig chassis biossetup attribute=serialcom setting=com2

# Change the external serial connector
omconfig chassis biossetup attribute=extserial setting=com1
omconfig chassis biossetup attribute=extserial setting=rad

# Change the Console Redirect After Boot (crab) setting
omconfig chassis biossetup attribute=crab setting=enabled
omconfig chassis biossetup attribute=crab setting=disabled

# Change NIC settings (turn on PXE on NIC1)
omconfig chassis biossetup attribute=nic1 setting=enabledwithpxe

 

Managing iDRAC


racadm getconfig -h
racadm getconfig -g cfgLanNetworking
racadm getconfig -g cfgIpmiLan
racadm getconfig -g cfgRacTuning
racadm config -g cfgLanNetworking -o cfgDNSRacName web-prod01-drac
racadm racreset
racadm config -g cfgLanNetworking -o cfgNicUseDHCP 1
# cfgNicSelection
# 0 = Shared
# 1 = Shared with Failover LOM2
# 2 = Dedicated
# 3 = Shared with Failover All LOMs (iDRAC6 Enterprise only)
racadm config -g cfgLanNetworking -o cfgNicSelection 0
ipmitool user list 1
ipmitool lan print 1
ipmitool channel info 1
ipmitool chassis status

 


Source:

http://www.openfusion.net/linux/dell_omsa
http://cavepopo.hd.free.fr/wordpress/linux/dell-server-utility-omreport/



 

Jan 052015
 

I’ve been experiencing problems with Dell running Centos 6 and Bacula 5.2, hooked up to Quantum Scalar i40 tape library with two LTO5 drives. Server has two HBAs, first used with server disks (PERC-310mini) and second LSI SAS2008 with external SAS port connected to tape library. More info about this setup in this post.

Problem: basically, after each server reboot autochanger device was missing.

After spending endless hours I end up with some workaround. Its not ideal, well to be honest its a dirty hack so if there is a better way of doing I would very much appreciate you dropping a quick comment!

So if you can’t find tape library changer under centos 6 with a quantum scalar i40 then read on…

But first, random picture from my library, it seems like she’s showing to her pal a funny cat picture on her phone.

insta-20

Background: Autochanger is being managed via one of the drives, this is called Control Path and being set once via autochanger web interface.

From time to time Quantum Scalar i40 autochanger is not getting detected after server reboot. In order to detect it we need to rescan SCSI bus.

Lets say tape drives are on controller 0, channel 0, with ID 0 LUN 0 and ID 1 LUN 0

root@abc-jamno:~ # lsscsi
[0:0:0:0]    tape    HP       Ultrium 5-SCSI   Z64Z  /dev/st0 
[0:0:1:0]    tape    HP       Ultrium 5-SCSI   Z64Z  /dev/st1 
[1:0:32:0]   enclosu DP       BP12G+           1.00  -       
[1:2:0:0]    disk    DELL     PERC H310        2.12  /dev/sda

in which case we can find controller (aka Control Path) connected on LUN 1 of one of the drives – but it is not being detected by OS for some reason! This is a bit that puzzles me. I suspect that this is due to my Host Bus Adapters getting different IDs after reboot, i.e. sometimes PERC gets detected as 0 and sometimes SAS2008 gets it – quoted example shows the later case.

root@abc-jamno:~ # echo 0 0 1 >  /sys/class/scsi_host/host0/scan
root@abc-jamno:~ # echo 0 1 1 >  /sys/class/scsi_host/host0/scan

root@abc-jamno:~ # lsscsi
[0:0:0:0]    tape    HP       Ultrium 5-SCSI   Z64Z  /dev/st0 
[0:0:1:0]    tape    HP       Ultrium 5-SCSI   Z64Z  /dev/st1 
[0:0:1:1]    mediumx QUANTUM  Scalar i40-i80   153G  /dev/sch0
[1:0:32:0]   enclosu DP       BP12G+           1.00  -       
[1:2:0:0]    disk    DELL     PERC H310        2.12  /dev/sda 

Solution: aka dirty hack, upon reboot we grep logs to check SCSI id of tapes and use that to rescan bus on tape drive SCSI id but changing LUN +1. Can be used to write init script that starts just before bacula-sd starts, I guess…

This one liner will generate commands we need:

grep tape /var/log/messages*|cut -d" " -f7|awk -F: '{print "echo "$2" "$3" "1 " > /sys/class/scsi_host/host"$1"/scan"}'

double check those lines and and run them.

Restart bacula storage daemon

service bacula-sd restart

Useful commands:

cat /proc/scsi/sg/device_hdr /proc/scsi/sg/devices
host	chan	id	lun	type	opens	qdepth	busy	online
0	0	0	0	1	1	254	0	1
0	0	1	0	1	1	254	0	1
1	0	32	0	13	1	256	0	1
1	2	0	0	0	1	256	0	1
0	0	1	1	8	1	254	1	1

root@abc-jamno:~ # sg_scan
/dev/sg0: scsi0 channel=0 id=32 lun=0
/dev/sg1: scsi0 channel=2 id=0 lun=0
/dev/sg2: scsi1 channel=0 id=5 lun=0
/dev/sg3: scsi1 channel=0 id=7 lun=0
/dev/sg4: scsi1 channel=0 id=7 lun=1

tapeinfo -f /dev/sg2

Source:
How do I rescan the SCSI bus to add or remove a SCSI device without rebooting the computer

https://access.redhat.com/site/solutions/3941

I know more about SCSI now that I ever wished to know.