Linux System Management-(6)-btrfs file system

Source: Internet
Author: User

What is Btrfs?

Btrfs, a cow (copy-on-write) file system announced and in progress by Oracle in 2007. The goal is to replace Linux's current Ext3 file system to improve ext3 limitations, especially single file size limits, total file system size limits, and the addition of file checksum features. Added some features not currently supported by EXT3/4, such as writable disk snapshots (snapshots), and support for recursive snapshots (snapshots of snapshots), built-in disk array (RAID) support, support for the concept of sub-volumes (subvolumes), Allows the file system size to be resized online.

What are the features of Btrfs?
Multi-Physical volume support: Btrfs can be composed of multiple underlying physical volumes;

RAID support for online "add", "Remove", "modify";
Copy-on-write update mechanism (CoW): Copy, update, and replace pointers instead of "in-place" updates;
Check code: Checksum
Sub-Volume: Sub_volume
Snapshots: snapshots that support snapshots;
Transparent compression: Transparent relative to the user

How do I create btrfs?

Mkfs.btrfs
-L ' LABEL ' volume label
-D <type>: Raid0, RAID1, RAID5, Raid6, RAID10, single data storage structure
-M <profile>: RAID0, RAID1, RAID5, Raid6, RAID10, single, DUP metadata storage structure
-O <feature> Other features, some features require kernel support
-O List-all: Lists all supported feature;


# # Because Btrfs supports RAID technology by default so it should be more suitable for multi-drive situations, so I added 2 hard drives to the virtual machine for demonstration purposes

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/7A/wKioL1XkbpKRf1-IAABF3uYdOsQ704.jpg "title=" Add hard disk. png "alt=" wkiol1xkbpkrf1-iaabf3uydosq704.jpg "/>

Mkfs.btrfs-l Volume label/DEV/SDB/DEV/SDC

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/7A/wKioL1XkbrKDjKQ3AADxEIri5NE392.jpg "title=" Mkfs.png "alt=" Wkiol1xkbrkdjkq3aadxeiri5ne392.jpg "/>

Properties View:
Btrfs filesystem Show
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/7D/wKiom1XkbRLSMtIAAACP6yeboPA709.jpg "title=" Show.png "alt=" Wkiom1xkbrlsmtiaaacp6yebopa709.jpg "/>

Mount File System:
Mount-t Btrfs/dev/sdb Mount_point

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/7A/wKioL1XkcFSyrnKFAAAcyu7LGPg440.jpg "title=" Mount.png "alt=" Wkiol1xkcfsyrnkfaaacyu7lgpg440.jpg "/>

Transparent compressor System:
Mount-o Compress={lzo|zlib} DEVICE mount_point


Btrfs Sub-command:

btrfs FileSystem show/dir View folder usage

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/7A/wKioL1Xkcb6AFUzLAACrC1Ue8AU263.jpg "title=" show My.png "alt=" Wkiol1xkcb6afuzlaacrc1ue8au263.jpg "/>


Btrfs filesystem resize {max|+[n]|-[n]}/dir

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/7D/wKiom1XkcFCg5XgpAADVuZc_UgU669.jpg "title=" Resize.png "alt=" Wkiom1xkcfcg5xgpaadvuzc_ugu669.jpg "/>


Btrfs device Add/device/dir a device for Dir


Btrfs balance Start/dir to equalize files in Btrfs general the operation after device add

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/7A/wKioL1Xkc1HhvsGcAABIwz5kbuM508.jpg "title=" Balance.png "alt=" Wkiol1xkc1hhvsgcaabiwz5kbum508.jpg "/>

Not to be continued.

Linux System Management-(6)-btrfs file system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.