Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1017592.1
Update Date:2010-11-10
Keywords:

Solution Type  Technical Instruction Sure

Solution  1017592.1 :   How to enable the Sun Fire[TM] v20z/v40z Serial Port via GRUB.  


Related Items
  • Sun Fire V20z Compute Grid Rack System
  •  
  • Sun Fire V20z Server
  •  
  • Sun Fire V40z Server
  •  
Related Categories
  • GCS>Sun Microsystems>Servers>x64 Servers
  •  

PreviouslyPublishedAs
228752


Description
This document provides additional scope on enabling the Sun Fire[TM] v20z / v40z Serial Port via GRUB for use with a Console Server.



Steps to Follow
If GRUB is being used, there are three steps to enable console redirection over serial; these steps all involve editing the grub configuration file:
  • In Oracle / Red Hat Linux, the GRUB configuration file is /etc/grub.conf.
  • In Novell / SUSE Linux, the GRUB file is /boot/grub/menu.1st.

Note - On Oracle / Red Hat Linux systems, the file /etc/grub.conf may be a symbolic link to the file /boot/grub/grub.conf.

  • Pass the proper console parameters to the kernel.
  • Configure the GRUB menu system to redirect to the proper console.
  • Remove any splash image entries that would prevent the proper serial-console display.

1. Change the stock kernel entry of your image to include the console-kernel parameters, as follows:

 kernel /vmlinuz-kernel_revision ro root=/dev/your_root_volume console=ttyS0,9600 console=tty0 

Note - These options should all be on one line without wrapping to a second line.

2. Add the following two lines to the top of your GRUB configuration file:

 serial --unit=0 --speed=9600 
 terminal serial console 

Note: Depending on the console server being used (i.e. Cyclades, etc., ) it may be necessary to change the order of the terminal serial console line. For example it may be necessary to move the order around to "terminal console serial" depending on the graphics display seen.

Adding these two lines at the beginning of the file sets up your serial port or your KVM (keyboard / video / mouse emulator) as your GRUB console to remotely or locally select a boot image from the GRUB menu output.

3. Comment out or remove the following line from your GRUB configuration file (line may differ depending on configuration):

 splashimage=(hd0,1)/boot/grub/splash.xpm.gz 

Removing the splashimage line allows for greater compatibility during your serial connection; with this line removed, the splash image does not prevent the proper GRUB menu from displaying.

4. If the "getty" service is running, then add the following line to the /etc/inittab file. The service called "getty" is run at boot time to enable logins on the serial interface. To enable "getty", append the following line to the list of "gettys" in the /etc/inittab file:

 7:12345:respawn:/sbin/agetty 9600 ttyS0 

5. By default the SP (service processor hardware) has console redirected to itself. Configure the SP, login and redirect the console to the main platforms serial port using the following steps listed below.

In the front of the v20z/v40z, assign an IP address, netmask and gateway (if needed) to the SP. Follow these next steps:

1. Using "putty" or "ssh", connect to the SP of the v20z / v40z as the user "setup".

# ssh -l setup <spipaddress> 

2. You will be asked to create a user and a password, then you will be logged out.

3. Log back into the SP as the user you just created.

# ssh -l <spuser> <spipaddress>

4. First set the console speed to 9600 and direct it to the SP.

# platform set console -s sp -S 9600 -e

5. Then set the console redirection to platform.

# platform set console -s platform 

You should now be able to log into the serial interface of the v20z / v40z.

For further information on modifying the grub.conf file or using LILO, please reference the following URL(s) from the Sun Fire v20z and Sun Fire v40z Servers, Server Management Guide.

Sun Fire V20z and Sun Fire V40z Servers--Server Management Guide
Using the grub Bootloader



Product
Sun Fire V20z Server
Sun Fire V20z Compute Grid Rack System
Sun Fire V40z Server

grub, v20z console, v40z console, redirect console, v20z, v40z, sc sp configuration, grub.conf, splash images, iniittab, platform console
Previously Published As
79708

Change History
Date: 2010-11-04
User Name: 106302
Change History
User Name: 88029
Action: Modified for Oracle SURe repository and amended mistakes
Change History
Date: 2005-10-26
User Name: 24737
Action: Add Comment
Comment: Suggest switching grub.conf console order to ttyS0 first. This way the OS boot init information is shown
Version: 0
Date: 2005-02-03
User Name: 7058
Action: Approved
Comment: Tmark was needed in title for Sun Fire v20z / v40z.
Reformatted doc using STM so that when the steps 1-5 repeat again to another set of steps 1-5 the doc doesn't appear confusing. Also, preformatted text appears offset and bullets work right.
Activated link to manual (tested - works)
Depersonalized doc where needed.
Reviwe date updated.
OK to republish.
Version: 5

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback