-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Zonefs파일시스템에서 어떤 방법을 통해 zone을 관리하는지를 알아보기 위해 마운트가 필요.
1. Zonefs?
ZBD에 POSIX파일 시스템 인터페이스를 매핑하기 위한 파일시스템
- https://www.usenix.org/system/files/vault20_slides_moal.pdf (이해를 위해 리눅스 큰 성님들의 자료를 보고오자)
- https://zonedstorage.io/docs/linux/fs#zonefs
2. mkzonefs 설치
kijung@kijung-server:~/test_mkzonefs/zonefs-tools$ sudo mkzonefs -f /dev/nvme0n1
/dev/nvme0n1: 16777216 512-byte sectors (8 GiB)
Host-managed device
128 zones of 131072 512-byte sectors (64 MiB)
0 conventional zones, 128 sequential zones
0 read-only zones, 0 offline zones
Format:
127 usable zones
Aggregate conventional zones: disabled
File UID: 0
File GID: 0
File access permissions: 640
FS UUID: 35166200-8d6c-430a-a014-1dac5aed721e
Resetting sequential zones
Writing super block
mkzonefs 깃 소스코드: GitHub - westerndigitalcorporation/zonefs-tools: Linux zonefs userland tools
3. zonefs 파일시스템 마운트
kijung@kijung-server:~/test_mkzonefs/zonefs-tools$ sudo mount -t zonefs /dev/nvme0n1 /mnt
mount: /mnt: unknown filesystem type 'zonefs'.
kijung@kijung-server:~/test_mkzonefs/zonefs-tools$ sudo modprobe zonefs
kijung@kijung-server:~/test_mkzonefs/zonefs-tools$ sudo mount -t zonefs /dev/nvme0n1 /mnt
마운트 에러 해결법 unknown filesystem type ‘zonefs’ · Issue #6 · damien-lemoal/zonefs-tools · GitHub
4. 마운트 확인
kijung@kijung-server:~/test_mkzonefs$ df -T /mnt
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/nvme0n1 zonefs 8062976 0 8062976 0% /mnt
성공적으로 마운트한 것을 확인할 수 있다.
[주의] 하기전에! 리눅스 커널 Configuration을 수정 후 리눅스에 컴파일해서 Zone Block Device를 지원가능하게 해야한다.
우리가 사용하는 커널 v.5.10 버전은 따로 설정할 필요가 없다.
Kernel Config Document: Kernel Configuration | Zoned Storage
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation