XFS
XFSファイルシステムは、高パフォーマンスなジャーナリングファイルシステムです。これはLinuxでの使用のためACL(POSIX)対応です。
インストール
カーネル
File systems ---> <*> XFS filesystem support
オプション:
File systems ---> [*] XFS Quota support [*] XFS POSIX ACL support [*] XFS Realtime subvolume support [ ] XFS Verbose Warnings [ ] XFS Debugging support
Emerge
XFSのユーザスペースユーティリティを使うにはsys-fs/xfsprogsパッケージが必要です:
root #
emerge --ask sys-fs/xfsprogs
使い方
mount コマンドで XFS ファイルシステムをマウントしてください。
Year 2038 timestamp support (bigtime)
Beginning with kernel 5.10, XFS gained bigtime
support to extend the maximum recorded date stamps from 2038 to 2486 for the V5 on-disk format.[1]
Initially, this was marked as experimental until kernel 5.15 removed that verbiage after a year of testing.
bigtime
option can be enabled at creation time or upgraded after the fact. Once enabled and written to, it should not be removed.
To enable at format time, add the -m bigtime=1
option to mkfs.xfs
To check the status:
root #
xfs_info / |grep bigtime
= reflink=1 bigtime=1 inobtcount=0
To upgrade to bigtime
, first cleanly unmount the file system. The upgrade will refuse to run if the unmount was not completely clean.
Then run:
root #
xfs_admin -O bigtime=1 /dev/sda1
Replacing /dev/sda1 with the device path.
XFS on the root mount will require an initramfs or other live environment with the necessary tools to perform an upgrade to the metadata.
Using Dracut initramfs to perform the upgrade
First, Dracut needs additional files included in the initramfs in order to perform the upgrade. This can be accomplished with either the --install
option or inside a configuration file using the install_items
option.
root #
dracut --install "/usr/sbin/xfs_admin /usr/bin/expr" ...
Then, the kernel command line option can be modified to include rd.break=premount
to stop the initramfs just before it would mount the root filesystem. Ensure this is done temporarily and removed on subsequent reboots after upgrade.
削除
次の実行時に削除するようスケジューリングするには、次のコマンドを実行してください:
root #
emerge --ask --depclean --verbose sys-fs/xfsprogs
参考
- FAT — 当初MS-DOS(および後のNT以前のMicrosoft Windows)で使用するために作られました
- Ext4 — オープンソースのディスクファイルシステムで、extended filesystem シリーズの最新バージョンです。
- Btrfs — 耐障害性、自己修復特性、管理のしやすさに焦点を当てつつ、先進的な機能を実装することも主眼としている、Linux 向けのコピーオンライト (CoW) ファイルシステムです。