public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Defragging XFS File Systems
@ 2011-06-07  3:52 Kenneth Emerson
  2011-06-07  5:48 ` Stewart Smith
  2011-06-07 12:05 ` Stan Hoeppner
  0 siblings, 2 replies; 10+ messages in thread
From: Kenneth Emerson @ 2011-06-07  3:52 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 991 bytes --]

I hadn't given much thought to fragmentation of my TV recordings volume
(XFS) until reading through some MythTV-users threads recently that
mentioned how fragmented an XFS file system could become.  After running
xfs_db, I found out that my fs appeared to be quite bad:

$ sudo xfs_db -c frag -r /dev/mapper/appl_vg-appl_lv
 actual 1138668, ideal 11023, fragmentation factor 99.03%

I then ran xfs_fsr with all defaults (ran for two hours) and then re-ran
xfs_db and got the following results:

$ sudo xfs_db -c frag -r /dev/mapper/appl_vg-appl_lv
invalid numrecs (27111) in bmapbtd block
invalid numrecs (4716) in bmapbtd block
invalid numrecs (58978) in bmapbtd block
actual 1034793, ideal 11024, fragmentation factor 98.93%

The fragmentation level was reduced, but I was concerned about the error
messages.  Before I go any further, am I corrupting my file system with the
defragging or are these "invalid numrecs" messages unimportant?

Google didn't offer much help.

Regards,

Ken E.

[-- Attachment #1.2: Type: text/html, Size: 1282 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-11  1:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07  3:52 Defragging XFS File Systems Kenneth Emerson
2011-06-07  5:48 ` Stewart Smith
2011-06-07 12:05 ` Stan Hoeppner
     [not found]   ` <BANLkTikBSL8-eTAbF7a94ckLuZNyWCM=Eg@mail.gmail.com>
2011-06-08 21:00     ` Stan Hoeppner
2011-06-09  5:49       ` Michael Monnerie
2011-06-09  8:13         ` Stan Hoeppner
2011-06-09 10:12           ` Michael Monnerie
2011-06-09 18:24             ` Stan Hoeppner
2011-06-10 17:56               ` Dave Chinner
2011-06-11  1:12                 ` Stan Hoeppner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox