BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] xfs repair
- Subject: [Discuss] xfs repair
- From: tmetro+blu at gmail.com (Tom Metro)
- Date: Tue, 23 Sep 2014 02:21:13 -0400
- In-reply-to: <5420C9D1.1030506@stephenadler.com>
- References: <5420C9D1.1030506@stephenadler.com>
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/
- References:
- [Discuss] xfs repair
- From: adler at stephenadler.com (Stephen Adler)
- [Discuss] xfs repair
- Prev by Date: [Discuss] xfs repair
- Next by Date: [Discuss] xfs repair
- Previous by thread: [Discuss] xfs repair
- Next by thread: [Discuss] xfs repair
- Index(es):