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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

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. RHEL 7 – RHCSA Notes – input / output redirection
  2. CentOS / RHEL : How to add a null route in Linux
  3. How to check the PHP version on Linux
  4. How to Verify if a Disk/Partition is in Use by Oracle ASM, was used by Oracle ASM or is never used by Oracle ASM
  5. CentOS / RHEL 6 : How to configure 802.1q VLAN On NIC
  6. Managing a GFS2 File System – Adding journals, extending and repairing GFS2
  7. How to set nproc (Hard and Soft) Values in CentOS / RHEL 5,6,7
  8. How to merge 2 volume groups (VGs) into one using vgmerge in LVM
  9. How to create LXC container using lxcbr0 and virbr0 in CentOS/RHEL
  10. How To Check Swap Usage of Each Processes in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • How to Configure Automatic Package Updates on the Server in CentOS/RHEL 8
  • FATAL: Error inserting rds_rdma
  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary