jump to navigation

Linux Serial Consoles for Servers and Clusters February 10, 2009

Posted by hasnain110 in Linux.

The more Linux servers you’re responsible for, the more that serial consoles can save you money, space and headaches by easing remote administration duties.

Required: Serial/Console Cable

Bootloader Configuration: GRUB

GRUB is a flexible bootloader with excellent support for serial consoles.

Can be found under /etc/grub.conf

Listing 1. An Ordinary grub.conf File

# grub.conf generated by anaconda
# Note that you do not have to rerun grub
# after making changes to this file
# NOTICE:You have a /boot partition.
#        This means that all kernel
#        and initrd paths are relative
#        to /boot/, eg.
#        root (hd0,1)
#        kernel /vmlinuz-version ro root=/dev/hda6
#        initrd /initrd-version.img
title Red Hat Linux (2.4.20-8)
        root (hd0,1)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
You need to add this console=ttyS0,9600n8 right after LABEL=/

Listing 2. A grub.conf File That Supports Serial Console

# Options added for serial console
serial  --unit=0 --speed=9600 \
        --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
title Red Hat Linux (2.4.20-8)
        root (hd0,1)
        kernel /vmlinuz-2.4.20-8 ro \
                root=LABEL=/ console=ttyS0,9600n8 
        initrd /initrd-2.4.20-8.img
Next time you reboot the server with appropriate setting in windows Hyper terminal
 you should get the the console output… and you are done !!!
 And your done !!!


No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: