Let me preface this by saying "Yes, I know *nix filesystems don't need to worry about fragmentation". That said, is there a way to check the overall level of fragmentation of a live ext3 filesystem? I know about filefrag, but that's for specific files. And I think e2fsck tells you, but only if you take the filesystem offline for the scan. Is there anything that will give a percentage for a *live* filesystem? (I have a fs that's been at >95% usage for quite some time, and I want to check for any fragmentation that could have resulted.) Damian Menscher -- -=#| Physics Grad Student & SysAdmin @ U Illinois Urbana-Champaign |#=- -=#| 488 LLP, 1110 W. Green St, Urbana, IL 61801 Ofc:(217)333-0038 |#=- -=#| 4602 Beckman, VMIL/MS, Imaging Technology Group:(217)244-3074 |#=- -=#| <menscher at uiuc.edu> www.uiuc.edu/~menscher/ Fax:(217)333-9819 |#=- -=#| The above opinions are not necessarily those of my employers. |#=-
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Damian Menscher schrieb:> Let me preface this by saying "Yes, I know *nix filesystems don't need > to worry about fragmentation".this was discussed *very* and again in june by Theodore: https://www.redhat.com/archives/ext3-users/2005-June/msg00026.html> That said, is there a way to check the overall level of fragmentation of > a live ext3 filesystem? I know about filefrag, but that's for specific > files. And I think e2fsck tells you, but only if you take the > filesystem offline for the scan."tune2fs -l" tells you about "Fragments per group", and "fsck.ext2 -nv" opens the fs read-only and print some nice stats after that. - -- BOFH excuse #341: HTTPD Error 666 : BOFH was here -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCzvl8C/PVm5+NVoYRAvc7AJwKRTYhWussiZquiawLNZzjSnSJ7ACg7uoU 39MB4i90ajg+ckER52pqfZ4=LFM+ -----END PGP SIGNATURE-----
Reasonably Related Threads
- [Q] Is this true and does it mean there is dynamic defragmentation in ext2/3?
- passwd : Module is unknown (Redhat 9 Enterprise Edition)
- URGENT: How to recover ext3 files?
- [Q] Where does all the space go?
- Help needed to recover data from ext3 file system where mkfs was issued accidentally