nerdexam
CompTIA

XK0-005 · Question #780

A systems administrator received a report about issues with a Linux system. Given the following output: Which of the following is the best command to use to fix this issue?

The correct answer is C. lvextend -L +5G -r /dev/mapper/rootvg-varlv. The output indicates the /var logical volume is running out of space. 'lvextend -L +5G -r /dev/mapper/rootvg-varlv' extends the logical volume by 5GB and the '-r' flag simultaneously resizes the underlying filesystem - all in one safe, non-destructive command. Option A…

System Management

Question

A systems administrator received a report about issues with a Linux system. Given the following output:

Which of the following is the best command to use to fix this issue?

Exhibit

XK0-005 question #780 exhibit

Options

  • Amkfs.xfs /var
  • Brm -rf /var/*
  • Clvextend -L +5G -r /dev/mapper/rootvg-varlv
  • Dlvresize -L +2G -r /dev/mapper/rootvg-rootlv

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    8% (3)
  • C
    73% (29)
  • D
    15% (6)

Explanation

The output indicates the /var logical volume is running out of space. 'lvextend -L +5G -r /dev/mapper/rootvg-varlv' extends the logical volume by 5GB and the '-r' flag simultaneously resizes the underlying filesystem - all in one safe, non-destructive command. Option A (mkfs.xfs) would format /var, destroying all data. Option B (rm -rf /var/*) deletes all contents of /var, which would break the system. Option D targets rootlv, not varlv, so it would extend the wrong volume and not fix the reported issue.

Topics

#LVM#lvextend#Filesystem Management#Disk Space

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice