Btrfs File System

The Btrfs (B-Tree) file system offers advanced management, reliability, and scalability features. It enables users to create snapshots, it allows for compression and integrated device management.

How to Create BTRFS FILE SYSTEM:

In order to make a basic btrfs file system, use the following command:

# mkfs.btrfs /dev/device

HOW TO MOUNT BTRFS FILE SYSTEM:

mount /dev/device /mount-point

HOW TO RESIZE A BTRFS FILE SYSTEM

Use command:

btrfs filesystem resize amount /mount-point

For example:

btrfs filesystem resize +200M /btrfssingle

To enlarge a multi-device file system, the device to be enlarged must be specified. First, show all devices that have a btrfs file system at a specified mount point:

btrfs filesystem show /mount-point
btrfs filesystem resize devid:amount /mount-point
btrfs filesystem resize 2:+200M /btrfstest

How to Shrink a btrfs File System:

Use Command:

# btrfs filesystem resize amount /mount-point

For Example:

# btrfs filesystem resize -200M /btrfssingle
# btrfs filesystem show /mount-point
# btrfs filesystem resize devid:amount /mount-point
# btrfs filesystem resize 2:-200M /btrfstest
Free Web Hosting