nerdexam
CompTIA

XK0-004 · Question #414

A Linux administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgslash- lvLog device using the LVM tools. However, the additional space does not show up when the administrator…

The correct answer is A. Option A. After expanding an LVM logical volume, the XFS filesystem itself must be explicitly grown to recognize and use the newly allocated space.

Troubleshooting and Diagnostics

Question

A Linux administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgslash- lvLog device using the LVM tools. However, the additional space does not show up when the administrator runs the df - h command. Which of the following commands should the administrator run to resolve this issue?

Exhibit

XK0-004 question #414 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(35 responses)
  • A
    86% (30)
  • B
    3% (1)
  • C
    3% (1)
  • D
    9% (3)

Why each option

After expanding an LVM logical volume, the XFS filesystem itself must be explicitly grown to recognize and use the newly allocated space.

AOption ACorrect

The xfs_growfs command resizes a mounted XFS filesystem to consume all available space on the underlying block device. After LVM tools extend the logical volume, the filesystem metadata remains unchanged until xfs_growfs is run against the mount point. Unlike ext4's resize2fs, xfs_growfs operates entirely online without unmounting the filesystem.

BOption B

Option B does not invoke the XFS-specific grow utility required to update the filesystem's internal metadata after LVM expansion.

COption C

Option C does not perform the online filesystem resize step that makes newly allocated logical volume space visible to the running XFS filesystem.

DOption D

Option D does not call xfs_growfs or any equivalent command that signals the XFS filesystem to expand into the added LVM space.

Concept tested: XFS online filesystem expansion after LVM resize

Source: https://www.man7.org/linux/man-pages/man8/xfs_growfs.8.html

Topics

#XFS filesystem#LVM storage expansion#xfs_growfs#logical volumes

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice