Stephen Adler wrote:
> So my question is what is the customary frequency one runs xfs_repair
> on their xfs file systems.

I run a "defrag" script daily on an XFS file system used for video
storage on my DVR. It runs the following code:

-----
#!/bin/sh

(
  date "+##start: %Y%m%d";
  /usr/sbin/xfs_db -c frag -r /dev/video_vg/video_lv
  /usr/sbin/xfs_fsr -v /dev/video_vg/video_lv
  /usr/sbin/xfs_db -c frag -r /dev/video_vg/video_lv
) >> /var/log/xfs/fsr-`date +%Y%m%d`.log
-----

Whether this is useful or wise is another matter. I set it up a long
time ago and haven't been closely monitoring it. I see the volume group
it was pointing to doesn't even still exist, and I've since added
several more XFS file systems. So it's in need of updating.

It also doesn't address what you were asking about, which is examining
the file system metadata, though it may do that as a side effect.

 -Tom

-- 
Tom Metro
The Perl Shop, Newton, MA, USA
"Predictable On-demand Perl Consulting."
http://www.theperlshop.com/
_______________________________________________
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss

Reply via email to