This is a draft cheat sheet. It is a work in progress and is not finished yet.
Mount options
better compression |
compress=zlib |
faster compression |
compress=lzo |
SSD optimization |
ssd |
Flow of Duplication
add a new decive |
btrfs device add newdecive mountpoint |
start duplication |
btrfs balance start mountpoint |
detouch the device |
btrfs device remove device mountpoint |
The devices that are used in duplication have the same partition label. So you should check their partition numbers by 'lsblk' carefully.
Snapshoting
check subvolumes |
btrfs sub list . |
mkdir the holder of snapshots |
mkdir ./snaps |
make snapshot |
btrfs sub snap ./subvolume snaps/name |
|
|
|
|
|