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.
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:
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 |
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.
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.
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:
If you plan to manage SPARC-based provisionable servers, enable FTP as described in Enabling FTP on the Management Server.
If you do not plan to manage SPARC-based provisionable servers, update the /etc/hosts file as described by Updating the /etc/hosts File.
This section provides the procedures for installing Solaris manually on the management server.
Ensure the partitions on all disks on the management server have been deleted.
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.
When prompted for the Type of Install, select Custom Install.
Respond to each prompt according to the requirements of your environment.
When prompted for the Software Group, select Entire Group Plus OEM.
When prompted for disk selection, select all available disks.
When prompted to lay out file systems, remove the /export/home directory and assign all free space to / (the system root directory).
If you plan to manage SPARC-based provisionable servers, enable FTP as described by Enabling FTP on the Management Server.
If you do not plan to manage SPARC-based provisionable servers, update the /etc/hosts file as described by Updating the /etc/hosts File.
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:
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:
Do not change the assigned space for swap.
Allocate the space shown above for /boot.
Allocate the remaining space to /. OS distributions that are to be provisioned are stored within the root file system.
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.
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:
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.
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
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
Log in to a machine that is accessible to the management server using NFS or HTTP.
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
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.
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.
Save the Kickstart file to an NFS or HTTP directory on the Kickstart server.
Install Linux on the management server using the Kickstart file you created.
If you plan to manage SPARC-based provisionable servers, enable FTP as described in Enabling FTP on the Management Server.
If you do not plan to manage SPARC-based provisionable servers, update the /etc/hosts file as described in Updating the /etc/hosts File.
This section provides the procedures for installing Linux manually on the management server.
The following topics are discussed:
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.
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.
When prompted for the boot loader, choose Grub.
When prompted to provide the Ethernet port selections, assign the IP addresses, netmask, and gateway values as described by the following guidelines.
Configure ETH0 to connect to the corporate network to provide external access to the management server.
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.
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.
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.
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.
When prompted to accept the default packages or to customize the set of packages to install, choose Customize.
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.
Answer the System information prompts.
When you have completed responding to the prompts, the login screen appears.
Log in as root.
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.
Before you can install the N1 System Manager software, you must complete the following tasks:
Install additional RPMs required by the N1 System Manager system from the Linux installation CD-ROMs
Download and install the internationally compliant Perl RPM
If needed, download, make, and install the Simplified Chinese Perl modules
Download and install the Java runtime environment
Update the /etc/hosts file
Log in as root to the N1 System Manager management server.
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.
Download and install the internationally compliant Perl module as described by the next procedure.
This section provides the procedures for installing additional RPMs required by the Sun N1 System Manager. The following topics are discussed:
To Download and Install the Internationally Compliant Perl Module
To Download, Make, and Install the Simplified Chinese Perl Module
Open a web browser and find a site that provides the perl-5.8.3-16.i386.rpm file for download.
Download the perl-5.8.0-88.4.i386.rpm file to a directory on the management server.
In a terminal window, change directory to the location where you saved the RPM file.
Type rpm -i perl-5.8.3–16.i386.rpm to install the Perl module.
If you are installing in the Simplified Chinese locale, then download, make, and install the Simplified Chinese Perl Module as described in To Download, Make, and Install the Simplified Chinese Perl Module.
If you are not installing in the Simplified Chinese locale, go to Enabling FTP on the Management Server.
This procedure is required only if you are installing the N1 System Manager in the Chinese locale
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.
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.
Click Download and save the Encode-HanExtra-0.10.tar.gz file to a directory on the management server.
In a terminal window, change directory to the location where you saved the Encode-HanExtra-0.10.tar.gz file.
Unpack the Encode-HanExtra-0.10.tar.gz file.
Change directory to Encode-HanExtra-0.10.
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 |
If you plan to manage SPARC-based provisionable servers, enable FTP as described by Enabling FTP on the Management Server.
If you do not plan to manage SPARC-based provisionable servers, update the /etc/hosts file as described by Updating the /etc/hosts File.
If you plan to manage SPARC-based provisionable servers, you must enable the FTP service on the management server.
Log in to the management server as root.
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 |
Update the /etc/hosts file as described in Updating the /etc/hosts File
Log in to the management server as root.
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 |
Update the /etc/hosts file as described in 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.
Log in as root to the Sun N1 System Manager management server.
Verify that the /etc/hosts file has entries for loopback and the server.
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
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
Save and close /etc/hosts.
Reboot the N1 System Manager management server.
Validate your N1 System Manager as directed by the following sections of the Sun N1 System Manager 1.1 Administration Guide:
Log in to and access the N1 System Manager as described by Introduction to Accessing the N1 System Manager in Sun N1 System Manager 1.1 Administration Guide.
Set up the N1 System Manager accounts as described by Managing Users in Sun N1 System Manager 1.1 Administration Guide.
Set up the N1 System Manager security roles as described by Managing Roles in Sun N1 System Manager 1.1 Administration Guide.
Run the N1 System Manager discovery process and set up your provisionable servers as described by Chapter 2, Discovering, Grouping, and Replacing Servers in the Sun N1 System Manager, in Sun N1 System Manager 1.1 Administration Guide.
Provision an operating system to a provisionable server as described by Chapter 3, Provisioning Operating Systems, OS Updates, and Firmware Updates, in 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.