Oracle Linux: How to Create and Query a Single BTRFS File System
(Doc ID 2428409.1)
Last updated on MAY 22, 2020
Applies to:Linux OS - Version Oracle Linux 6.3 and later
Oracle Cloud Infrastructure - Version N/A and later
This document is to explain how to create a BTRFS file system in a single device on Oracle Linux.
The btrfs file system is designed to meet the expanding scalability requirements of large storage subsystems. As the btrfs file system uses B-trees in its implementation, its name derives from the name of those data structures, although it is not a true acronym. A B-tree is a tree-like data structure that enables file systems and databases to efficiently access and update large blocks of data no matter how large the tree grows.
The btrfs file system provides the following important features:
- Copy-on-write functionality allows you to create both readable and writable snapshots, and to roll back a file system to a previous state, even after you have converted it from an ext3 or ext4 file system.
- Checksum functionality ensures data integrity.
- Transparent compression saves disk space.
- Transparent defragmentation improves performance.
- Integrated logical volume management allows you to implement RAID 0, RAID 1, or RAID 10 configurations, and to dynamically add and remove storage capacity.
Starting with Oracle Linux 6 Update 3, the UEK Boot ISO (which boots the Unbreakable Enterprise Kernel as the installation kernel) allows you to configure a btrfs root file system. Prior to Oracle Linux 6 Update 3, you could not create a btrfs root file system during installation.
With UEK R3, btrfs supports the following additional features:
- The send/receive feature allows you to record the differences between two subvolumes, which can either be snapshots of the same subvolume or parent and child subvolumes.
- Quota groups (qgroups) allow you to set different size limits for a volume and its subvolumes.
- You can replace devices without unmounting or otherwise disrupting access to the file system.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document