Btrfs commands + theme update
This commit is contained in:
@ -1,14 +1,31 @@
|
|||||||
+++
|
---
|
||||||
title = "brtfs - Helpful commands"
|
title: "Btrfs - Helpful commands"
|
||||||
date = 2020-09-03T00:00:00
|
date: 2020-09-03T00:00:00
|
||||||
+++
|
subtitle: "Useful commands for the btrfs file system"
|
||||||
|
summary: "Useful commands for the btrfs file system"
|
||||||
|
---
|
||||||
|
|
||||||
|
Quick collection of useful commands for maintaining a btrfs filesystem.
|
||||||
|
|
||||||
|
Btrfs allows for easy management of software raids in RAID0, RAID1 and RAID10. RAID5 and RAID6 are implemented but not suggested for use.
|
||||||
|
|
||||||
Quick collection of useful commands for maintaining a btrfs filesystem
|
|
||||||
|
|
||||||
{{% alert note %}}
|
{{% alert note %}}
|
||||||
Btrfs (pronounced as "butter fuss", "better F S", "butter F S", "b-tree F S", or simply by spelling it out) is a file system based on the copy-on-write (COW) principle, initially designed at Oracle Corporation for use in Linux. The development of Btrfs began in 2007, and since August 2014 the file system's on-disk format has been marked as stable.[13]
|
Btrfs (pronounced as "butter fuss", "better F S", "butter F S", "b-tree F S", or simply by spelling it out) is a file system based on the copy-on-write (COW) principle, initially designed at Oracle Corporation for use in Linux. The development of Btrfs began in 2007, and since August 2014 the file system's on-disk format has been marked as stable.[13]
|
||||||
{{% /alert %}}
|
{{% /alert %}}
|
||||||
|
|
||||||
|
## btrfs device statistics
|
||||||
|
The btrfs device commands are used to check the status of the device, such as read / write errors and disk usage.
|
||||||
|
See the current statistic.
|
||||||
|
```shell
|
||||||
|
sudo btrfs device stats /path/to/fs
|
||||||
|
```
|
||||||
|
|
||||||
|
To see the current usage.
|
||||||
|
```shell
|
||||||
|
sudo btrfs device usage /path/to/fs
|
||||||
|
```
|
||||||
|
|
||||||
## btrfs scrub
|
## btrfs scrub
|
||||||
btrfs scrub is used to scrub a btrfs filesystem, which will read all data and metadata blocks from all devices and verify checksums. Automatically repair corrupted blocks if there’s a correct copy available.
|
btrfs scrub is used to scrub a btrfs filesystem, which will read all data and metadata blocks from all devices and verify checksums. Automatically repair corrupted blocks if there’s a correct copy available.
|
||||||
|
|
||||||
|
Submodule themes/academic updated: fef46cfbe0...e5e24fc55c
Reference in New Issue
Block a user