The management and use of Btrfs file system

Source: Internet
Author: User


about Btrfs    

The file system appears to be a relatively stable part of the kernel, and over the years, people have been using the Ext2/3,ext file system for its excellent stability as the de facto Linux standard file system. In recent years, EXT2/3 has exposed some extensibility problems, so it has spawned ext4. The dev version of EXT4 was integrated in the Linux2.6.19 kernel released in 2008. When the 2.6.28 kernel was released, EXT4 ended the development and began accepting users ' use. It seems that ext will become synonymous with Linux file systems. However, when you read many articles about EXT4, you will find that you have mentioned btrfs in unison, and that EXT4 will be a transitional file system. Ext4 's author Theodore Tso also praised Btrfs and believes Btrfs will become the next generation Linux standard file system. ORACLE,IBM, Intel and other manufacturers have also shown great concern for Btrfs, invested in capital and manpower. Why has btrfs been so visions? Let's take a look at the features of the Btrfs file system .


Btrfs Features:

1) Multi-physical volume support, can be by multiple underlying physical volume group layer, to raid, online "add" "Remove" "modify" and so on

2) Support for copy-on-write update mechanism: Copy, update and replace pointers instead of "in-place" updates;

3) data and meta-data check code

4) You can create a sub-volume

5) Support snapshot function, and can take two snapshots on the basis of snapshot

6) also transparent compression function

with so many features and benefits, let's try creating a Btrfs file system to get a deeper look!

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/7C/wKiom1XkXuijyDKRAAOUhC7vVJY962.jpg "title=" Picture 1.png "alt=" Wkiom1xkxuijydkraaouhc7vvjy962.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/79/wKioL1XkYVHQWirtAAHk6Pldj8g107.jpg "title=" Picture 2.png "alt=" Wkiol1xkyvhqwirtaahk6pldj8g107.jpg "/>

Mainly introduce the common commands of Btrfs file system

Four sub-commands are used primarily

1) Subvolume 2) FileSystem 3) Balance 4) device so describe the common options and how to use each command individually

FileSystem: The main function is the Btrfs file system itself commands

-df: View mounted btrfs space usage,Btrfs's own unique DF command and DF on Linux system The order is not universal.

-show <path>|<uuid>|<device>|<label>: View related properties of Btrfs file system devices, you can specify the device path, device UUID, device name, and volume label, The default is to show all devices

-label: Specify the volume edge or display the volume label

Resize [+|-]#[m| G]: Dynamically adjust the file system size, requires the underlying device space enough, you can also specify Max to adjust to the maximum

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/79/wKioL1XkYiSgYjw7AAGGoozDWdk541.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiol1xkyisgyjw7aaggoozdwdk541.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/7C/wKiom1XkYAXwJ8CHAAIdwGAd4bg977.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiom1xkyaxwj8chaaidwgad4bg977.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/7C/wKiom1XkYAaxVOpdAAIifSM2DXY714.jpg "style=" float: none; "title=" Image 3.png "alt=" Wkiom1xkyaaxvopdaaiifsm2dxy714.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/79/wKioL1XkYiXhZsawAAH5Gm_NMX4500.jpg "style=" float: none; "title=" Image 4.png "alt=" Wkiol1xkyixhzsawaah5gm_nmx4500.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/79/wKioL1XkYieBB262AAOYpYa6ctU019.jpg "style=" float: none; "title=" Image 5.png "alt=" Wkiol1xkyiebb262aaoypya6ctu019.jpg "/>

device: For managing Btrfs File system devices

Add: New device

Delete: The data is moved to another device before removing the device

Scan: Scanning devices

Stats: displaying I/o Statistics

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/79/wKioL1XkYuaD51hkAAD-kbwp9aM191.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiol1xkyuad51hkaad-kbwp9am191.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/7C/wKiom1XkYMfgBrLLAAG7pPLLxXY753.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiom1xkymfgbrllaag7ppllxxy753.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/79/wKioL1XkYufTvgOGAAKnHTlJamQ082.jpg "style=" float: none; "title=" Image 3.png "alt=" Wkiol1xkyuftvgogaaknhtljamq082.jpg "/>


Balance: for moving and distributing data blocks online for multiple disks

Start: Open Online to implement data block movement distribution

-dconvert: Modifying the storage level of data

-dconvert: Modifying the storage level of metadata

Pause: suspend online

Cancel: Cancel online

Resume: Continue online

Status: State

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/7C/wKiom1XkYWLj-wu2AACxB38IEjA114.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiom1xkywlj-wu2aacxb38ieja114.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/79/wKioL1XkY4Gj1N4cAAEaF00QhRE359.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiol1xky4gj1n4caaeaf00qhre359.jpg "/>

Subvolume: The main function is to manage the btrfs File System sub-volume commands

Create: Creating a sub-volume

Delete: Delete a sub-volume

List: List sub-volumes

Show: Show sub Volumes

Snapshot: Snapshot feature

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/7C/wKiom1XkYifhGdwFAAE_ojdxRJo259.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiom1xkyifhgdwfaae_ojdxrjo259.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/79/wKioL1XkZEawiYUqAACp9rkt-FQ685.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiol1xkzeawiyuqaacp9rkt-fq685.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/7C/wKiom1XkYieDA1JkAAF6G_7Gfsk039.jpg "style=" float: none; "title=" Image 3.png "alt=" Wkiom1xkyieda1jkaaf6g_7gfsk039.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/79/wKioL1XkZEiy_8naAAKGWbMTT6E809.jpg "style=" float: none; "title=" Image 4.png "alt=" Wkiol1xkzeiy_8naaakgwbmtt6e809.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/7C/wKiom1XkYirznoDkAALR3wAO7L0248.jpg "style=" float: none; "title=" Image 5.png "alt=" Wkiom1xkyirznodkaalr3wao7l0248.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/79/wKioL1XkZEqBYJ1BAAH4E5pZn5o131.jpg "style=" float: none; "title=" Image 6.png "alt=" Wkiol1xkzeqbyj1baah4e5pzn5o131.jpg "/>





end.

From the above can not see that btrfs will replace the EXT series to become the standard file system on Linux, so the small partners refueling efforts to learn Btrfs file system it!




The management and use of 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.