Btrfs
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).
check[편집 | 원본 편집]
# btrfs check --repair /dev/<device_name>
Btrfs 파일 시스템을 복구하는 방법 중 하나로 명령을 사용할 수 있습니다. 하지만 --repair
옵션을 사용하면 특정 문제를 해결하지 못할 경우 파일 시스템을 더 손상시킬 수 있습니다. btrbk을 사용하여 백업할 수 있습니다.
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