B-Tree기반 파일시스템이다.
목차
subvolume
파일시스템의 일부이다. (block device가 아니다.) block-level의 논리 volume이 아니라 파일확장속성기반이다.
snapshot
원본 subvolume의 내용을 갖고 있는 subvolume이다.
command
filesystem
show
파일시스템 리스트
$ sudo btrfs filesystem show
resize
# btrfs filesystem resize [devid:][+/-]<newsize>[kKmMgGtTpPeE]|[devid:]max <path>
Resize a filesystem. Resize a mounted filesystem identified by path. A particular device can be resized by specifying a devid.
If max is passed, the filesystem will occupy all available space on the device respecting devid (remember, devid 1 by default).
subvolume
list
# btrfs subvolume list [options] <path>
$ sudo btrfs subvolume list /home
List subvolumes and snapshots in the filesystem.
usage
# btrfs filesystem usage [options] <path> [<path>..]
$ sudo btrfs filesystem usage /home
Show detailed information about internal filesystem usage .
show
# btrfs subvolume show [options] <path>
Show more information about the subvolume (UUIDs, generations, times, snapshots)
마운트
lzo는 빠르고 낮은 cpu 부하를 가지며, zlib는 높은 압축 비율을 갖는다.
lzo 압축을 이용하면 처리량에 대한 성능을 항상시킬 수 있다.
$ sudo nano /etc/fstab
UUID=xxxx / btrfs defaults,compress=lzo 0 0
$ mount -o compress=lzo /dev/sdb path