101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 83


After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?

Show Answer
Correct Answer: E

To fix inconsistencies in an XFS file system, you should use the xfs_repair command on the file system. This utility is specifically designed to check and repair XFS file systems and handles the unique structures and features of XFS. Before running xfs_repair, it is important to unmount the file system to prevent data corruption. The other options are either incorrect commands or do not apply to repairing XFS file systems.

Discussion

2 comments
Sign in to comment
ellen_AAOption: E
Jul 29, 2021

xfs_repair /dev/sda3 command not found! anyone could confirm.

toflipv6
Aug 2, 2021

command is available on >centos 7.1

ant_man
Nov 8, 2021

Ubuntu: xfs_repair repairs corrupt or damaged XFS filesystems (see xfs(5)).

ant_man
Oct 4, 2021

xfs_repair: Repair a corrupted or damaged XFS file system. Unmount the file system before running this command. If the file system cannot be repaired, restore files from a backup with xfsrestore

Reseko
Sep 1, 2023

You need to install the utilities to manage XFS file systems. In Debian/Ubuntu, for example, the package is called xfsprogs.

ResekoOption: E
Sep 1, 2023

Tested on my system and working: E = xfs_repair /dev/sda3