In this second of two parts on installing Linux server software, you discover the basic configuration and network installation techniques. This article focuses on the Network File Share (NFS)-based installation method, which is common to many IT organizations for installing servers in large numbers. The NFS-based installation method enables administrators to install many instances of a server at the same time, saving time and resources for other work. This article describes the NFS method and how to use it to configure and install your server software.
Before using the techniques described in this article, you can review the material in the first article in this series, Installing Linux servers on IBM Systems, Part 1: Basic Linux server installation and configuration.
Prepare the hardware, software, and setup
Use the following hardware and software to perform the tasks described in this article:
- IBM System x346 - 02 NOS
- Red Hat Enterprise Linux Version 4.0, Update 4, for the x86 32-bit version
Figure 1 provides a schematic overview of the setup for this installation.
Figure 1. Setup diagram
Configure NFS services
Start by configuring
netra.ibm.com for NFS services by following these steps:
- Install Linux on netra.ibm.com as described in Part 1 of the series.
- Verify that NFS-related RPMs are installed on your system, as shown in Listing 1. If RPMs are not installed, install them, as shown in Listing 2.
Listing 1. Check for NFS-related RPMs
#rpm -qa|grep nfs nfs-utils-lib-1.0.6-3 system-config-nfs-1.2.8-1 nfs-utils-1.0.6-70.EL4
Listing 2. Install NFS-related RPMs
#rpm -ivh nfs-utils-lib* system-config-nfs* nfs-utils*
- Verify that NFS service is turned on, as shown in Listing 3. If NFS is not on, turn it on, as shown in Listing 4.
Listing 3. Check for NFS service statusNote: 0-6 specifies the Linux initialization modes.
#chkconfig --list|grep nfs nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Listing 4. Turn NFS service onNote: NFS service is set to start automatically in init levels 3 and 5.
#chkconfig --level 35 nfs on #chkconfig --list|grep nfs nfs 0:off 1:off 2:off 3:on 4:off 5:on 6:off
- Either copy RHEL4 ISO files or copy the contents of all the CDs into a temporary folder, as shown in Listing 5.
Listing 5. Copy ISO files or CD contents
#cp *.iso /dump/RHEL4 [if you have ISO files available] OR #cp -R /media/cdrom/* /dump/RHEL4
- Edit the
/etc/exportsfile to include your temporary folder holding RHEL4 ISO images and files, as shown Listing 6.
Listing 6. Edit /etc/exports
#vi /etc/exports /dump/RHEL4 *(ro,no_root_squash,sync)
- Verify that the NFS service is running. If the NFS service is not running, start or restart it, as shown in Listing 7.
Listing 7. Check, start, and restart NFS service
#service nfs status #service nfs start/restart
- Verify that the exported folder is available using the NFS service, as shown in Listing 8.
Listing 8. Exported folder
#exportfs -ra [Refresh Export List] #exportfs /dump/RHEL4 world OR #showmount -e localhost Export list for localhost: /dump/RHEL4 *
The NFS server is now configured on netra.ibm.com.
Install the server
Now you are ready to install a new server using the network-based installation method. In this article, the example server is named joy.ibm.com. Follow these steps:
- Insert CD #1 or the DVD in the CD-ROM drive, and reboot the new server. You see the screen shown in Figure 1.
boot:(that is, after the boot prompt).
Figure 1. Boot screen
- The next screen prompts you to choose the language for the installation process, as shown in Figure 2. For this example, select
English. After selecting your language, click
Figure 2. Select language
- The next screen prompts you to choose the keyboard type so that you get the correct key definitions, as shown in Figure 3. For this example, select
Figure 3. Select keyboard
- The next screen prompts you to choose the installation method, as shown in Figure 4. For this example, choose
NFS image. Click
Figure 4. Select installation method
- The next screen prompts you to enter IP details for the server you will install, as shown in Figure 5. For this example, specify the following details:
- IP address:
- Netmask (also known as subnet mask):
- Default gateway:
Figure 5. Configure IP details
- IP address:
- The next screen prompts you to enter NFS server details, as shown in Figure 6. For this example, use the following information:
- NFS server name:
- Red Hat Enterprise Linux directory (dump location):
Figure 6. Configure NFS server details
- NFS server name:
And that's it. If everything has gone well,
joy.ibm.com should be communicating with
netra.ibm.com for all necessary packages. Soon, you should see a GUI panel that prompts you to continue with your regular installation steps as explained in Part 1 of this series. The steps spelled out in these two articles will help make your job administering Linux servers easier, saving you time and trouble so you can focus on more difficult tasks.
- RSS feed for this series: Request notification for the upcoming articles in this series. (Find out more about RSS feeds of developerWorks content.)
- Learn about disk partitioning.
- Learn about RAID implementation.
- Learn about GRUB/LILO implementation.
- Learn about configuring a firewall.
- Learn about SELinux implementation
- Want more? The developerWorks IBM Systems zone hosts hundreds of informative articles and introductory, intermediate, and advanced tutorials.
- Stay current with developerWorks technical events and webcasts.
Get products and technologies
- Build your next development project with IBM trial software for download directly from developerWorks.
- Participate in the discussion forum.
- Exchange information with other developers on the IBM Systems forums and developerWorks blogs.
Dig deeper into Linux on developerWorks
Get samples, articles, product docs, and community resources to help build, deploy, and manage your cloud apps.
Keep up with the best and latest technical info to help you tackle your development challenges.
Software development in the cloud. Register today to create a project.
Evaluate IBM software and solutions, and transform challenges into opportunities.