[CentOS] NFS help

Thu Oct 27 20:47:12 UTC 2016
J Martin Rushton <martinrushton56 at btinternet.com>

On 27/10/16 21:23, Matt Garman wrote:
<snip>
> 
> If you have the ability to take these systems offline temporarily, you
> can also run "fsck" (file system check) on the C6 and C7 file systems.
> IIRC, ext4 can do a very basic kind of check on a mounted filesystem.
> But a deeper/more comprehensive scan requires the FS to be unmounted.
> Not sure what the rules are for xfs.  But C6 uses ext4 by default so
> you could probably at least run the basic check on that without taking
> the system offline.

Don't bother with fsck on XFS filesystems.  From the man page
[fsck.xfs(8)]: "XFS is a journaling filesystem and performs recovery at
mount(8)  time if necessary, so fsck.xfs simply exits with a zero exit
status".  If you need a deeper examination use xfs_repair(8) and note
that: "the filesystem to be repaired must be unmounted, otherwise, the
resulting filesystem may be inconsistent or corrupt" (from the man page).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20161027/c3c7f513/attachment-0004.sig>