Sun N1 System Manager 1.1 Site Preparation Guide

Chapter 3 Installing and Configuring an OS on the Management Server

This chapter provides the procedures for installing and configuring an operating system on the Sun N1 System Manager management server.

This chapter discusses the following topics:

To ensure you select the correct operating system for the management server, see Table 2–1.

Installing Solaris on the Management Server

This section provides procedures for installing and configuring Solaris on your management server. Solaris must be installed on the management server before you can install the N1 System Manager system software.

This section discusses the following topics:

Disk Drive Considerations

Solaris must be installed on an empty hard drive that contains no partitions or data. If the hard drive contains partitions, delete the partitions before installing Solaris.

The following tables provides the partitioning information for SPARC and x86 architecture management server, based on the minimum requirement of a 72 gigabyte hard drive.

Table 3–1 Solaris Management Server Partitioning

Partition 

Mbytes 

swap 

4 Gbytes minimum 

all remaining space 


Note –

Allocate 3 Gbytes of free space for each distribution you plan to provision. If needed, upgrade the management server to a larger hard drive before continuing.


Installing the Solaris OS Using JumpStart

This section provides an example of the JumpStart configuration file required to use JumpStart to install Solaris 10 on your management server.

Refer to your Solaris 10 documentation for the procedures for configuring a JumpStart server, and for the procedures to configure the JumpStart start and finish scripts for your environment. When you have completed JumpStart configuration, install Solaris 10 on your management server using JumpStart.


Example 3–1 JumpStart Configuration File

install_type    initial_install
system_type     standalone
partitioning    explicit
filesys c1t1d0s1        4096     swap
filesys c1t1d0s0        free    /
cluster SUNWCXall

After you have installed Solaris 10 on your management server:

Installing the Solaris OS Manually

This section provides the procedures for installing Solaris manually on the management server.

ProcedureTo Install Solaris Manually

Before You Begin

Ensure the partitions on all disks on the management server have been deleted.

Steps
  1. Insert the Solaris installation DVD-ROM in the DVD drive of the N1 System Manager and reboot the system.

    Respond to each prompt according to the requirements of your environment.

  2. When prompted for the Type of Install, select Custom Install.

    Respond to each prompt according to the requirements of your environment.

  3. When prompted for the Software Group, select Entire Group Plus OEM.

  4. When prompted for disk selection, select all available disks.

  5. When prompted to lay out file systems, remove the /export/home directory and assign all free space to / (the system root directory).

Next Steps

Installing the RedHat Enterprise Linux OS on the Management Server

This section provides procedures for installing and configuring Linux on your management server. Linux must be installed on the management server before you can install the N1 System Manager system software.

This section discusses the following topics:

Disk Drive Considerations

Linux must be installed on an empty hard drive that contains no partitions or data. If the hard drive contains data, ensure the old partitions on the drive are deleted during Linux installation by modifying the Kickstart file as described in To Configure the Kickstart File.

The following table provides the partitioning information for the management server, based on the minimum requirement of a 72 gigabyte hard drive.

Table 3–2 Linux-based Management Server Partitioning

Partition 

Mbytes 

/boot 

102 

69530 

swap 

4096 

If your hard drive is larger than 72 Gbytes:


Note –

Allocate 3 Gbytes of free space for each distribution you plan to provision. If needed, upgrade the management server to a larger hard drive before continuing.


Installing the RedHat Linux OS Using Kickstart

This section provides example Kickstart files and the procedures to configure a Kickstart file and then use the Kickstart file to install Linux. The following topics are discussed:

Sample Kickstart Files

This section provides two example Kickstart files. The first Kickstart file is configured for a full distribution installation of Linux. Tthe second Kickstart file is configured to install only the RPM groups required by the N1 System Manager.


Example 3–2 Entire Distribution Kickstart File

install
 lang en_US.UTF-8
 langsupport --default en_US.UTF-8 en_US.UTF-8
 keyboard us
 mouse genericwheelps/2 --device psaux
 nfs --server 10.0.0.50 --dir /export/images/RHEL3U2
 skipx
 timezone America/Denver
 rootpw --iscrypted $1$Rig3dbXb$OWcv00J/V2WsBGcgx0bmp1
 network --device eth0 --bootproto static --ip 10.0.0.100
 --netmask 255.255.255.0 --gateway 10.0.0.254 --nameserver 10.0.0.200
 --hostname sun-ms
 network --device eth1 --bootproto static --ip 192.168.200.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-prov
 network --device eth2 --bootproto static --ip 192.168.100.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-admin
 firewall -disabled
 authconfig -enablemd5 -enableshadow
 bootloader -location=mbr
 clearpart --all -drives=hda
 part /boot --fstype ext3 --size=102 -ondisk=sda
 part / --fstype ext3 --size=1024 --grow -ondisk=sda
 part swap --size=4096 --grow --maxsize=1024 -ondisk=sda
 reboot 
 %packages 
 @ everything
 grub
 kernel
 kernel-smp
 %post
 echo "RHEL3U2 installed `/bin/date`" > /etc/motd
    cat << EOF > /etc/resolv.conf
    nameserver 10.0.0.200
    search Customer.Com
    EOF
    cat << EOF > /etc/hosts
    127.0.0.1         localhost.localdomain  localhost
    10.0.0.100        sun-ms
    192.168.200.254   sun-ms-prov
    192.168.100.254   sun-ms-admin 
    EOF


Example 3–3 Required RPMs Only Kickstart File

install
 lang en_US.UTF-8
 langsupport --default en_US.UTF-8 en_US.UTF-8
 keyboard us
 mouse genericwheelps/2 --device psaux
 nfs --server 10.0.0.50 --dir /export/images/RHEL3U2
 skipx
 timezone America/Denver
 rootpw --iscrypted $1$Rig3dbXb$OWcv00J/V2WsBGcgx0bmp1
 network --device eth0 --bootproto static --ip 10.0.0.100
 --netmask 255.255.255.0 --gateway 10.0.0.254 --nameserver 10.0.0.200
 --hostname sun-ms
 network --device eth1 --bootproto static --ip 192.168.200.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-prov
 network --device eth2 --bootproto static --ip 192.168.100.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-admin
 firewall -disabled
 authconfig -enablemd5 -enableshadow
 bootloader -location=mbr
 clearpart --all -drives=hda
 part /boot --fstype ext3 --size=102 -ondisk=sda
 part / --fstype ext3 --size=1024 --grow -ondisk=sda
 part swap --size=4096 --grow --maxsize=1024 -ondisk=sda
 reboot 
 %packages -resolvedeps
 @ office
 @ engineering-and-scientific
 @ editors
 @ system-tools
 @ base-x
 @ web-server
 @ development-tools
 @ printing
 @ text-internet
 @ legacy-network-server
 @ gnome-desktop
 @ admin-tools
0.@ server-cfg
 @ ftp-server
 @ network-server
 @ graphical-internet
 @ compat-arch-support
 grub
 kernel
 kernel-smp
 %post
 echo "RHEL3U2 installed `/bin/date`" > /etc/motd
    cat << EOF > /etc/resolv.conf
    nameserver 10.0.0.200
    search Customer.Com
    EOF
    cat << EOF > /etc/hosts
    127.0.0.1         localhost.localdomain  localhost
    10.0.0.100        sun-ms
    192.168.200.254   sun-ms-prov
    192.168.100.254   sun-ms-admin 
    EOF

ProcedureTo Configure the Kickstart File

Steps
  1. Log in to a machine that is accessible to the management server using NFS or HTTP.

  2. Create the Linux Kickstart configuration file.

    Choose whether to use the entire distribution Kickstart file shown in Example 3–2, or the required-RPMs-only Kickstart file shown in Example 3–3. Copy the chosen configuration data into a file, for example, n1gc-ks.cfg


    Note –

    If you chose the required-RPMs-Kickstart file, you must also manually install additional RPMs as described by To Install RPMs Required by the Sun N1 System Manager From the CD-ROMs.


  3. Configure the Kickstart installation file for your environment.

    • If you plan to use dynamic IP addressing, replace each network statement in the Kickstart file using the following syntax:

      network --device ethx --bootproto dhcp

      where ethx is the port, for example, eth0.

    • If you plan to use static IP addressing, make the following changes in each of the network statements.

      • Replace ip with the Ethernet port IP address.

      • Replace nameserver with the IP address of the corporate name server. If you want to use more than one name server, separate each name server IP address with a comma. For example: --nameserver 110.112.113.11,110.112.113.22.

      • Replace hostname with the name of your management server.

      If desired, you can combine static and dynamic IP addressing for the ETH ports. Modify the network settings according to your chosen reference architecture.

  4. Save the Kickstart file to an NFS or HTTP directory on the Kickstart server.

Next Steps

Installing RedHat Linux Manually

This section provides the procedures for installing Linux manually on the management server.

The following topics are discussed:

ProcedureTo Install RedHat Linux Manually

Steps
  1. Insert the RedHat Linux installation CD-ROM 1 of 4 in the DVD drive of the N1 System Manager management server and reboot the system.

    At the boot: prompt, start either a text-based or graphical user interface-based installation.

    • Press Return to install using the graphical interface

    • Type text to install using the text-based interface

    Respond to each prompt according to the requirements of your environment. You are prompted for the language selection, keyboard configuration, and mouse type. Provide the requested information.

  2. When prompted for partitioning information, choose Automatically Partition.

    You are prompted to choose whether to remove all Linux partitions, remove all partitions, or keep all partitions. Choose Remove all partitions. The partitioning values are displayed.

    Compare the displayed values to the required values listed by Table 3–2.

    • If the partitioning values match, choose Next.

    • If the partitioning values do not match, update the partitioning values to match Table 3–2.

  3. When prompted for the boot loader, choose Grub.

  4. When prompted to provide the Ethernet port selections, assign the IP addresses, netmask, and gateway values as described by the following guidelines.

    1. Configure ETH0 to connect to the corporate network to provide external access to the management server.

    2. Configure ETH1 to connect to the provisioning network.

      ETH1 must be on the same broadcast domain as ETH0. The IP addresses must be on the same broadcast domain as the provisionable servers' ETH0 interfaces, and can be configured to support hundreds of provisionable servers.

    3. Configure ETH2 to connect to the service processor interface SP0 ports of all provisionable servers.

      The netmask and gateway values must allow access to the management network.


      Note –

      If you have not installed a separate ETH2 gigabit NIC card in the management server, ETH0 and ETH2 functionality can be provided solely by ETH0. ETH0 must be configured to provide access to and from the service processor interfaces of the provisionable servers.


  5. When prompted for the firewall configuration, choose No firewall.

    You are prompted in sequence for additional language support, your time zone, and the root password. Provide the requested information.

  6. When prompted to accept the default packages or to customize the set of packages to install, choose Customize.

  7. Choose the packages required by the N1 System Manager system.

    Choose the following packages.

    • Office

    • Engineering and Scientific

    • Editors

    • System Tools

    • X-Windows (base-x)

    • Web Server

    • Development Tools

    • Legacy Software Development

    • Printing

    • Text-based Internet

    • Legacy Network Server

    • Gnome Desktop

    • Administration Tools

    • Server Configuration

    • FTP Server

    • Network Server

    • Graphical-based Internet

    • Compatibility Architecture Support (graphical install) or Legacy Software Development (text install)

    When you have completed the package selection, continue installation. When Linux installation completes, you are prompted for additional system information such as graphics, monitor type, and screen resolution after which the system reboots. You are then prompted for additional startup information.

  8. Answer the System information prompts.

    When you have completed responding to the prompts, the login screen appears.

  9. Log in as root.

Next Steps

Install the additional RPMs required by the Sun N1 System Manager system as described in To Install RPMs Required by the Sun N1 System Manager From the CD-ROMs.

ProcedureTo Install RPMs Required by the Sun N1 System Manager From the CD-ROMs

Before you can install the N1 System Manager software, you must complete the following tasks:

Steps
  1. Log in as root to the N1 System Manager management server.

  2. Install the following RPMs from your RedHat installation CD-ROMs.

    • perl-CGI-2.81-88.4.i386.rpm

    • anaconda-runtime-9.1.2-2.RHEL.i386.rpm

    • perl-DBI-1.32-5.i386.rpm

    • perl-DBD-Pg-1.21-2.i386.rpm

    • rh-postgresql-7.3.6-1.i386.rpm

    • rh-postgresql-server-7.3.6-1.i386.rpm

    The location of the RPMs on the installation CD-ROMs varies depending on your RedHat Linux version.

    A DSA signature:nokey warning is displayed during RPM installation. This warning message is generated only because the RPMs do not have a DSA security signature. All DSA signature:nokey warning messages can be safely ignored.

Next Steps

Download and install the internationally compliant Perl module as described by the next procedure.

Installing Third-Party RPMs Required by the Sun N1 System Manager

This section provides the procedures for installing additional RPMs required by the Sun N1 System Manager. The following topics are discussed:

ProcedureTo Download and Install the Internationally Compliant Perl Module

Steps
  1. Log in as root on the N1 System Manager management server.

  2. Open a web browser and find a site that provides the perl-5.8.3-16.i386.rpm file for download.

  3. Download the perl-5.8.0-88.4.i386.rpm file to a directory on the management server.

  4. In a terminal window, change directory to the location where you saved the RPM file.

  5. Type rpm -i perl-5.8.3–16.i386.rpm to install the Perl module.

Next Steps

ProcedureTo Download, Make, and Install the Simplified Chinese Perl Module

This procedure is required only if you are installing the N1 System Manager in the Chinese locale

Steps
  1. Log in as root on the N1 System Manager management server.

  2. Ensure your locale is set to Simplified Chinese.

    In a terminal window, type echo $LANG to display the system locale setting. For example:


    # echo $LANG
    zh_CN.gb18030

    If the language locale is not zh_CN.gb18030, set the locale by typing export LANG=zh_CN.gb18030.

  3. Open a web browser and go to http://search.cpan.org/~autrijus/Encode-HanExtra-0.10.

    The browser displays the Encode-HanExtra-0.10 download page.

  4. Click Download and save the Encode-HanExtra-0.10.tar.gz file to a directory on the management server.

  5. In a terminal window, change directory to the location where you saved the Encode-HanExtra-0.10.tar.gz file.

  6. Unpack the Encode-HanExtra-0.10.tar.gz file.

    1. To unpack the tar file, type gunzip Encode-HanExtra-0.10.tar.gz.

    2. To unpack the modules, type tar -xvf Encode-HanExtra-0.10.tar.

  7. Change directory to Encode-HanExtra-0.10.

  8. To update the system Encode.pm database with the Simplified Chinese encoding, type the following commands in sequence.

    Wait for each command to complete before typing the next command in the sequence.


    # perl Makefile.PL
    # make
    # make test
    # make install
    
Next Steps

Enabling FTP on the Management Server

If you plan to manage SPARC-based provisionable servers, you must enable the FTP service on the management server.

ProcedureTo Enable FTP on a Solaris Based Management Server

Steps
  1. Log in to the management server as root.

  2. Type the command svcadm -v enable network/ftp.

    The FTP service is enabled, and starts when the management server is rebooted. After the system is rebooted, you can verify whether the FTP service has start using the inetadm command:


    # inetadm
    enabled   online         svc:/network/telnet:default
    enabled   online         svc:/network/nfs/rquota:default
    disabled  disabled       svc:/network/echo:dgram
    disabled  disabled       svc:/network/time:stream
    enabled   online         svc:/network/ftp:default 
Next Steps

Update the /etc/hosts file as described in Updating the /etc/hosts File

ProcedureTo Enable FTP on a Linux Based Management Server

Steps
  1. Log in to the management server as root.

  2. Create symbolic links to the /etc/init.d/vsftpd file in the /etc/rc3.d and /etc/rc5.d directories.

    For example:


    # ln -s /etc/init.d/vsftpd /etc/rc3.d/S99vsftpd
    # ln -s /etc/init.d/vsftpd /etc/rc5.d/S99vsftpd
    

    The FTP service is enabled, and starts when the management server is rebooted. After the system is rebooted, you can verify whether the FTP service has start using the ps and grep commands:


    # ps -eaf | grep ftp
    root    3035    1  0  16:27 ?    00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsf
Next Steps

Update the /etc/hosts file as described in Updating the /etc/hosts File.

Updating the /etc/hosts File

The IP address and the name of your management server must be added to the /etc/hosts. Failure to add the IP address and name will cause Sun N1 System Manager installation to fail.

ProcedureTo Update the /etc/hosts file

Steps
  1. Log in as root to the Sun N1 System Manager management server.

  2. Verify that the /etc/hosts file has entries for loopback and the server.

    1. Make certain that either of the following loopback entries is in the /etc/hosts file.

      127.0.0.1    localhost

      or

      127.0.0.1    localhost.localdomain    localhost
    2. Make certain that an entry exists for the server and its IP address. For example:

      111.11.111.11 n1mgmt

      where 111.11.111.11 is the IP address of the management server, and n1mgmt is the name of the management server.

      Your /etc/hosts should be similar to the following example:

      127.0.0.1    localhost.localdomain    localhost
      10.5.157.123 n1mgmt
    3. Save and close /etc/hosts.

  3. Reboot the N1 System Manager management server.

Next Steps

Validate your N1 System Manager as directed by the following sections of the Sun N1 System Manager 1.1 Administration Guide:

If provisioning is successful, you can complete discovery and provisioning of all of your provisionable servers as described by the Sun N1 System Manager 1.1 Administration Guide.

If provisioning of a single server is not successful, refer to Chapter 3, Troubleshooting, in Sun N1 System Manager 1.1 Installation and Configuration Guide for problem resolution procedures.