Installation of Red Hat Enterprise Linux 6
UNIX at SLAC
Linux at SLAC
|Updated: 09 Nov 2011|
Please note: These are not complete Red Hat Enterprise Linux install instructions; go to the Red Hat Web site for more complete information.
This procedure does a "clean install", not an upgrade. If you follow OCIO recommendations against storing permanent data on a workstation's system disk, this should not be a problem. If you do have some data you want to preserve on this disk, but it is all stored in a non-system partition, e.g., /u1, you might be OK, providing your system partitions are large enough to accommodate RHEL6 with sufficient room for future updates (see Disk Partitions, below). Otherwise, it is your responsibility to backup your data before beginning the installation. If you must restore it to a local filesystem after the installation, we strongly urge you to buy a second disk and keep permanent data off the system disk.
You may want to work next to a machine with a web browser and access the Red Hat installation manual from the documentation area of the Red Hat web site.
To make a bootable CDROM for installing RHEL6, you will need to burn an ISO 9660 image file onto CD-R (or CD-RW) media. On Linux, you can use an application like Xcdroast (requires X Windows) or cdrecord (a command-line tool). On a RHEL5 desktop system, double clicking on a file ending in ".iso" will bring up a "Write to Disk" dialog box which can be used to burn a copy of the file to a CD-R disk. Mac OSX can successfully create bootable CDROMs using the CDROM burning utility.
To create an installation boot CDROM under Linux, using the cdrecord utility:
Find the ISO 9660 disc image for an installation boot CDROM for your architecture and the current RHEL6 Update level:for 64-bit
cd /nfs/slac/g/scs/redhat/RedHat/RHEL6/6u1/workstation/x86_64/bootiso/ ls rhel-workstation-6.1-x86_64-boot.isofor 32-bit
cd /nfs/slac/g/scs/redhat/RedHat/RHEL6/6u1/workstation/i386/bootiso/ ls rhel-workstation-6.1-i386-boot.iso
cdrecord -scanbus dev=/dev/hdcYou'll get a line that includes some text identifying your specific CDROM device, along with the device address; for example:
1,0,0 100) '_NEC ' 'CD-RW NR-9300A ' '105B' Removable CD-ROMThe first field in this example, "1,0,0", is your CDROM device address. This is the information you'll need.
cdrecord -v -speed=2 dev=1,0,0 -eject -data boot.isoOn some systems you may need to prefix the device address with a transport layer indicator, such as 'ATA:' or 'ATAPI:', or you may need additional options on the cdrecord command line. See the man page for cdrecord for details.
If you haven't burned any CDROMs before, it's a good idea to run some tests first by adding the '-dummy' option to the cdrecord command line.
The ISO image for RHEL6.1 includes a 'Rescue' option.
See below For Rescue Method instructions.
Stick the CDROM in the drive and reboot your machine.
If your machine ignores the CDROM at boot time, and simply reboots the existing system on the hard disk, there is most likely a problem with the boot order in the BIOS. You can usually get into the BIOS by pressing a function key (usually F2) early in the boot process. The various BIOS screens vary quite a bit, even within a single vendor's products. However, there is usually a place where you can specify the order in which the BIOS should look for a bootable device. You should make sure it looks at the CDROM drive before the hard disk.
At the introductory, 'Welcome to Red Hat Enterprise Linux 6.1!' menu, choose 'Install or upgrade an existing system'. Other possible choices include 'Install system with basic video driver', 'Rescue installed system', 'Boot from local drive' , or a 'Memory test.'
N.B. If your initial installation attempt fails with a wonky video display, retry with the 'basic video driver'.
N.B. There may be some variations in the order of the screens in the installation program depending on your exact hardware configuration and/or the choices you make, so it's probably a good idea to read through the rest of this section before proceeding.
It will take a minute or two to load. Choose 'Skip' to skip the media test.
Next, after questions regarding 'Language' and 'Keyboard' choice, the installation proceeds to "Installation Method."
In the "Installation Method" screen, choose NFS directory to insure that the latest SLAC-recommended kernel and RPMs are installed. If you install from a CDROM, you may need to upgrade the kernel after installation in order to comply with SLAC security requirements.
Next, you will be asked to configure TCP/IP.
Under Enable IPv4 support Uncheck Use dynamic IP configuration by checking the Manual Configuration. Uncheck Enable IPv6 support. (Movement and select directions are at the bottom of the screen).
On the next screen "Manual TCP/IP Configuration" enter the IP Address, Netmask, Default gateway and Primary nameserver information given to you by your Desktop admin when you requested your node name and IP address. The primary nameserver is 22.214.171.124.
Please be careful to enter this information accurately, because errors can disrupt the network.
Next you will enter NFS setup information. The NFS server
lnxinstall and the Red Hat directories
If the directory can't be mounted try using
172.23.20.118, instead of its name.
After the splash RHEL6 screen, the next questions are:
rootpassword and DON'T FORGET IT! SLAC's post-installation tool
taylorwill override this password.
The default partitioning scheme used by the the other options is not suitable for use in the SLAC environment.
The table below shows suggested partitioning schemes for two different size disks, representing typical sizes of disks available on older hardware still in service here at SLAC. Newer systems usually have substantially larger system disks.
Make sure to give Linux at least a 9 GB root partition. If your root partition is less than about 9 GB, you should omit installing some of the software package groups recommended below, in order to allow room for future upgrades and security patches. Similarly, if you install more package groups than suggested below, you will probably need a larger root partition -- perhaps 10-12 GB if you install nearly everything. Small root partitions can make it difficult or impossible to install required security patches later on. Systems that cannot apply required security patches in a timely fashion may be denied access to the SLAC network. If possible the root partion should be at least 20 GB for modern machines with 100 GB and larger disks.
You should also create a swap partition at least as large as the memory (twice the main memory is a good rule of thumb for the size of the swap partition).
If there is sufficient space, we recommend that you allocate an
/scswork partition of 1 GB, to be reserved for the exclusive
use of OCIO. Use the rest for scratch space; for example, you might want to
create a larger
/tmp or add a separate
directory. Note that older files in
/tmp are periodically
removed but files in
/scratch will remain until removed by you
unless the system is re-installed.
Always choose to format your Linux partitions. Use the new, ext4 filesystem type on all partitions except swap and /usr/vice/cache/cache.. (In earlier versions of AFS, /usr/vice/cache needed the ext2 filesystem, but ext4 is now compatible with the AFS cache). ext4 is a journaling filesystem and will permit much faster recovery following crashes.
WARNING! You should not allocate any partitions on the system disk for permanent data. Because of the large sizes of currently available disks, you may be strongly tempted to ignore this warning. However, it is very risky to do so, because:
The best way to make use of extra space on your system disk is to allocate a large /tmp or /scratch partition. If you need additional permanent space, please contact firstname.lastname@example.org; we will do our best to help you acquire reliable, backed-up storage at a reasonable cost. If you ignore this warning, it will be your responsibility to save and restore your data the next time your system needs to be re-installed.
Note that partition names and numbers, and the order of the partitions, are assigned automatically. Also, the actual sizes of allocated partitions may vary a little bit from what you request in the GUI interface. This may make it difficult to allocate every last block on the disk. The OCIO recommendation is to use LVMs and to leave extra room which can be used later.
|12 GB disk||+18 GB or larger disk|
|/||ext4||9 GB||12 GB|
|swap||swap||1 x memory or
at least 512 MB
|2 x memory or|
at least 1 GB
|/var||ext4||512 MB||4 GB|
|/usr/vice/cache||ext4||512 MB||2 GB|
|/tmp||ext4||512 MB||4 GB|
|/scratch (or extra /tmp space)||ext4||omit||remainder|
When you begin, you'll have a screen that appears this way:
There will be two dialog boxes confirming you want to reformat the disk.
Accept the defaults for the other options on this screen.
As stated by the installer, 'The default installation of Red Hat Enterprise Linux is a desktop install.' Other choices include, 'Minimal Desktop', 'Web Devlopment Workstation', 'Software Devlopment Workstation', and 'Minimal' Please do not install the 'Web Development Workstation' unless you really know what you are doing and okay it with OCIO first.
Don't worry too much about getting every package you might ever want -- you can always add additional packages later.After this, the installation will begin. It may take 15 minutes to over an hour to install the packages depending on the speed of your machine and network.
Once complete, you'll be presented with a 'Congratulations' screen. NOTE you'll want to eject your boot CDROM prior to rebooting so you don't boot back to the boot iso image.
The final installation screen has a 'reboot' bottom on the right corner. Again, make sure to remove any CDROM left in the drive from the initial boot of the installation program.
The first time you boot your newly-installed system in the graphical run level (run level 5) the Red Hat Welcome screens may automatically run.
If you are planning to taylor your system you can skip most or all of these steps -- they are either unneeded or will be handled by taylor.
The welcome screens are intended for stand-alone systems and guides you through a number of first time system administration tasks such as:
You'll need to agree to the License agreement.
If running Taylor, then choose 'no'. (You'll need to confirm 'No Thanks'.)
In particular, avoid creating a local account with the same username as your SLAC UNIX account or registering personally with RHN. If you plan to taylor the system, you do not need to create a local account. Please do not. For the Create User screen 'Forward' button with no additions or adjustments. You'll need to confirm you want to continue without a user account.
Accept the defaults.
Accept the defaults. Do not choose to reboot to enable kdumps.
On the next screen, you'll click on 'Other..' enter 'root' as the user and password you picked earlier. You'll see messages related to being logged in as root, and how it's not ideal, but this okay for this one time. You'll also see missing entitlements messages.
WARNING: This is not (yet) for laptop users.
Taylor is the tool used by OCIO for administering the very large number of UNIX (including Linux) systems for which we are responsible. It can be run after the Red Hat installation program to automatically configure your new system to be integrated into the SLAC environment. It normally installs a cronjob which will maintain your system automatically.
Some of the things Taylor does include:
/usr/localto point to SLAC AFS
For additional information, see the Taylor Web page.
Taylor uses a configuration file,
/etc/taylor.opts, to control
its actions. If you don't have this file the first time you run Taylor, it
will install one with a reasonable set of defaults. However, you may want
to set some of these options before you run Taylor the first time, since the
root password you set during installation will otherwise be
overridden at this point.
If your machine was previously taylored, you will most likely want to
restore most or all of the options from your old
file (you did print a copy before
If your machine is connected to a
non-autonegotiating (fixed speed) 100 MB/s port, it is
particularly important to include the option,
If you are not sure, omit this option or check with net-admin or your Desktop
If your machine has not been previously taylored, look in
/afs/slac/package/taylor/taylor.opts for a sample
taylor.opts file. In particular, this file includes commented
out examples examples showing how to:
For a more complete list of options, do
After running Taylor the first time, if you subsequently need an option
changed and can no longer modify
contact one of your Linux Desktop Support people or send mail to
First get to a terminal prompt from the GUI by selecting from the top left of the menu bar "Applications", then 'Systems Tools" and lastly 'Terminal'.
To install and run Taylor, execute the following command:
wget -O- http://www.slac.stanford.edu/comp/unix/linux/go-taylor | sh
You will be asked whether to use the version of
maintained by OCIO or set up a private /usr/local. We highly
recommend that you use the central one.
Taylor will probably take several minutes to complete its work. If there is
an error and you can see how to fix the problem, it is safe to rerun
taylor afterward. If you have an error you cannot understand
or fix, send email to
unix-admin to request help. If possible, paste the error
messages from Taylor into the email.
If you receive your email via the UNIX mail spool rather than SLAC's
Exchange server, you'll need access to
/nfs/mailspool/mail/<your_UID>. Some users may also want
to access other central NFS file servers from their Linux workstations.
Access to NFS is not automatic; for security reasons you must submit a
request to OCIO for permission to mount our central servers. There is a
simple NFS Access
form for this purpose if you do not need any superuser privileges on the
machine. If you also need privileges, see the next section.
If you need superuser privileges (i.e., the
sudo ALL) on your machine, you will need to carefully
read the Superuser/NFS
Privileges page, then fill out and submit the form you'll find
there. If you also need NFS access, you must request it via this same form.
SLAC maintains a mirror of the Red Hat Enterprise Linux WS 6 distribution on a RedHat Linux Satellite Server.
The yum command is a program that can look at a directory or at an ftp or http site and determine if there are updates to any of your packages there. If it finds them, it can also install them. Taylor installs yum and uses it to apply required security updates. In addition, Taylor configures yum so that you or your system admin can use it to install any necessary bug fix RPMs to bring your system up to the latest OCIO-recommended Red Hat update level. The command to do this is simply,
sudo yum upgradeTo find out what yum would do without actually doing it, use the command,
sudo yum check-update.
Use the GUI program:
sudo gpk-applicationto find additional RPMS that you might want to install (the program is from the gnome-packagekit RPM). You can also find this program in Gnome under the System menu, then under the Adminstration menu, then "Add/Remove Software".
- as stated - after pressing [return] to get a shell, you can 'chroot /mnt/sysimage' to make your environment the root environment. And you are in as root
There are some known issues with RHEL6. Please see the RHEL6 Release
notes for other information:
If you need more information, please have a look at our Linux Resources page.