Skip to content

FrontendInstallation_EL

cstackpole edited this page May 18, 2013 · 11 revisions

These instructions were initially done on Scientific Linux 6.2 i386 as the base OS for this cluster but they have been tested on SL6.3 and SL6.4 as well. Why an Enterprise Linux based OS? Well Red Hat Enterprise Linux is ridiculously stable and widely regarded as a good OS for enterprise and big computing. So why not Red Hat Enterprise Linux? Well, because I can't afford it for home use. Professionally I do have uses for RHEL and the nice thing about these build instructions is that they interact with RHEL so closely that switching OS's is easy. So why not CentOS? Again, the instructions are close enough that you can follow along easily. I just prefer Scientific Linux.

Graphical Installation

  1. Turn on a box and insert the Scientific Linux 6 CD or USB stick.
  • Select 'Install or upgrade an existing system'
    FirstScreen
  • Feel free to skip the media test but if you have any problems, this is usually a good place to start looking.
    DiscFound
  • Select Next
    SplashScreen
  • Select your appropriate language and keyboard.
    LanguageScreen
    KeyboardScreen
  • Select basic storage devices unless you know specifically that you need to do something specific.
    BasicGraphicScreen
  • Enter a hostname. The guide example is: frontend01.cluster.domain
    HostScreen
  • Select 'Configure Network'.
  • Select 'System eth0' and click edit.
    Network1Screen
  • In the 'IPv4 Settings' tab select manual unless you know your network supports DHCP.
    Network2Screen
  • If you are using a manual configuration then click add and enter your Address, Netmask, Gateway, and DNS servers.
    Network3Screen
  • Make sure the IPv4 checkbox is required.
  • If everything looks good, hit apply.
  • Click 'Close' to exit out of 'Network Connections' and 'Next' to move on.
  • Now find your timezone and click next.
    TimeZoneScreen
  • Create a root password.
    PasswdScreen
  • Select a 'Create Custom Layout' and click 'Next'.
    DiskSpaceScreen
  • Delete all the partitions on the box.
    DiskPartitionScreen
  • Select the disk and click 'Create' so that we can make a new partitions.
    DiskDeviceScreen
  • Select standard partition and create.
    CreateStorageScreen
  • Select the root mount point.
    RootPartition1
  • We are going to use EXT4 File System Type for /, /home, and /tmp partitions.
  • Enter the size of the partition. If possible reserve 20-50GB for /, 4GB for swap, and 10-20GB for /tmp. If this is a training/educational build then 15GB is plenty for / but if this is going to be used for any kind of research more should be allocated. Select 'Fixed size' and 'Force to be a primary partition' before selecting 'OK'. Just be aware that you can only have 4 primary partitions. If you need more for other reasons, the configure all the partitions except / and swap on a LVM. Trust me, do NOT put / or swap in an LVM; it isn't worth the pain should it ever break.
    RootPartition2
    SwapPartition
    On the /home partition allocate as much space as possible by selecting 'Fill to maximum allowable size'. Some choose to even have a seperate disk for /home, a RAID of many disks, or even a big SAN. It all depends on your needs.
    HomePartition
  • Repeat steps 19-23 until all partitions are created. After the partitions are created click 'Next'.
  • A warning will pop up asking if you really want to format the partitions. Select OK.
    FormatWarning
  • Another warning will appear asking if you want to 'Write storage configuration to disk', select OK.
    WriteChangesToDisk
  • Make sure the bootloader is installed. I highly recommend adding a boot loader for extra security. This will help prevent an attacker from changing the boot parameters and gaining access to the frontend through the GRUB boot loader.
    BootLoader
  • Select 'Minimal Desktop'. If you have a lot of Linux experience selecting 'Minimal Install' is what I prefer. However, having access to a basic GUI can come in handy every once in a while.
    MinimalDesktop
  • If you have a local repository, then modify the repositories to use them. If you are building this cluster for fun and learning, then just use the offical repository. If have a LOT of nodes or are planning to do this frequently, then please consider hosting a local repository. First it shifts the load from the main community servers to local servers and second it will be much faster for your installs. See the main page for building a repo. Enable the repositories for the main repo, fastbugs, and security so that you get the latest patches now instead of having to update the cluster later. The repos you want are below but if you are not using a 64bit OS, then change 'x86_64' to i386:
    Main OS: 'http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/os/'
    Fastbugs: 'http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/updates/fastbugs/'
    Security: 'http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/updates/security/'
  • Select 'Customize Now' and 'Next'.
    CustomizeNow
  • Click 'Desktop' on the left, then 'Graphical Administration Tools', and click 'Optional packages'. This will open a new window.
    GraphicalAdminTools
  • The installation of the Graphical SELinux tools is very useful for beginners. SELinux helps protect a Linux box from attacks. When you have a bunch of users compiling software on your cluster, it opens your system up to a lot of potential problems. SELinux is a must. The other package we want to install is a graphical kickstart utility. The packages we want to install are policycoreutils-gui and system-config-kickstart. Click 'Close' and then 'Next'.
    PackagesInGraphicalAdminTools
  • The install will now begin.
    InstallScreen
  • When the install is done, reboot.
    RebootScreen
  • The first boot option will present a screen if you installed a GUI. Click 'Forward'.
    Forward
  • Create a user. This user will be used as the non-root admin for compiling packages and administering the cluster. Click 'Forward'.
    CreateUser
  • Point your system to a NTP server. If you don't have one, just use the defaults. Time is important.
    DateAndTime
  • If you have less then 2GB of memory you will get a error about KDump. Whether you do or don't get an error, disable and ignore unless you know you want it.
    Kdump1
    Kdump2
  • You may need to reboot again. At the screen, log in as the user you just created.
    LoginScreen
    Now continue with the setup on the main page.

Other Installation

If you install by another method, ensure that you have both of these packages installed.

$ yum install policycoreutils-gui system-config-kickstart

Disable Autoupdate

Don't forget to disable yum auto update! Especially on the frontend!

Clone this wiki locally