How to Resize/Expand a Btrfs Volume (Doc ID 2302774.1)

Last updated on SEPTEMBER 03, 2017

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64

Goal

 It is a common task to resize/expand btrfs file system since btrfs is widely used in Oracle Linux 7 and also as Docker's backend storage driver.

This note illustrates 2 common procedures to expand a btrfs root volume:

1. Expand to use available space on original disk

2. Add a new disk into the same btrfs volume

Note

These procedures are risky due to possible mistakes made in changing existing partitions or unexpected power outages during btrfs balance operation, please make sure your data/system has a latest usable BACKUP.

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms