When does UNIX “defrag”? (specifically Solaris)

filesystemssolaris

On Windows, there is Disk Defragmentor that runs every so often to make files contiguous again.

I explain this to users in lay-men terms, but at the same time, I would like to mention yet another +1 about our company, but really have no understanding of the Solaris process to even know if that would work, so how is it done in Solaris?

If it is different depending on filesystem, I it would be nice to know about ZFS, UFS, and whatever the most popular Linux filesystem is.

Best Answer

The most popular Linux files systems are ext2/3/4, xfs, reiserfs and the upcoming btrfs. None of these files systems need to be routinely defragmented. Other care can be taken, but that isn't part of regular maintenance. Constant fragmentation is a problem peculiar to windows file systems.

From my knowledge of zfs it doesn't either, but my knowledge of ufs is limited.