Question 50
A volume group already exists and a new prepared disk must increase its capacity. Which operation is correct?
- lvdisplay /dev/vgdata/app
- pvs
- vgextend vgdata /dev/sdd
- vgexport vgdata
- pvcreate /dev/sdb
Explanation
Correct Answer
C:vgextend adds the prepared physical volume to an existing group without replacing the group. Free extents become available for logical-volume growth.
Incorrect Answers
A:lvdisplay reports detailed attributes such as device path, size, and status; the administrator instead needs expanding an existing volume group's backing capacity; this option serves a different purpose.
B:pvs summarizes physical volumes and their associated volume groups and free extents; it answers a neighboring question rather than expanding an existing volume group's backing capacity.
D:vgexport marks a volume group as exported for safe movement to a different system after suitable deactivation; this does not achieve expanding an existing volume group's backing capacity on the system described.
E:pvcreate writes LVM physical-volume metadata to the designated device; it will not provide expanding an existing volume group's backing capacity under these conditions.
Question 51
A mounted untrusted share must not allow direct execution of its regular files. Which mount option addresses this?
- noexec
- nosuid
- nofail
- mount -a
Explanation
Correct Answer
A:noexec prevents direct program execution from the mounted filesystem in normal enforcement. It is not a universal defense against scripts read by an interpreter.
Incorrect Answers
B:nosuid makes set-user-ID and set-group-ID semantics ineffective for files on that mount; the requirement is preventing direct executable launches from mounted data, outside the effect of this choice.
C:nofail tells mount integration not to treat an unavailable mount as fatal to boot; it does not deliver preventing direct executable launches from mounted data, which is decisive in this scenario.
D:mount -a processes mount entries from fstab that are eligible for automatic mounting; the evidence calls for preventing direct executable launches from mounted data, not merely this separate operation.
Question 52
A large mounted filesystem is full and the engineer must identify which directory tree consumes capacity. Which command helps?
- tmpfs
- du -sh /srv/*
- df -h
- Btrfs
- resize2fs /dev/mapper/vgdata-root
- e2fsck /dev/vgdata/app
Explanation
Correct Answer
B:du summarizes allocated disk space for selected files and directory trees without making changes to disk structures. It complements df by locating space-consuming paths.
Incorrect Answers
A:tmpfs stores transient files in virtual memory and is commonly used for runtime directories; its scope differs from calculating per-directory disk consumption, so it cannot meet the stated requirement.
C:df reports capacity and free space at the filesystem level, with -h making sizes readable; the administrator instead needs calculating per-directory disk consumption; this option serves a different purpose.
D:Btrfs includes copy-on-write snapshots, checksums and subvolume capabilities; it answers a neighboring question rather than calculating per-directory disk consumption.
E:resize2fs can enlarge an ext-family filesystem to use additional underlying block-device space; that changes a different part of the system; the requested outcome is calculating per-directory disk consumption.
F:e2fsck checks ext-family filesystem structures and may repair inconsistencies when run in an appropriate offline state; this does not achieve calculating per-directory disk consumption on the system described.
Question 53
Two devices should mirror identical data with no parity calculations. Which RAID arrangement is intended?
- /proc/mdstat
- RAID 1
- RAID 5 across at least three disks
- mdadm --detail /dev/md0
Explanation
Correct Answer
B:RAID 1 mirrors data across member devices so one member can fail without immediate loss of the stored data. Mirroring does not replace backups against deletion or corruption.
Incorrect Answers
A:The md kernel subsystem reports member and resynchronization state through /proc/mdstat; this does not achieve mirroring two disks for redundancy on the system described.
C:RAID 5 stripes data and parity across at least three devices, tolerating one device failure; using it would leave mirroring two disks for redundancy unresolved.
D:mdadm --detail displays the array level, member states and status for a Linux software RAID device; the requirement is mirroring two disks for redundancy, outside the effect of this choice.
Question 54
Three disks need to tolerate one disk failure with distributed parity. Which RAID organization is suitable?
- RAID 5 across at least three disks
- RAID 6
- RAID 1
- mdadm --detail /dev/md0
Explanation
Correct Answer
A:RAID 5 stripes data and parity across at least three devices, tolerating one device failure. Rebuilds after failure still place the array under elevated risk.
Incorrect Answers
B:RAID 6 stores dual parity and can survive two failed members, subject to proper array health; the task involves combining striped capacity with single-disk parity tolerance, whereas this addresses another subsystem.
C:RAID 1 mirrors data across member devices so one member can fail without immediate loss of the stored data; its scope differs from combining striped capacity with single-disk parity tolerance, so it cannot meet the stated requirement.
D:mdadm --detail displays the array level, member states and status for a Linux software RAID device; that is not equivalent to combining striped capacity with single-disk parity tolerance.
Question 55
Two prepared physical volumes must form a new pool called vgdata. Which command performs that creation?
- pvs
- vgcreate vgdata /dev/sdb /dev/sdc
- lvcreate -L 8G -n app vgdata
- vgexport vgdata
Explanation
Correct Answer
B:vgcreate assembles physical volumes into a volume group and establishes allocation extents. Logical volumes can subsequently be allocated from this pool.
Incorrect Answers
A:pvs summarizes physical volumes and their associated volume groups and free extents; it answers a neighboring question rather than forming a new volume group from physical volumes.
C:lvcreate allocates extents from a volume group to construct a new logical volume; this does not achieve forming a new volume group from physical volumes on the system described.
D:vgexport marks a volume group as exported for safe movement to a different system after suitable deactivation; it will not provide forming a new volume group from physical volumes under these conditions.
Question 56
The root filesystem is ext4 and the block device has grown. Which utility expands ext4 to use the new space?
- resize2fs /dev/mapper/vgdata-root
- tmpfs
- e2fsck /dev/vgdata/app
- xfs_growfs /srv
Explanation
Correct Answer
A:resize2fs can enlarge an ext-family filesystem to use additional underlying block-device space. Its target must be the filesystem device, not just the partition table.
Incorrect Answers
B:tmpfs stores transient files in virtual memory and is commonly used for runtime directories; it does not deliver growing an ext4 filesystem after storage expansion, which is decisive in this scenario.
C:e2fsck checks ext-family filesystem structures and may repair inconsistencies when run in an appropriate offline state; the evidence calls for growing an ext4 filesystem after storage expansion, not merely this separate operation.
D:xfs_growfs enlarges an XFS filesystem while it is mounted, using the mounted filesystem path; the task involves growing an ext4 filesystem after storage expansion, whereas this addresses another subsystem.
Question 57
During maintenance the administrator needs to disable one logical volume without deleting it. Which command is intended?
- pvmove /dev/sdb
- lvchange -an /dev/vgdata/app
- vgcreate vgdata /dev/sdb /dev/sdc
- vgexport vgdata
- vgs
Explanation
Correct Answer
B:lvchange can change a logical volume's activation state. Deactivating a volume does not erase LVM metadata or free its extents.
Incorrect Answers
A:pvmove migrates allocated LVM extents off a selected physical volume when the group has sufficient alternative capacity; that is not equivalent to deactivating an existing logical volume without deletion.
C:vgcreate assembles physical volumes into a volume group and establishes allocation extents; it answers a neighboring question rather than deactivating an existing logical volume without deletion.
D:vgexport marks a volume group as exported for safe movement to a different system after suitable deactivation; that changes a different part of the system; the requested outcome is deactivating an existing logical volume without deletion.
E:vgs lists volume groups with their total and free capacities, physical-volume counts and logical-volume counts; this does not achieve deactivating an existing logical volume without deletion on the system described.
Question 58
A new disk /dev/sdb will join LVM and has been checked as expendable. Which step initializes it as an LVM physical volume?
- vgcreate vgdata /dev/sdb /dev/sdc
- pvcreate /dev/sdb
- pvmove /dev/sdb
- pvs
Explanation
Correct Answer
B:pvcreate writes LVM physical-volume metadata to the designated device. It is a prerequisite to adding the disk to a volume group.
Incorrect Answers
A:vgcreate assembles physical volumes into a volume group and establishes allocation extents; it will not provide initializing raw storage for LVM use under these conditions.
C:pvmove migrates allocated LVM extents off a selected physical volume when the group has sufficient alternative capacity; the requirement is initializing raw storage for LVM use, outside the effect of this choice.
D:pvs summarizes physical volumes and their associated volume groups and free extents; it does not deliver initializing raw storage for LVM use, which is decisive in this scenario.
Question 59
An optional removable volume may be absent at boot without blocking startup. Which fstab option expresses this?
- Filesystem UUID= entry
- mount -o remount,rw /srv
- mount -a
- nofail
Explanation
Correct Answer
D:nofail tells mount integration not to treat an unavailable mount as fatal to boot. It does not create a missing device or filesystem.
Incorrect Answers
A:A filesystem UUID generally identifies the filesystem independently of transient kernel device numbering; the task involves tolerating an absent optional boot-time mount, whereas this addresses another subsystem.
B:A remount updates applicable mount flags for an existing filesystem; its scope differs from tolerating an absent optional boot-time mount, so it cannot meet the stated requirement.
C:mount -a processes mount entries from fstab that are eligible for automatic mounting; that is not equivalent to tolerating an absent optional boot-time mount.
Question 60
A physical disk is scheduled for removal from a healthy volume group. Which operation first relocates its extents to other PVs?
- pvs
- vgreduce vgdata /dev/sdb
- pvmove /dev/sdb
- lvextend -L 12G /dev/vgdata/app
Explanation
Correct Answer
C:pvmove migrates allocated LVM extents off a selected physical volume when the group has sufficient alternative capacity. This helps evacuate a device before removal.
Incorrect Answers
A:pvs summarizes physical volumes and their associated volume groups and free extents; that changes a different part of the system; the requested outcome is evacuating live extents from a disk.
B:vgreduce removes an unused physical volume from a volume group after its extents have been relocated; this does not achieve evacuating live extents from a disk on the system described.
D:lvextend enlarges the logical volume's block-device extent allocation; using it would leave evacuating live extents from a disk unresolved.