ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 265 - XK0-005 discussion

Report
Export

A systems administrator detected corruption in the /data filesystem. Given the following output:

Which of the following commands can the administrator use to best address this issue?

A.
umount /data mkfs . xfs /dev/sclcl mount /data
Answers
A.
umount /data mkfs . xfs /dev/sclcl mount /data
B.
umount /data xfs repair /dev/ sdcl mount /data
Answers
B.
umount /data xfs repair /dev/ sdcl mount /data
C.
umount /data fsck /dev/ sdcl mount / data
Answers
C.
umount /data fsck /dev/ sdcl mount / data
D.
umount /data pvs /dev/sdcl mount /data
Answers
D.
umount /data pvs /dev/sdcl mount /data
Suggested answer: B

Explanation:

The xfs repair command is used to check and repair an XFS filesystem, which is the type of filesystem used for the /data partition, as shown in the output. The administrator needs to unmount the /data partition before running the xfs repair command on it, and then mount it back after the repair is done. For example:umount /data; xfs_repair /dev/sdcl; mount /data. The mkfs.xfs command is used to create a new XFS filesystem, which would erase all the data on the partition. The fsck command is used to check and repair other types of filesystems, such as ext4, but not XFS. The pvs command is used to display information about physical volumes in a logical volume manager (LVM) setup, which is not relevant for this issue.

asked 02/10/2024
Hassan Shafi
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first