User Tools

Site Tools


software:linux:btrfs

This is an old revision of the document!


btrfs file system

From: https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices

    1 Multiple devices
        1.1 Current status
        1.2 Raid 5 and Raid6
        1.3 Filesystem creation
        1.4 Device scanning
        1.5 Adding new devices
            1.5.1 Conversion
        1.6 Removing devices
        1.7 Replacing failed devices
        1.8 Registration in /etc/fstab

From: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Administration_Guide/btrfs-integrated_volume_management.html

Same info as above

btrfsck

From: https://btrfs.wiki.kernel.org/index.php/Btrfsck

 Before trying fsck

If you have a broken filesystem, you should probably look at the recovery or repair tools or you can read Marc MERLIN's page that explains the different ways to check and fix a btrfs filesystem.

In a nutshell, you should look at:

    btrfs scrub to detect issues on live filesystems
    look at btrfs detected errors in syslog (look at Marc's blog above on how to use sec.pl to do this)
    mount -o ro,recovery to mount a filesystem with issues
    btrfs-zero-log might help in specific cases. Go read Btrfs-zero-log
    btrfs restore will help you copy data off a broken btrfs filesystem. See its page: Restore
    btrfs check --repair, aka btrfsck is your last option if the ones above have not worked. 
software/linux/btrfs.1434932609.txt.gz · Last modified: by superwizard