주 메뉴 열기

wwiki β

바뀜

Btrfs

20 바이트 추가됨, 2023년 6월 18일 (일) 11:54
resize
디바이스 마운트포인트 파일시스템 종류 옵션 dump여부 파일점검 옵션B-Tree기반 파일시스템이다.
SSD에서 lzo압축기술을 사용하면 성능향상을 기대할 수 있다== subvolume ==파일시스템의 일부이다. (block device가 아니다.) block-level의 논리 volume이 아니라 파일확장속성기반이다.
$ sudo nano /etc/fstab== snapshot ==원본 subvolume의 내용을 갖고 있는 subvolume이다.
UUID=xxxx / btrfs defaults,compress=lzo 0 1command ==
== 옵션 = filesystem ===
=== defaults =show ====파일시스템 리스트rw,suid,dev,exec,auto,nouser,async $ sudo btrfs filesystem show
=== auto/noauto = resize ====With the auto option, the # btrfs filesystem resize [devid:][+/-]<newsize>[kKmMgGtTpPeE]|[devid:]max <path>Resize a filesystem. Resize a mounted filesystem identified by ''path''. A particular device will can be mounted automatically at bootup or when the mount -resized by specifying a command is issued. auto is the default option''devid''.
=== If ''max'suid / nosuid' is passed, the filesystem will occupy all available space on the device respecting ''devid' ===Permit/Block the operation of suid' (remember, and sgid bitsdevid 1 by default).
=== '''exec / noexec''' = check ====실행파일이 실행되는것을 허용여부 # btrfs check --repair /dev/<device_name>Btrfs 파일 시스템을 복구하는 방법 중 하나로 명령을 사용할 수 있습니다. 하지만 <code>--repair</code> 옵션을 사용하면 특정 문제를 해결하지 못할 경우 파일 시스템을 더 손상시킬 수 있습니다. btrbk을 사용하여 백업할 수 있습니다.
=== acl subvolume ===ACL(Access Control List)은 디렉토리 및 파일에 특정 사용자, 그룹에 특정 권한을 넣어 줄 수 있는 기능이다.
ext 파일 시스템에서는 파일 및 디렉토리에 대한 접근 권한을 소유자, 소유그룹, 기타 사용자로 제어 한다. ==== list ==== # btrfs subvolume list [options] <path>
A사용자를 소유그룹에 넣어주고 소유 그룹에 특정 권한을 넣어줄 수는 있으나, 어떤 이유로 소유 그룹에 넣어줄 수는 없는 상황이 있을 수 있기 때문에 그 또한 어려울 수 있다 $ sudo btrfs subvolume list /homeList subvolumes and snapshots in the filesystem.
=== _netdev = usage ====네트워크 드라이브일 경우 네트워크가 가능할 때 마운트하는데 사용할 수 있다. NFSv3(nfs로 적었을 때)는 네트워크가 사용가능 할 때까지 기다렸다. nfs4에서는 무시된다 # btrfs filesystem usage [options] <path> [<path>. 네트워크가 사용가능해지면 nfs4엔트리를 마운트한다. ]
== dump 옵션 == $ sudo btrfs filesystem usage /home0/1Show detailed information about internal filesystem usage .
== 파일점검 옵션 ==show ==== # btrfs subvolume show [options] <path>0/1/2Show more information about the subvolume (UUIDs, generations, times, snapshots)
부팅시 fsck 프로그램이 장치의 오류를 검사하는 순서를 나타내는 숫자입니다== 마운트 ==lzo는 빠르고 낮은 cpu 부하를 가지며, zlib는 높은 압축 비율을 갖는다. lzo 압축을 이용하면 처리량에 대한 성능을 항상시킬 수 있다. 이것은 루트 파일 시스템의 경우 1이고 다른 모든 장치의 경우 2 (루트 이후의 의미 검사) 또는 $ sudo nano /etc/[[fstab]]UUID=xxxx / btrfs defaults,compress=lzo 0 0 (확인하지 않음)입니다. $ mount -o compress=lzo /dev/sdb path [[분류:Linux파일]][[분류:File system리눅스]]
편집
2,431