• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

HowTos | Basics | Concepts

  • Solaris
    • Solaris 11
    • SVM
    • ZFS
    • Zones
    • LDOMs
    • Hardware
  • Linux
    • CentOS/RHEL 7
    • RHCSA notes
    • SuSE Linux Enterprise
    • Linux Services
  • VCS
    • VxVM
  • Interview Questions
  • oracle
    • ASM
    • mysql
    • RAC
    • oracle 12c
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Hadoop
    • Hortonworks HDP
      • HDPCA
    • Cloudera
      • CCA 131

How to Install Oracle Linux (UEK-2) with btrfs as a root filesystem

By admin

btrfs or Butter FS is a filesystem and has some interesting features:

  • One can have FS snapshots. It is like a freeze of the filesystem at some point of time.
  • btrfs is a extent-based filesystem. This means there are no lists of pointers. btrfs tracks contiguous blocks.
  • btrfs makes checksums of data and metadata. Therefore it can detect errors in the filesystem in “realtime”.
  • One can switch from ext3/4 to btrfs.
  • btrfs is supported from UEK-2 and above.

Follow the below steps to Install Oracle Linux (UEK-2) with btrfs as a root filesystem

1. Start the system from Oracle 6.3 boot DVD

2. Select “Rescue installed system”

Rescue installed system

3. When prompted select “local cd/dvd” as the installation source

select local dvd as installation source

4. When prompted to start the network interface choose “no”

choose network interface

5. When prompted “The rescue environment….” select “Skip”

skip rescue environment

6. Open “shell”.

7. To find your system volume group, e.g. vg_vm003:

# vgscan

8. Activate the LVM volume

# lvchange -ay vg_vm003

9. To find your system partition (now ACTIVE), e.g. /dev/vg_vm003/lv_root

# lvscan

10. Verify/Repair the filesystem and convert it to btrfs

# fsck -fy /dev/vg_vm003/lv_root
# btrfs-convert /dev/vg_vm003/lv_root

11. Mount the system partition (Do NOT use /mnt)

# mkdir /me
# mount /dev/vg_vm003/lv_root /me

12. Modify fstab to change the fstype of your lv_root partition from “ext4” to “btrfs”

# vi /me/etc/fstab

13. To address problems with SELinux, do the following to prevent “Respawning too fast. Stopped” errors at startup.

# touch /me/.autorelabel

14. Finally dismount the partition

# umount /me

Now, remove the boot DVD and reset the computer. When the system restarts use default Oracle UEK kernel with btrfs support.

Filed Under: CentOS/RHEL 6, Linux, OEL 6

Some more articles you might also be interested in …

  1. Linux OS Service ‘named’
  2. Maintaining Linux filesystems using “fsck” and “tune2fs”
  3. Linux OS Service ‘ntpd’
  4. How To Enable PHP 7.0 And httpd24 On Oracle Linux 7
  5. Starting udev: udevd inotify_init failed: too many open files
  6. Rsyslog : How to Send log files to remote server in CentOS/RHEL 6,7
  7. Basic “ls” Command examples in Linux
  8. CentOS / RHEL 6 : How to Save iptables Rules
  9. CentOS / RHEL 7 : systemd-analyze command to find booting time delays
  10. How to Make User Account Read-Only in CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • Understanding “docker stats” Command Output
  • ‘docker images’ command error – “Permission Denied”
  • Docker Basics – Expose ports, port binding and docker link
  • How to split BCV and open oracle ASM database
  • How to change the interface name in CentOS/RHEL 8 using prefixdevname
  • Archives
  • Contact Us
  • Copyright

© 2019 · The Geek Diary