Skip to content

This is an elevator, a reminder of the installation / And dump files / Here is a list of the current mount options in btrfs / Desktop Theme`s

Notifications You must be signed in to change notification settings

appath/dotfiles

Repository files navigation

Notes ARCH Btrfs Snapshots

Elevator

Installing the btrfs-progs package.

Hungry Pacman, trough

It is worth noting that the pictures take up a lot of space.

You can use BTRFS for the root file system with the exception of / boot, which must be formatted in a traditional journaling file system.

(VB name Disk)

$ mkfs.btrfs -f -L VB /dev/sda1 

We mount:

$ mount /dev/sda1 /mnt

Create a subtotal:

$ btrfs subvolume create /mnt/@BUILD
$ btrfs subvolume create /mnt/@root
$ btrfs subvolume create /mnt/@home
$ btrfs subvolume create /mnt/@snapshots

Unmount:

Compression (lzo), gives an increase in space saving plus improves performance, and defragmetation in the background.

We mount:

$ umount /mnt
$ mount -o subvol=@root,noatime,space_cache,compress=lzo /dev/sda1 /mnt

Same

$ mkdir /mnt/{BUILD,home,.snapshots}
$ mount -o subvol=@BUILD,noatime,space_cache,compress=lzo /dev/sda1 /mnt/BUILD
$ mount -o subvol=@home,noatime,space_cache,compress=lzo /dev/sda1 /mnt/home
$ mount -o subvol=@snapshots,noatime,space_cache,compress=lzo /dev/sda1 /mnt/.snapshots
  • ssd

Turn on some of the SSD optimized behaviour within btrfs.

  • autodefrag

Will detect random writes into existing files and kick off background defragging.

  • noatime

Under read intensive work-loads, specifying noatime significantly improves performance because no new access time information needs to be written.

  • compress=lzo

Faster compression.

  • clear_cache

Clear all the free space caches during mount. This is a safe option, but will trigger rebuilding of the space cache, so leave the filesystem mounted for some time and let the rebuild process finish. If the process btrfs-freespace is actively doing some IO, it's probably not finished yet. This mount option is intended to be used one time and only after you notice some problems with free space.

  • space_cache

Btrfs stores the free space data on-disk to make the caching of a block group much quicker. It's a persistent change and is safe to boot into old kernels.

  • subvol

Mount a subvolume instead of the root subvolume.

Successfully...

Creating snapshots

$ btrfs subvolume snapshot -r / /.snapshots/@home-`date +%F-%R`

To check the dump (/ . -p)

$ btrfs subvolume list -p .

Note that each subsection has its own ID number.

$ cd ../..
$ rm -rf *

And recover from the snapshot

$ mount /dev/sda1 /mnt
$ btrfs subvolume delete /mnt/@home
$ brtfs subvolume snapshot /mnt/@snapshots/@home-2017-05-16-20:19 /mnt/@home

Restart the machine 20.5500

The function of creating snapshots in BTRFS is implemented quite accurately, and its use does not present any difficulties.

ArchWiki Btrfs | Tool helps with sub-volumes and thin LVM volumes Snapper Utility

=-098-

About

This is an elevator, a reminder of the installation / And dump files / Here is a list of the current mount options in btrfs / Desktop Theme`s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published