xzzfft 发表于 2025-6-6 15:51
碎片整理,感觉是xp时代操作,现在还有人有这个需求吗?
gaoyi124 发表于 2025-6-6 08:08
虽然都叫碎片整理,这个阵列下的好像不是这么叫,群晖好像是叫做数据清理,显然和windows的碎片整理不是一个东 ...
proc 发表于 2025-6-6 07:58
nas都是linux系统,不需要碎片整理
YsHaNg 发表于 2025-6-6 18:50
ext系列没有 xfs可以有挂载选项 默认不需要 btrfs有balance 这是必须的 早年不稳定天天炸大部分是没及时b ...
这个建议来自红帽,针对XFS,ext4的一时半会没找到资料。
Red Hat advises not to periodically defrag an entire file system because XFS avoids fragmentation by default. System wide defragmentation could cause the side effect of fragmentation in free space.
https://docs.redhat.com/en/docum ... ion_guide/xfsothers
The primary purpose of the balance feature is to spread block groups across all devices so they match constraints defined by the respective profiles. See mkfs.btrfs(8) section PROFILES for more details. The scope of the balancing process can be further tuned by use of filters that can select the block groups to process. Balance works only on a mounted filesystem. Extent sharing is preserved and reflinks are not broken. Files are not defragmented nor recompressed, file extents are preserved but the physical location on devices will change.
The balance operation is cancellable by the user. The on-disk state of the filesystem is always consistent so an unexpected interruption (e.g. system crash, reboot) does not corrupt the filesystem. The progress of the balance operation is temporarily stored as an internal state and will be resumed upon mount, unless the mount option skip_balance is specified.
https://btrfs.readthedocs.io/en/latest/btrfs-balance.html
proc 发表于 2025-6-6 14:12
ext4 碎片整理用 e4defrag,xfs 碎片整理用 xfs_fsr,都可以,但不推荐。
欢迎光临 Chiphell - 分享与交流用户体验 (https://www.chiphell.com/) | Powered by Discuz! X3.5 |