Howto setup IPMI SOL on Linux

Common interfaces to a computer system that system administrators can use to monitor system health and manage the system

Howto setup IPMI SOL on Linux

Postby lik » Thu Dec 09, 2010 7:48 am

How-to setup IPMI SOL for Linux based Dell (and some other) servers

For Fedora/Red Hat/CentOS:

Edit the file /boot/grub/grub.conf, as follows. See the sample file that follows, which shows the changes described in this procedure.
1. Add the following two new lines in the general settings section of the file:
Code: Select all
serial --unit=0 --speed=19200
terminal --timeout=10 serial

2. Append two options to the kernel line:
Code: Select all
kernel …………. console=ttyS#

where ttyS# is dependant on which COM port is used and is dependaint on the chassis type.
3. If the /etc/grub/grub.conf contains a splashimage directive, you must comment it out.

Below is the maximum baud rate and Com port for each server chassis:
• 19200 for PowerEdge 1425SC and other PowerEdge x8xx systems using Com 1 (ttyS0)
• 57600 for PowerEdge x9xx systems without Dell Remote Access Controller 5 (DRAC 5) Using Com 2 (ttyS1)
• 115200 for PowerEdge x9xx systems with DRAC 5 Using Com 2
• 9600 is the Safe-Mode. Meaning that it should always work


Table D-1. Sample File: /boot/grub/grub.conf
Code: Select all
# grub.conf generated by anaconda
#
Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, e.g.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sdal
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=10
 #splashimage=(hd0,2)/grub/splash.xpm.gz

serial --unit=0 --speed=9600
terminal --timeout=10 serial

title Red Hat Linux Advanced Server (2.4.9-e.3smp)
root (hd0,0)
kernel /boot/vmlinuz-2.4.9-e.3smp ro root=/dev/sda1 hda=ide-scsi console=tty0 console=ttyS1,9600
initrd /boot/initrd-2.4.9-e.3smp.img
title Red Hat Linux Advanced Server-up (2.4.9-e.3
root (hd0,00)
kernel /boot/vmlinuz-2.4.9-e.3 ro root=/dev/sda1
initrd /boot/initrd-2.4.9-e.3.img

This example assumes use of COM2 and a baud of 9600

Additional information for editing the grub.conf:
1. You may need to disable GRUB’s graphical interface and use the text-based interface instead; otherwise, the GRUB screen will not be displayed in BMU console redirection. To do so, comment out the line starting with splashimage.
2. If you have multiple options in GRUB and you want all of them to start a console session through the BMU serial connection, add console=ttyS#, to all options. The preceding example shows console=ttyS#, added to only the first option.

Enabling Login to the Console After Boot
Edit the file /etc/inittab, as follows:
Add a new line to configure a getty on the COM1 serial port:
Code: Select all
co:2345:respawn:/sbin/agetty -h -L 19200 ttyS1 vt100

See the sample file, which shows the addition of the new line.

Table D-2. Sample File: /etc/innitab
Code: Select all
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg,
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
 #

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have
# networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
 id:3:initdefault:

# System initialization.
 si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Things to run in every runlevel.
 ud::once:/sbin/update

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few
# minutes of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have power installed and your
# UPS is connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 “Power Failure; System Shutting Down”
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c “Power Restored; Shutdown Cancelled”

# Run gettys in standard runlevels
ag:12345:respawn:/sbin/agetty -h -L ttyS# vt100
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm –nodaemon

Edit the file /etc/securetty, as follows:
If you need to use Com 2 chances are you will need to edit /etc/securetty and add the following on the first available line:
ttyS1
or you can just run
Code: Select all
echo ttyS1 >> /etc/securetty
(You must use two >’s. Failure to do so will overwrite the file with ttyS1)

Next you will need to ensure that IPMI is setup. To do so run the following:
Code: Select all
ipmitool lan set 1 ipaddr $IPMI-IP
ipmitool lan set 1 netmask $NETMASK
ipmitool lan set 1 defgw ipaddr $GATEWAY
ipmitool lan set 1 user
ipmitool lan set 1 access on
ipmitool lan set 1 arp respond on
ipmitool mc reset warm

where:
IPMI-IP is the IP listed in the IPMI interface ip type
NETMASK is the netmask of the subnet
GATEWAY is the primary gateway for the subnet

For the Penguin Atlus 1300 the lan channel is 6 rather than 1

For the BIOS you may have to find the Serial Redirect setting, if there is one, and make sure it is set to redirect after post/redirect in os/redirect after boot
set the redirect to go over NIC/BMC/IP rather than tweak the serial speed to 19200 (9600 on non dell).
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Intelligent Platform Management Interface (IPMI)

 


  • Related topics
    Replies
    Views
    Last post