xfs_check.8 | xfs_check.8 | |||
---|---|---|---|---|
xfs_check(8) xfs_check (8) | xfs_check(8) xfs_check (8) | |||
NAME | NAME | |||
xfs_check - check XFS filesystem consistency | xfs_check - check XFS filesystem consistency | |||
SYNOPSIS | SYNOPSIS | |||
xfs_check [ -i ino ] ... [ -b bno ] ... [ -f ] [ -s ] [ -v ] [ -l | xfs_check [ -i ino ] ... [ -b bno ] ... [ -f ] [ -s ] [ -v ] [ -l | |||
logdev ] device | logdev ] device | |||
xfs_check -V | ||||
DESCRIPTION | DESCRIPTION | |||
xfs_check checks whether an XFS filesystem is consistent. It is n or‐ | xfs_check checks whether an XFS filesystem is consistent. It is n or‐ | |||
mally run only when there is reason to believe that the filesystem has | mally run only when there is reason to believe that the filesystem has | |||
a consistency problem. The filesystem to be checked is specified by | a consistency problem. The filesystem to be checked is specified by | |||
the device argument, which should be the disk or volume device for the | the device argument, which should be the disk or volume device for the | |||
filesystem. Filesystems stored in files can also be checked, using the | filesystem. Filesystems stored in files can also be checked, using the | |||
-f flag. The filesystem should normally be unmounted or read-only d ur‐ | -f flag. The filesystem should normally be unmounted or read-only d ur‐ | |||
ing the execution of xfs_check. Otherwise, spurious problems are | ing the execution of xfs_check. Otherwise, spurious problems are | |||
reported. | reported. | |||
Note that using xfs_check is NOT recommended. Please use xfs_repair | Note that xfs_check is deprecated and scheduled for removal in J | |||
-n | une | |||
instead, for better scalability and speed. | 2014. Please use xfs_repair -n instead. | |||
OPTIONS | OPTIONS | |||
-f Specifies that the filesystem image to be processed is stored in | -f Specifies that the filesystem image to be processed is stored in | |||
a regular file at device (see the mkfs.xfs(8) -d file optio n). | a regular file at device (see the mkfs.xfs(8) -d file optio n). | |||
This might happen if an image copy of a filesystem has been m ade | This might happen if an image copy of a filesystem has been m ade | |||
into an ordinary file. | into an ordinary file. | |||
-l logdev | -l logdev | |||
Specifies the device where the filesystem's external log | Specifies the device where the filesystem's external log | |||
resides. Only for those filesystems which use an external l og. | resides. Only for those filesystems which use an external l og. | |||
skipping to change at line 57 | skipping to change at line 58 | |||
instance, it can be used to locate all the blocks associa ted | instance, it can be used to locate all the blocks associa ted | |||
with a given inode. | with a given inode. | |||
-b bno Specifies verbose behavior for the specific filesystem block at | -b bno Specifies verbose behavior for the specific filesystem block at | |||
bno. For instance, it can be used to determine what a speci fic | bno. For instance, it can be used to determine what a speci fic | |||
block is used for. The block number is a "file system block n um‐ | block is used for. The block number is a "file system block n um‐ | |||
ber". Conversion between disk addresses (i.e. addres ses | ber". Conversion between disk addresses (i.e. addres ses | |||
reported by xfs_bmap(8)) and file system blocks may be acc om‐ | reported by xfs_bmap(8)) and file system blocks may be acc om‐ | |||
plished using xfs_db(8)'s convert command. | plished using xfs_db(8)'s convert command. | |||
-V Prints the version number and exits. | ||||
Any output that is produced when xfs_check is not run in verbose m ode | Any output that is produced when xfs_check is not run in verbose m ode | |||
indicates that the filesystem has an inconsistency. The filesystem can | indicates that the filesystem has an inconsistency. The filesystem can | |||
be repaired using either xfs_repair(8) to fix the filesystem in pla ce, | be repaired using either xfs_repair(8) to fix the filesystem in pla ce, | |||
or by using xfsdump(8) and mkfs.xfs(8) to dump the filesystem, mak e a | or by using xfsdump(8) and mkfs.xfs(8) to dump the filesystem, mak e a | |||
new filesystem, then use xfsrestore(8) to restore the data onto the new | new filesystem, then use xfsrestore(8) to restore the data onto the new | |||
filesystem. Note that xfsdump may fail on a corrupt filesystem. H ow‐ | filesystem. Note that xfsdump may fail on a corrupt filesystem. H ow‐ | |||
ever, if the filesystem is mountable, xfsdump can be used to try and | ever, if the filesystem is mountable, xfsdump can be used to try and | |||
save important data before repairing the filesystem with xfs_repa ir. | save important data before repairing the filesystem with xfs_repa ir. | |||
If the filesystem is not mountable though, xfs_repair is the o nly | If the filesystem is not mountable though, xfs_repair is the o nly | |||
viable option. | viable option. | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 6 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |