Turbolinux Integration Guide for IBM Xseries and Netfinity
Total Page:16
File Type:pdf, Size:1020Kb
TurboLinux Integration Guide for IBM xSeries and Netfinity The complete guide to running TurboLinux on xSeries and Netfinity Netfinity server-specific coverage you can’t find anywhere else, including ServeRAID configuration Plan, configure, and install key services, step-by-step: Samba, Apache, sendmail, DNS, DHCP, LDAP, and more Jakob Carstensen Rufus Credle Justin Davies Ivo Gomilsek Jay Haskins Georg Holzknecht Ted McDaniel ibm.com/redbooks SG24-5862-01 International Technical Support Organization TurboLinux Integration Guide for IBM ^ xSeries and Netfinity December 2000 Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix D, “Special notices” on page 355. Second Edition (December 2000) This edition applies to IBM xSeries and Netfinity systems preparing for the installation of TurboLinux. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. HQ7 Building 678 P.O. Box 12195 Research Triangle Park, NC 27709-2195 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 2000. All rights reserved. Note to U.S Government Users – Documentation related to restricted rights – Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Preface....................................................ix The team that wrote this redbook. ...................................x Commentswelcome............................................. xii Chapter 1. Introduction ......................................1 1.1TheIBMcommitmenttoLinux...............................1 1.2 TurboLinux . .............................................2 1.3 Introducing the xSeries family of servers .......................2 Chapter 2. Linux installation ..................................3 2.1 What you need to know about your hardware . .................3 2.2 Installing on a ServeRAID adapter ............................4 2.3Operatingsysteminstallation................................5 2.4 Miscellaneous ..........................................12 2.5Diskpartitioning.........................................15 2.6Configurefilesystems.....................................22 2.7Configuretheprimarynetworkinterfacecard...................25 2.8Softwarepackageinstallation...............................27 2.9Selectingakernel........................................29 2.10LILO.................................................30 2.11XServersetup.........................................35 Chapter 3. Basic system administration ........................39 3.1ConfiguringXwithmostNetfinityandxSeriesservers............39 3.1.1 X Windows configuration and startup .....................39 3.1.2 Installing the VESA frame buffer server . ................43 3.2 Turbonetcfg ............................................45 3.3 Turboprintcfg ...........................................48 3.3.1Configuringlocallyattachedprinters......................49 3.3.2ConfiguringremoteprintersoverTCP/IP..................52 3.3.3AddingNetBIOSbasedremoteprinters...................54 3.4 Adding and removing software packages ......................56 3.4.1 Adding additional packages from the CD-ROM with Turbopkg . 56 3.4.2 Adding packages via FTP with Turbopkg . ................59 3.4.3 Removing packages using Turbopkg .....................60 3.4.4 Package management using the RPM command . ...........61 3.5Userandgroupadministration..............................62 3.5.1 Adding new groups. .................................62 3.5.2Addingnewusers....................................65 3.6 Administering file systems and the boot record. ................68 3.6.1 Managing file systems ................................69 © Copyright IBM Corp. 2000 iii 3.6.2TheBootRecord....................................76 3.7Determiningyourhardware................................79 3.8ServerServices.........................................80 3.9Timezoneandtimeserverconfiguration......................83 3.10Enablingremoteservicestoyourserver......................84 3.11Filesystempermissions..................................87 Chapter 4. The ServeRAID controller and TurboLinux .............91 4.1 Updating the ServeRaid device driver for Linux . ................91 4.1.1 Obtaining the required source code ......................92 4.1.2 Compiling the ServeRaid driver in order to install TurboLinux 6 . 93 4.1.3 Compiling the ServeRAID driver after TurboLinux is installed . 94 4.2InstallingtheServeRAIDcommandlinetoolsforLinux............97 4.2.1getconfig.........................................100 4.2.2Thegetstatuscommand..............................104 4.2.3Thedevinfocommand...............................105 4.2.4 The hsrebuild command ..............................106 4.2.5Thesetstatecommand...............................108 4.2.6Thesynchcommand................................110 4.2.7 The unattended command . ..........................110 4.2.8Therebuildcommand................................111 4.3Replacingadefunctdrive.................................112 4.3.1 Replacing a defunct drive with disabled Hot Spare Rebuild . 113 4.3.2Replacingadefunctdrivewithahotsparedriveinstalled.....114 4.4 Using the ServeRAID Manager utility . .....................120 4.5 Remote management of the ServeRAID adapter ...............123 Chapter 5. DNS - Domain Name System .......................129 5.1Installationofsoftware...................................131 5.2DNSsampleconfiguration................................131 5.3Configurationtips.......................................137 Chapter 6. Samba .........................................139 6.1WhatcanyoudowithSamba?.............................139 6.2SettinguptheSambaserver..............................139 6.2.1ConfiguringtheSambaserver.........................140 6.2.2 Starting and stopping the Samba server . ...............148 6.2.3UsingSWAT.......................................148 6.3 Sources and additional information..........................165 Chapter 7. Apache and IBM HTTP Servers .....................167 7.1TheIBMHTTPServer...................................168 7.2ApacheHTTPServerinstallation...........................169 7.3IBMHTTPServerinstallation..............................170 iv TurboLinux Integration Guide for IBM ^ xSeries and Netfinity 7.3.1Settinguptheadministrationserver.....................172 7.4 General performance tips . ................................176 Chapter 8. Packet filtering with IP Chains .....................179 8.1Whatispacketfiltering?..................................179 8.2WhatcanyoudowithLinuxpacketfiltering?..................179 8.3 What do you need to run packet filtering?.....................180 8.4Networkconfigurationforapacketfilteringimplementation.......180 8.5 How to permanently enable IP Forwarding ....................182 8.6YourfirstIPChainsrule..................................183 8.7 How packets travel through a gateway . .....................184 8.8UsingIPChains........................................186 8.8.1Howtocreatearule.................................187 8.8.2 Making the rules permanent . ..........................188 8.9 Sources of additional information . ..........................188 Chapter 9. sendmail .......................................189 9.1 What is sendmail? . .....................................189 9.2 What you can do with sendmail . ..........................189 9.3 Before you begin . .....................................189 9.4Networkconfiguration....................................192 9.4.1SettingupthemasterDNS............................193 9.4.2 Setting up the DNS for the first subdomain . ...............196 9.4.3 Setting up the DNS for the second subdomain . ..........199 9.4.4 Setting up sendmail . ................................202 9.4.5Settingupthemailclient.............................205 9.5 Sources of additional information . ..........................208 Chapter 10. DHCP - Dynamic Host Configuration Protocol ........209 10.1 What is DHCP? . .....................................209 10.2 Why should I use DHCP? ................................209 10.3 Implementation on TurboLinux 6 ..........................209 Chapter 11. NFS - Network File System .......................213 11.1TheNFSprocess......................................213 11.2 Using turbonetcfg to share data with NFS ...................215 11.3 Sharing data with NFS: command-line process ...............217 11.4AccessingdataremotelywithNFS-thecommandlineview......219 Chapter 12. NIS - Network Information System .................221 12.1WhatisNIS?.........................................221 12.2HowcanIuseNIS?....................................221 12.3 Implementation on TurboLinux . ..........................222 12.3.1Usingthensswitchfileforlookups.....................222 v 12.3.2NISserver.......................................223 12.3.3NISClient........................................228 12.4 Sources of additional information ..........................230 Chapter 13. LDAP - Lightweight Directory Access Protocol .......231 13.1WhatisLDAP?........................................231 13.1.1DirectoryServices.................................231 13.1.2X.500...........................................232 13.2HowcanIuseLDAP?..................................232 13.3LDAPbasics..........................................232 13.4