2.4 Installing a System with a Btrfs root File System

2.4.1 Customizing a Network Installation Server
2.4.2 Installing a Btrfs root File System

For compatibility reasons, the default installation image of Oracle Linux boots the Red Hat compatible kernel to perform the installation. Oracle provides an alternative installation image (UEK Boot ISO) that supports the installation of Oracle Linux 6 Update 3 or later using the Unbreakable Enterprise Kernel (UEK) as the installation kernel. This installation method allows you to create a btrfs root file system.

As the UEK Boot ISO contains only the bootable installation image, you must set up a network installation server for the RPM packages. This server must have sufficient storage space to host the full Oracle Linux Release 6 Update 3 or later Media Pack DVD image (approximately 3.5 GB), and you must configure it to use either HTTP or NFS to serve the image files to the target systems on which you want to install Oracle Linux 6 Update 3 or later.

Perform one of the procedures in the following sections to set up an HTTP or NFS server on the system that will act as the network installation server:

You can then set up the network installation server, modify an installation image to support the Unbreakable Enterprise Kernel (UEK) as an installation kernel, and use this image to install a system with a btrfs root file system:

2.4.1 Customizing a Network Installation Server

Note

This procedure assumes that you have set up the system as an NFS or HTTP server.

To set up a network installation server that allows the installation of a system with a btrfs root file system:

  1. Download the full Oracle Linux Media Pack DVD image (for example, V41362-01.iso for x86_64 (64 bit) Oracle Linux Release 6 Update 5 from the Oracle Software Delivery Cloud at http://edelivery.oracle.com/linux.

  2. Mount the DVD image on a suitable mount point (for example, /mnt):

    # mount -t iso9660 -o loop V41362-01.iso mount_dir
  3. Use the following command to extract the contents of the DVD image into a directory (output_dir) whose contents are shareable using NFS or HTTP:

    # cp -a -T mount_dir output_dir

    For example, to copy the DVD image mounted on /mnt to /var/OSimage/OL6.5:

    # cp -a -T /mnt /var/OSimage/OL6.5

    or to /var/www/html/OSimage/OL6.5:

    # cp -a -T /mnt /var/www/html/OSimage/OL6.5
    Note

    You must export this directory by NFS or make it accessible via HTTP.

  4. Unmount the DVD image:

    # umount mount_dir
  5. Modify the images directory to support the Unbreakable Enterprise Kernel (UEK) as the installation kernel:

    1. Download the UEK Boot ISO image for the desired architecture (for example, V41364-01.iso for x86_64 (64 bit)).

    2. Mount the UEK Boot ISO image:

      # mount -t iso9660 -o loop V41364-01.iso
    3. Replace the contents of the images directory that you copied from the DVD image with the contents of the images directory from the UEK Boot ISO image:

      # rm -rf output_dir/images
      # cp -r mount_dir/images output_dir 

      For example, to replace /var/OSimage/OL6.5_UEK/images:

      # rm -rf /var/OSimage/OL6.5_UEK/images
      # cp -r /mnt/images /var/OSimage/OL6.5_UEK

      or to replace /var/www/html/OSimage/OL6.5_UEK/images:

      # rm -rf /var/www/html/OSimage/OL6.5_UEK/images
      # cp -r /mnt/images /var/www/html/OSimage/OL6.5_UEK
  6. If SELinux is enabled in enforcing mode on your system and you have configured the system as an HTTP server but you did not copy the DVD image to a directory under /var/www/html:

    1. Use the semanage command to define the default file type of the directory hierarchy as httpd_sys_content_t:

      # /usr/sbin/semanage fcontext -a -t httpd_sys_content_t "/var/OSimage(/.*)?"

    2. Use the restorecon command to apply the file type to the entire directory hierarchy.

      # /sbin/restorecon -R -v /var/OSimage
    Note

    The semanage and restorecon commands are provided by the policycoreutils-python and policycoreutils packages.

  7. Copy the UEK Boot ISO image to a suitable medium from which you can boot the target system on which you want to install Oracle Linux 6 Update 5.

  8. Unmount the UEK Boot ISO image:

    # umount mount_dir

2.4.2 Installing a Btrfs root File System

To install a target system from a network installation server:

  1. Boot the target system using the UEK Boot ISO.

  2. Select Install or upgrade an existing system.

  3. On the Installation Method screen, select either NFS directory or URL depending on whether you configured your installation server to use NFS or HTTP respectively.

  4. After configuring the network settings, enter the settings for the NFS or HTTP installation server.

    For installation using NFS, enter the path of the full DVD image, for example /var/OSimage/OL6.5_UEK.

    For installation using HTTP, enter the URL of the full DVD image, for example http://192.168.1.100/OSimage/OL6.5_UEK.

  5. Follow the installation instructions in Section 2.1, “Installation Overview”. The default disk layout creates a btrfs root file system.

    Note

    You cannot configure a bootable partition, such as /boot, as a btrfs file system.