Skip to content
Search Oracle Linux

    Browse this documentation

    Btrfs on Oracle Linux today: a UEK-exclusive module, absent from the installer, with subvolumes and snapshots measured on loopback

    Btrfs’s real position in the Oracle Linux ecosystem: where it works, where it explicitly does not, how its core features (subvolumes/snapshots) measure under UEK, and which scenarios justify choosing it.

    1. The installer has no Btrfs scheme — the manual-partitioning dropdown offers only ‘Standard Partition / LVM / LVM Simple Config’. Btrfs root? The distribution does not support that path;
    2. The module is UEK-only — btrfs.ko.xz is in place in UEK; the RHCK btrfs directory is empty. A system booted with RHCK cannot mount Btrfs;
    3. The toolchain is complete — btrfs-progs 6.12 installs straight from the UEK repository.

    One-line positioning: on OL, Btrfs is a “UEK-exclusive data-volume option”, not a root-filesystem candidate.

    The core value, measured: subvolumes and readonly snapshots

    Section titled “The core value, measured: subvolumes and readonly snapshots”
    Terminal window
    dnf install -y btrfs-progs
    dd if=/dev/zero of=/tmp/btrfs.img bs=1M count=200 status=none
    losetup /dev/loop7 /tmp/btrfs.img
    mkfs.btrfs -L oltest /dev/loop7
    mount /dev/loop7 /mnt/bt

    Subvolume and snapshot measured:

    Terminal window
    btrfs subvolume create /mnt/bt/snap1 # ID 256 subvolume
    echo v1 > /mnt/bt/file.txt
    btrfs subvolume snapshot -r /mnt/bt /mnt/bt/ro_snap # readonly snapshot
    echo v2 > /mnt/bt/file.txt # the source keeps writing
    cat /mnt/bt/ro_snap/file.txt # → v1 (the readonly snapshot frozen at its point)

    Snapshots are copy-on-write: creation is near-zero cost and occupies no extra space (until a divergent write). Typical uses:

    • Snapshot before an upgrade or change; roll back in seconds when something breaks (with btrfs subvolume set-default);
    • btrfs send/receive for incremental backups to another disk — a built-in capability neither xfs nor ext4 has.
    ScenarioRecommendation
    Root filesystemxfs (the default) — the installer does not support Btrfs root, and xfs has the widest compatibility surface with Ksplice and the toolchain
    Backup/snapshot-heavy data volumesBtrfs fits: send/receive incremental backup is the killer feature
    Database data directoriesCareful: CoW causes write amplification on large-file random writes — chattr +C to disable CoW, or just use xfs
    VM disk image poolsBtrfs fits: snapshots + compression (zstd) save space
    Capabilityxfs (OL default)Btrfs (UEK-exclusive)
    Online growth✅ (lvextend -r)✅ (btrfs filesystem resize; can even add disks)
    Online shrink❌✅ (filesystem resize smaller)
    Snapshots❌ (via LVM snapshots)✅ native, second-level, readonly-capable
    Database random writes✅ mature⚠️ CoW write amplification; needs no-CoW
    RHCK compatibility✅❌ module absent
    • Measured: the installer’s scheme list (screenshot), the dual-kernel module-directory comparison, and the full loopback flow (mkfs/subvolume/readonly snapshot/data reads) (E3);
    • Not measured: the send/receive incremental backup chain (needs a second real disk) and multi-device profiles (raid1);
    • Sources: the UEK 8 Release Notes (Btrfs support), btrfs(5).