Appendix C. Reinstalling from CD-ROM

For your convenience, the SGI Internet Server for Messaging ships with all the required software already preinstalled on your system hard drive. However, in certain circumstances, it may be necessary for you to rebuild the system disk image using CD-ROMs.


Warning: The following covers a complete reinstall from scratch. Any data you already have on your system disk will be destroyed. If you are installing a RAID PCI card for the internal drives, all data already on the internal drives will be lost. It is up to you to back up data you cannot afford to lose before you continue.

At the end of this process, your system disk will be functionally equivalent to the state it was in when shipped from the factory. In particular, that means you will have to reassign the hostname, network address(es) and redo the Bastille server lockdown. You will also have to reapply all patches and custom configuration changes to the application(s) included, and reinstall any third-party application(s).

This chapter covers the following:

See the SGI 1200-Family of Servers Quick Start Guide and SGI 1200-Family of Servers Errata for additional information.

The procedures in this appendix assume that you are the superuser.

When to Reinstall from CD-ROM

You will want to reinstall from CD-ROM in the following circumstances:

  • Installing in a country to which SGI may not ship a prebuilt system disk image due to United States export restrictions

  • Installing a RAID PCI card for the internal drives

  • Upgrading to a faster and/or larger hard drive

  • Upgrading the operating system version (if approved by SGI)

  • Upgrading the SGI ProPack overlay version (if approved by SGI)

  • Customizing the partitioning scheme on your system disk

  • Customizing the file systems on your system disk

  • Recovering from a break-in

  • Replacing a failed system hard drive


Note: The ISM software cannot be installed as a whole on a non-SGI system. Please consult the copyright notice enclosed with your Internet Server for Messaging CD-ROM if you are considering using this software for any purpose other than the SGI Internet Server for Messaging.


Required CD-ROMs

To perform the reinstallation, you will need the following CD-ROMs:

  • Red Hat 6.1 (1of 2)

  • SGI ProPack 1.2

  • SGI ISE 1.1

  • SGI ISM 1.0

The SGI factory basic I/O system (BIOS) settings on your SGI Internet Server for Messaging allow you to boot your system off the CD-ROM drive. If you experience any problems, press F2 to enter SETUP mode during the boot process.

Inspect the Boot Device Priority in the Boot menu. The CD-ROM should appear higher up on the list than the hard disk. If in doubt, please contact SGI Customer Support.


Note: It is recommended that you do not perform this work from a serial terminal emulator.


Preparing the Hardware

To prepare the hardware for reinstallation, do the following:

  1. Shut down the system

  2. Power off the system

  3. Update your hardware configuration if applicable


    Note: Some hardware components may require installation by an SGI support engineer, or your support contract may be void. If in doubt, please contact SGI Customer Support.


Installing the Linux Operating System

Do the following to install the Linux operating system:

  1. If you are deploying a Mylex AcceleRAID 250 PCI card, follow the installation instructions in SGI 1000 Family of Servers Internal RAID Installation and Configuration Instructions . Configure it for Logical Drive 0 Raid 5 No Spares (50.8 GBytes of usable disk space)

  2. Insert Red Hat 6.1 CD (1 of 2)

  3. Reset the system and boot from CD

  4. Select “Expert Text” mode for your installation by entering expert text and pressing the Enter key, as documented on the opening screen

  5. Follow the directions for Red Hat installation in Red Hat Linux 6.1 The Official Red Hat Linux Installation Guide

  6. Answer the “Expert Text” questions as follows to customize your installation for SGI Internet Server for Messaging:

    Field 

    Response

    Devices: 

    cancel

    Choose a Language: 

    your choice of language

    Keyboard Type: 

    system keyboard type

    Installation Method: 

    local CDROM

    Devices - Add Device: 

    SCSI

    Mylex DAC960 RAID Controller

    Done

    Disk Setup: 

    fdisk (see “Partitioning the RAID LUN” for fdisk usage.)

The remainder of this section focuses on nonstandard configuration suggestions from SGI.

Partitioning the RAID LUN


Note: See SGI 1000 Family of Servers Internal RAID Installation and Configuration Instructions for supporting information for this procedure.


ISEM uses the following partitioning scheme:

Partition 

Location (Description)

/boot 

rd/c0d0p1 (133 MByte Linux native file system)

*swap* 

rd/c0d0p2 (1024 MByte Linux Swap)

/var/md 

rd/c0d0p5 (46084 MByte Linux native file system, mount point)

/var/spool/mqueue 

rd/c0d0p6 (1024 MByte Linux native file system, mount)

/ 

rd/c0d0p7 (3820 MByte Linux native file system, mount point)

fdisk Partitioning Operations

The following is the sequence of fdisk disk setup operations you must perform to partition your RAID storage hardware:

  1. Show help for the fdisk commands:

    # m [enter]

  2. Print the partition table:

    # p [enter]

  3. Delete each partition:

    # d [enter]
    # n [enter]

    where n is the partition you are deleting.

  4. Add a new partition:

    # n [enter]

    1. You are asked if you wish to specify an extended or primary partition (so indicated with a p). Specify primary partition 1:

      # p [enter]
      # 1 [enter]

    2. Specify the default first cylinder for this partition:

      # [enter]

    3. Specify the last cylinder for this partition:

      # +133M [enter]

      The partition is now specified.

  5. Repeat step 4 for partition 2. Specify +1024M as last cylinder.

  6. Change the ID for partition 2 to 82 - designation for Linux swap partition.

    # t [enter]
    # 2 [enter]
    # 82 [enter]

  7. Create an extended partition (so indicated with an e) for partition 4 using all remaining disk space. The default beginning and ending cylinders will be used:

    # n [enter]
    # e [enter]
    # 4 [enter]
    # [enter]
    # [enter]
    

  8. Create a new logical partition (so indicated with an l) of 45 GBytes:

    # n [enter]
    # l [enter]
    # [enter]
    # +46084M [enter]

  9. Create a second logical partition of 1GByte:

    # n [enter]
    # l [enter]
    # [enter]
    # +1024M [enter]

  10. Create a third logical partition of 3 GBytes:

    # n [enter]
    # l [enter]
    # [enter]
    # +3820M [enter]

  11. Write all partitioning information to the disk and exit the fdisk program:

    # w [enter]

    A new dialog displays.

  12. Select done.

    This launches the “disk druid” program. Disk druid lets you assign devices to mount points in the filesystem. (Proceed to “Specifying Mount Points for Partitions”.)

Specifying Mount Points for Partitions

In the “disk druid” program (a simple GUI through which you tab your entries), you specify mount points for the partitions you created in “fdisk Partitioning Operations”. The following lists the correct mount points:

Mount Point 

Device

/boot 

rd/c0d0p1

*swap* 

rd/c0d0p2

/var/md 

rd/c0d0p5

/var/spool/mqueue 

rd/c0d0p6

/ 

rd/c0d0p7

Once you have specified your mount points, check Check for Bad Blocks and select OK. This will format the partitions and check bad blocks.


Note: At this point, you will page through a number of dialogs. Select the default settings for each of these until you see ”Hostname Configuration”. Beginning at this point, you must enter values specific to your configuration.


Selecting the Packages to Install

Select Everything, that is, all RPM packages.

Selecting a Mouse

The mouse port on the SGI 1200 system is PS/2 style.

Selecting a Time Zone

The clock on the SGI 1200 system implements GMT in hardware. Select the appropriate time zone if you want your time stamps in local time.

Selecting a Monitor

Select Custom. Specify the following:

  • A resolution of 1024x768 noninterlaced at 8 bits color depth

  • 1 Mbyte video RAM

  • No special clock chip settings

  • 40-150 Hz vertical refresh rate

For more information, see the SGI 1200-Family of Servers Errata.

Installing the SGI ProPack Overlay

To install the SGI ProPack overlay, do the following:


Note: Please refer to your ISM release notes for late information regarding this installation. You can find these notes in /usr/doc/sgi/isem-1.0/News.


  1. Insert the SGI ProPack 1.2 CD-ROM

  2. Mount the CD-ROM by entering the following:

    # /bin/mount /mnt/cdrom

  3. Change to the cdrom directory:

    # cd /mnt/cdrom

  4. Execute the INSTALL script:

    # ./INSTALL

  5. Select all RPMs

Installing SGI ISM

To install the SGI ISM software, do the following:

  1. Insert the SGI ISM 1.0 CD-ROM

  2. Mount the CD-ROM by entering the following:

    # /bin/mount /mnt/cdrom

  3. Change to the cdrom directory:

    # cd /mnt/cdrom

  4. Execute the INSTALL script:

    # ./INSTALL

Activate Configuration and Bastille Linux Questions

To activate configuration and Bastille Linux questions upon reboot, enter the following:

# touch /root/.SGICONF


Rebooting the Server

Enter the following to reboot the server:

# reboot

Completing the Configuration

Follow the steps documented in the SGI Internet Server for Messaging Installation and Quickstart (this guide) and the SGI Internet Server for Messaging Guide.