It is currently Wed, 23 Jun 2021 21:52:27 GMT



 
Author Message
 FreeBSD/OpenBSD Defrag
What are the options available for defragmenting a FreeBSD filesystem
(ufs)..  (or even checking the fragmentation on an existing partition)

I'm also interested to know about defrag on OpenBSD (ffs) filesystems

Cheers

Wph.



 Sat, 23 Nov 2002 03:00:00 GMT   
 FreeBSD/OpenBSD Defrag
UFS & FFS are the same thing. They're designed so they automagically
maintain a low level of fragmentation during normal operation (usually
0-2% in my experience) and therefore, there's no need for a defrag
program.
The fdisk command will give you statistics on fragmentation (if you're
curious) If you watch the system during boot, you'll see it then,
otherwise be sure to run fdisk in single-user mode!
The only time you might have problems with fragmentation is if your
disks start to become full - FFS/UFS disks should always have ample free
space.
I'm pretty sure this applies to OpenBSD as well.

--
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?



 Sat, 23 Nov 2002 03:00:00 GMT   
 FreeBSD/OpenBSD Defrag

I suspect you mean fsck, not fdisk.  You can run fsck with a -n option
which will make sure it's safe.

More importantly, though, this "fragmentation" number isn't what you
think it is.  "Fragmentation" in UFS is unrelated to the concept of the
same name in a FAT filesystem.  Furthermore, it isn't really harmful.

I think FreeBSD still includes the key paper on UFS: look at
/usr/share/doc/smm/05.fastfs/paper.ascii.gz



 Sat, 23 Nov 2002 03:00:00 GMT   
 FreeBSD/OpenBSD Defrag

Oops, that'll teach me to reply to stuff when the brain is on 5% active.

I understand the difference, although I wasn't aware that UFS
fragmentation wasn't degrading to performance.

I think the overall, important message here is that the UFS/FFS file
system is self-maintaining and doesn't need anything like a defrag
program.

--
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?



 Sun, 24 Nov 2002 03:00:00 GMT   
 
   [ 4 post ] 

Similar Threads

1. defrag on OpenBSD ?

2. Do you defrag FreeBSD machines ?

3. Dual and Multi Booting FreeBSD, Linux, & OpenBSD

4. OpenBSD/FreeBSD/NetBSD/Linux

5. FreeBSD / OpenBSD

6. IPSEC FreeBSD <> OpenBSD, head spinning

7. diff freeBSD openBSD

8. HSP56 winmodem work on openbsd and why not on freebsd

9. Why have FreeBSD, OpenBSD, NetBSD and iBSD?

10. freebsd or openbsd firewall?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software