Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] xfs repair



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/



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org