Curated

System Management

0 votes

Questions206

  1. Question 51

    System Management

    A KVM guest named db01 is running with 2 GiB of RAM currently allocated. Its configured maximum memory is 8 GiB, and the guest has the memory balloon driver loaded. Month-end processing needs 6 GiB, and the guest cannot be rebooted. Which command BEST increases the guest's memory now?

    Show the answer

    Correct answerA. virsh setmem db01 6G --live

    virsh setmem changes the current memory of a running guest through the balloon, up to the configured maximum, so 6 GiB fits under 8 GiB. setmaxmem changes the ceiling, not the current allocation, and it cannot be applied to a running guest, so it does not help.

    Open this question
  2. Question 52

    System Management

    An administrator on a KVM host runs 'virsh list' to check a guest named web01 that was shut down last week. The command returns an empty table, but the administrator needs to start web01 and have it launch automatically whenever the host boots. Which set of commands accomplishes this?

    Show the answer

    Correct answerA. virsh start web01 followed by virsh autostart web01

    The 'virsh list' command shows only running guests by default, so web01 is still defined. 'virsh start' boots it and 'virsh autostart' marks it to start with the host. 'virsh resume' only unpauses a suspended guest and would not start a shut-off one.

    Open this question
  3. Question 53

    System Management

    An administrator temporarily edited the kernel line at the GRUB menu to add a parameter, and the system booted. Which file shows the parameters the running kernel was actually started with?

    Show the answer

    Correct answerA. /proc/cmdline

    /proc/cmdline holds the exact command line passed to the running kernel, including one-time edits. /etc/default/grub and grub.cfg hold configured defaults, not what was used this boot, and sysctl.conf sets runtime kernel tunables rather than boot parameters.

    Open this question
  4. Question 54

    System Management

    A new server is set to PXE boot. Its NIC obtains an IP address from the DHCP server, but the console then shows "PXE-E32: TFTP open timeout". Which cause is most likely?

    Show the answer

    Correct answerB. The DHCP next-server setting points to a host that is not running or reachable as a TFTP server

    PXE clients get an address and the boot server and file name from DHCP, then download the boot file by TFTP. A timeout after a lease means the TFTP host is wrong or unreachable. A missing MAC entry would prevent the lease itself.

    Open this question
  5. Question 55

    System Management

    A server has three kernels installed. After the firmware finishes POST, the GRUB menu appears and an administrator selects the second kernel entry. Which task does the bootloader perform next?

    Show the answer

    Correct answerB. Loads the chosen kernel and initramfs into memory, then passes control to the kernel with its command line

    The bootloader loads the selected kernel and initramfs into memory and hands over the command line from its entry. Hardware initialization and boot device search belong to the firmware; mounting root and starting systemd occur after the kernel takes over.

    Open this question
  6. Question 56

    System Management

    A server's root filesystem is on an LVM volume inside a LUKS-encrypted partition. At boot, the passphrase prompt appears before the real root filesystem is mounted. Which component supplies the tools that unlock the volume at this stage?

    Show the answer

    Correct answerB. The initramfs, which provides a temporary root environment with the unlock and LVM tools

    The initramfs is a temporary root filesystem with the cryptsetup and LVM tools needed to unlock and activate the volume, after which control switches to the real root. Units on the root filesystem are unavailable until it is mounted, which is the tempting wrong choice.

    Open this question
  7. Question 57

    System Management

    After a failed disk replacement, a BIOS-based Linux server shows "No bootable device". The partitions, including /boot, were restored intact from backup, but the bootloader code in the disk's boot sector was not. What is the best way to fix it?

    Show the answer

    Correct answerC. Boot from live media, chroot into the installed system, and run grub-install against the boot disk

    grub-install writes the bootloader code to the disk's boot sector, and running it from a chroot targets the installed system. update-grub only regenerates grub.cfg and does not install boot code, so it is the tempting but insufficient choice.

    Open this question
  8. Question 58

    System Management

    Which four of the following statements correctly describe the purpose of an FHS directory? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. /dev holds device files that represent hardware and pseudo-devices.B. /boot holds the kernel image and bootloader files.E. /sbin holds essential system administration binaries.F. /home holds the personal directories of regular users.

    /boot holds kernel and bootloader files, /dev holds device files, /sbin holds system administration binaries, and /home holds user directories. /tmp is wrong because its contents are temporary and may be cleared at reboot. /proc is a virtual filesystem, not a package store.

    Open this question
  9. Question 59

    System Management

    A nightly data-processing script writes intermediate files that must still be available after an unexpected reboot, but they are not needed long term. The administrator wants to follow the FHS. Which location is the best place for these temporary files?

    Show the answer

    Correct answerB. /var/tmp

    /var/tmp is for temporary files that must be preserved between reboots. /tmp is the tempting choice, but the FHS allows its contents to be deleted at boot, so the files could be lost. /run and /dev/shm are memory-backed and are cleared at reboot.

    Open this question
  10. Question 60

    System Management

    An administrator is investigating a hung service. She wants to read the status and open file descriptors of the process with PID 2417 directly from a virtual filesystem the kernel generates in memory, with numbered subdirectories for each running process. Which FHS directory should she use?

    Show the answer

    Correct answerD. /proc

    /proc is a kernel-generated virtual filesystem that exposes per-process data in numbered directories such as /proc/2417 and runtime kernel information. /dev is tempting, but it holds device files for hardware, not process information.

    Open this question
  11. Question 61

    System Management

    A security team asks an administrator to change the system-wide settings used by the SSH daemon on a Linux server. Under the FHS, where is the host-specific configuration file for this service normally found?

    Show the answer

    Correct answerB. /etc/ssh/sshd_config

    /etc holds host-specific, system-wide configuration files, so the SSH daemon's settings are in /etc/ssh. /usr/share is tempting, but it holds read-only, architecture-independent data such as documentation, not editable local configuration.

    Open this question
  12. Question 62

    System Management

    A Debian-based server returns x86_64 from uname -m, while its package manager lists packages for the amd64 architecture. Which statement correctly describes this?

    Show the answer

    Correct answerD. Both names refer to the same 64-bit x86 architecture, named by the kernel and the distribution respectively

    x86_64 and amd64 are two names for the same 64-bit x86 architecture, and both Intel and AMD CPUs implement it. Debian uses amd64 while the kernel reports x86_64; the vendor-specific reading is a common misconception.

    Open this question
  13. Question 63

    System Management

    An administrator is auditing a mixed fleet and compares the output of uname -m with the architecture each value represents. Which four pairings are correct? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. riscv64 - 64-bit variant of the open RISC-V instruction setB. x86_64 - 64-bit extension of the x86 instruction set, also called AMD64C. aarch64 - 64-bit execution state of the Arm architectureD. i686 - 32-bit member of the x86 instruction set family

    AWhy this is right: riscv64 is the 64-bit RISC-V architecture.

    BWhy this is right: x86_64 is the 64-bit x86 extension, also called AMD64.

    CWhy this is right: aarch64 is the 64-bit execution state of the Arm architecture.

    DWhy this is right: i686 is a 32-bit x86 value.

    EWhy not this: armv7l is 32-bit Arm (AArch32); 64-bit Arm reports as aarch64.

    FWhy not this: The le in ppc64le means little-endian; big-endian 64-bit Power reports as ppc64.

    x86_64, aarch64, riscv64 and i686 each map to the architecture described. armv7l is a 32-bit Arm (AArch32) value; the 64-bit Arm state reports as aarch64, so that pairing is wrong. ppc64le is the little-endian 64-bit Power value; big-endian Power reports as ppc64.

    Open this question
  14. Question 64

    System Management

    A hardware team is designing custom server processors and wants a Linux-supported instruction set architecture that is an open standard and can be implemented without paying licence fees to an architecture owner. Which architecture BEST fits this requirement?

    Show the answer

    Correct answerC. RISC-V

    RISC-V is an open-standard instruction set that anyone can implement without licensing fees, and Linux supports it. AArch64 is also RISC-based, which makes it tempting, but it is licensed from Arm rather than open.

    Open this question
  15. Question 65

    System Management

    A software vendor ships its monitoring agent only as a .deb package. An administrator manages four servers and wants to install the file natively, without converting it. Which server can do this?

    Show the answer

    Correct answerD. Linux Mint 22

    Linux Mint derives from Ubuntu and Debian, so it uses dpkg and the .deb format. Oracle Linux is RHEL-compatible and uses RPM, so it cannot natively install a .deb package, however similar its enterprise role looks.

    Open this question
  16. Question 66

    System Management

    An administrator is sorting a fleet inventory into package families. Which four of the following distributions use the RPM package format? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. FedoraB. SUSE Linux Enterprise ServerC. Red Hat Enterprise LinuxD. AlmaLinux

    AWhy this is right: Fedora packages software as .rpm files, managed with rpm and dnf.

    BWhy this is right: SUSE Linux Enterprise Server uses .rpm packages, managed with rpm and zypper.

    CWhy this is right: Red Hat Enterprise Linux uses .rpm packages, managed with rpm and dnf.

    DWhy this is right: AlmaLinux is a RHEL rebuild and uses .rpm packages.

    EWhy not this: Debian uses .deb packages managed by dpkg and apt.

    FWhy not this: Arch Linux uses pacman packages, not RPM.

    Fedora, SUSE Linux Enterprise Server, AlmaLinux and Red Hat Enterprise Linux all package software as .rpm files managed through rpm. Debian is the origin of the dpkg family and uses .deb packages, and Arch Linux uses its own pacman packages, so neither belongs in the RPM group.

    Open this question
  17. Question 67

    System Management

    On a Debian 12 server, an administrator must find out which installed package provided the file /usr/sbin/sshd. Which command does this?

    Show the answer

    Correct answerA. dpkg -S /usr/sbin/sshd

    dpkg -S searches installed packages for the one that owns a given path. rpm -qf is the RPM-family equivalent, but rpm is not the native tool on Debian. dpkg -L does the reverse, listing the files a named package installed.

    Open this question
  18. Question 68

    System Management

    How does the Wayland display architecture differ from X11?

    Show the answer

    Correct answerA. The Wayland compositor acts as display server and window manager; X11 splits these roles

    AWhy this is right: In Wayland the compositor is the display server and manages windows; X11 pairs the X server with a window manager.

    BWhy not this: Reversed: X11 uses a separate window manager client, while the Wayland compositor manages windows itself.

    CWhy not this: Wayland needs no X server; XWayland runs only to support older X11 applications.

    DWhy not this: Wayland clients render into buffers that the compositor places on screen; they do not bypass it.

    In Wayland, the compositor draws windows, manages them and handles input, so no separate display server is needed. In X11, the X Server handles display and input, and a separate window manager client handles decorations and placement.

    Open this question
  19. Question 69

    System Management

    A user logs in through the graphical login screen on a Linux workstation. The desktop appears with a wallpaper and launched applications, but windows have no title bars and cannot be moved or resized. Authentication and session start worked normally. Which component is the most likely cause?

    Show the answer

    Correct answerA. The window manager is not running in the session

    A window manager draws title bars and handles moving and resizing windows, so a session without one shows exactly these symptoms. The display manager is tempting, but it only provides the login screen and starts the session, which already succeeded.

    Open this question
  20. Question 70

    System Management

    An administrator is replacing LightDM, which provides the graphical login screen on a workstation running the i3 window manager. Which of the following can serve as the replacement for LightDM?

    Show the answer

    Correct answerA. SDDM

    SDDM is a display manager, so it presents the login screen and starts sessions, just as LightDM does. Openbox, Fluxbox and Mutter are window managers, which manage windows after login and cannot replace a login screen.

    Open this question
  21. Question 71

    System Management

    A colleague claims that a company cannot charge money for a program and still call it free software. Which statement is accurate under the free software definition?

    Show the answer

    Correct answerB. Free software grants freedom to run, study, modify and share, and it may be sold

    Free software is defined by the freedoms to run, study, modify and redistribute the code, and charging for copies does not remove those freedoms. The no-cost view is tempting, but it confuses free as in freedom with free of charge.

    Open this question
  22. Question 72

    System Management

    A startup is building a commercial Linux appliance and wants to embed existing community code in it. The company intends to keep its own modifications closed and to sell the product without publishing its source. Which type of license should the team look for in the component?

    Show the answer

    Correct answerC. A permissive license such as MIT or BSD

    Permissive licenses allow reuse in closed-source products, usually requiring only attribution and the license notice. GPL is tempting because it is open source, but its copyleft terms would require the company to release the combined work's source under the same license when it distributes it.

    Open this question
  23. Question 73

    System Management

    A vendor distributes a Linux backup utility as a compiled binary at no charge. The license forbids redistribution and modification, and the source code is not available. How is this software classified?

    Show the answer

    Correct answerC. Proprietary software

    Software whose license withholds source access and the rights to modify and redistribute is proprietary, even when it costs nothing. Free software is tempting because of the zero price, but "free" refers to user freedoms, not cost.

    Open this question
  24. Question 74

    System Management

    After a new .ko file is copied into /lib/modules/$(uname -r)/extra, modprobe still cannot find the module by name. Which command fixes this?

    Show the answer

    Correct answerA. depmod

    AWhy this is right: depmod rebuilds modules.dep and the map files that modprobe uses to find modules by name.

    BWhy not this: insmod loads one module from a file path; it does not update the data modprobe searches.

    CWhy not this: dracut -f rebuilds the initramfs; it does not refresh modules.dep for the running system.

    DWhy not this: modinfo only shows a module's details, and it too finds modules by name through modules.dep.

    depmod scans the module tree for the running kernel and regenerates modules.dep and related map files. modprobe relies on these files to locate modules and load their dependencies, so a new module is not usable by name until depmod has run.

    Open this question
  25. Question 75

    System Management

    An administrator needs the full path of the .ko file that provides the nvme module on the running system. Which command displays it?

    Show the answer

    Correct answerA. modinfo -n nvme

    modinfo -n (--filename) prints the path of the module file. modinfo -p lists only the module's parameters, and lsmod shows the name, size and users of a loaded module but not its file location.

    Open this question
  26. Question 76

    System Management

    A developer compiled a driver named hello.ko in /home/dev and has not copied it into /lib/modules or run depmod. Which command loads this module into the running kernel?

    Show the answer

    Correct answerB. insmod /home/dev/hello.ko

    insmod loads a module directly from the file path given, without consulting the dependency index. modprobe hello looks the name up in modules.dep, where an uninstalled, unindexed module does not appear, so it fails to find it.

    Open this question
  27. Question 77

    System Management

    An administrator runs rmmod xhci_pci and gets the error "Module xhci_pci is in use". Which command shows the use count and the loaded modules that currently depend on xhci_pci?

    Show the answer

    Correct answerD. lsmod | grep xhci_pci

    lsmod lists loaded modules with their size, use count and a "Used by" column naming dependent modules. modinfo -F depends shows what xhci_pci itself requires, not what is using it, which makes it the tempting wrong choice.

    Open this question
  28. Question 78

    System Management

    A technician needs to unload the usbhid module and also remove any modules it pulled in that nothing else is using. Which command accomplishes this in one step?

    Show the answer

    Correct answerA. modprobe -r usbhid

    modprobe -r unloads the named module and also removes dependency modules that are no longer in use. rmmod only removes the module named, and -f merely forces removal without cascading. insmod and depmod have no -r unload function.

    Open this question
  29. Question 79

    System Management

    A technician installs lm_sensors on a desktop workstation with no BMC, but the sensors command reports no temperature or fan readings. The technician needs to probe for supported hardware monitoring chips and determine which kernel modules to load. Which command should be run?

    Show the answer

    Correct answerD. sensors-detect

    sensors-detect scans for monitoring chips and suggests the kernel modules needed for sensors to report data. ipmitool sdr list reads sensors from a BMC, which this workstation does not have.

    Open this question
  30. Question 80

    System Management

    A data center technician must report which DIMM slots are populated, along with each module's size and rated speed, on a rack server without powering it down or opening the chassis. Which command should the technician run?

    Show the answer

    Correct answerD. dmidecode -t memory

    dmidecode -t memory reads the SMBIOS/DMI memory device tables, listing each slot, module size and speed. The processor type is tempting but covers only CPU socket and model data, not DIMMs.

    Open this question
  31. Question 81

    System Management

    An administrator needs to see only the kernel ring buffer messages logged at the error and warning levels. Which command does this?

    Show the answer

    Correct answerA. dmesg --level=err,warn

    AWhy this is right: --level filters the ring buffer output to the listed levels, here err and warn.

    BWhy not this: --facility filters by source, such as kern or daemon; err and warn are levels, not facilities.

    CWhy not this: -n sets the level of messages printed to the console; it does not filter the output.

    DWhy not this: -p err shows err and the more severe levels, so warnings are left out.

    The --level option filters the kernel ring buffer by log level, so only err and warn messages are shown. The ring buffer is not modified; the filter only changes what is displayed.

    Open this question
  32. Question 82

    System Management

    A user reports that a USB 3.0 external drive transfers files very slowly on a Linux workstation. The administrator wants to view the USB devices as a tree showing the bus, the driver in use and the negotiated speed of each device, to see whether the drive linked at USB 2.0 speed. Which command BEST shows this?

    Show the answer

    Correct answerA. lsusb -t

    lsusb -t prints the USB topology with bus, driver and speed per device, such as 480M versus 5000M. lspci -tv is tempting but shows the PCI device tree, not USB devices or their negotiated speeds.

    Open this question
  33. Question 83

    System Management

    An administrator is preparing a new Linux server as a KVM host. Before deploying virtual machines, the administrator wants a concise summary of the CPU architecture, sockets, threads per core, NUMA nodes and virtualization support. Which command BEST provides this?

    Show the answer

    Correct answerC. lscpu

    lscpu summarizes CPU architecture, topology, NUMA layout and virtualization capability in one output. lsmem is tempting but reports memory block ranges and online state, not CPU details.

    Open this question
  34. Question 84

    System Management

    A RHEL 9 administrator has installed a newer kernel, 5.14.0-427.el9.x86_64, but the server is still running an older kernel. The initramfs for the newer kernel must be rebuilt, overwriting the existing file. Which command does this?

    Show the answer

    Correct answerC. dracut --force /boot/initramfs-5.14.0-427.el9.x86_64.img 5.14.0-427.el9.x86_64

    dracut takes the output image path followed by the kernel version, so both must be given to build for a kernel that is not running. Omitting the version makes dracut build for the running kernel, so the new file would hold the wrong modules. lsinitrd only lists image contents.

    Open this question
  35. Question 85

    System Management

    An administrator of a RHEL-based server adds the nvme driver to a file in /etc/dracut.conf.d/. The driver must now be built into the initramfs used by the currently running kernel. Which two commands rebuild that image? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. dracut -f /boot/initramfs-$(uname -r).img $(uname -r)C. dracut --force

    dracut --force overwrites the default image for the running kernel, and giving the image path and kernel version explicitly does the same. update-initramfs is the Debian tool and is not part of a RHEL-based system. lsinitrd only inspects an image and never rebuilds it.

    Open this question
  36. Question 86

    System Management

    A team must produce a minimal Linux image, kernel and cross-compilation toolchain tailored to a custom embedded board. Which pair of tools is built for this job?

    Show the answer

    Correct answerA. Yocto Project and Buildroot

    AWhy this is right: Both build systems generate a kernel, root filesystem and toolchain for a specific embedded target.

    BWhy not this: Kickstart and preseed automate installing an existing distribution; they build no custom images.

    CWhy not this: cloud-init and Ignition configure a system at first boot; they do not build images or toolchains.

    DWhy not this: Packer builds VM and cloud images and Vagrant runs dev VMs; neither builds embedded toolchains.

    Both Yocto and Buildroot generate tailored root filesystems, kernels and toolchains for specific embedded hardware. They are build systems for custom images, not general-purpose installers or first-boot tools.

    Open this question
  37. Question 87

    System Management

    A research group needs to speed up a molecular dynamics simulation that applies the same floating-point calculation to millions of particles at once. Which workload characteristic makes this job a good fit for a GPU?

    Show the answer

    Correct answerA. It is highly parallel, so thousands of GPU cores can process the particles simultaneously

    GPUs contain thousands of cores built for running the same operation on large data sets in parallel, which suits particle simulations. Sequential logic does not benefit, because GPU cores are individually slower than CPU cores.

    Open this question
  38. Question 88

    System Management

    An engineer is preparing a Linux image for a small ARM board that has limited flash storage and no PCI bus for hardware discovery. Which two practices fit common embedded Linux design? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Supply a device tree that describes the board's non-discoverable hardwareC. Use BusyBox to provide core command-line utilities in one small binary

    BusyBox bundles stripped-down utilities into one executable to save space, and a device tree tells the kernel about hardware it cannot probe on its own. A full desktop and coreutils waste limited flash, which makes them the tempting wrong choice.

    Open this question
  39. Question 89

    System Management

    A media team uses ffmpeg on a Linux server to encode 4K video, and encoding takes hours on the CPU. The server has an idle NVIDIA GPU. Which change BEST applies the GPU to this task?

    Show the answer

    Correct answerA. Configure ffmpeg to use the GPU's hardware video encoder

    Modern GPUs include dedicated video encoding hardware that ffmpeg can use, offloading the work from the CPU. Raising the nice value actually lowers priority, and swap or filesystem changes do not use the GPU.

    Open this question
  40. Question 90

    System Management

    On a shared Linux workstation, an administrator opens nvtop and sees a single Python process using 95% of GPU memory while GPU utilization stays near 3%. What does this MOST likely indicate?

    Show the answer

    Correct answerA. The job has allocated GPU memory but is waiting on other work, such as CPU-side data loading

    High memory use with low utilization shows the process holds GPU memory but the GPU is mostly idle, often because the CPU is not feeding it data fast enough. Throttling would appear as high temperature, and without a driver nvtop would not list the process.

    Open this question
  41. Question 91

    System Management

    The volume group vg_data spans /dev/sdb and /dev/sdc. Logical volume lv_db currently uses only /dev/sdb. An administrator must add 20 GiB to lv_db and allocate the new extents from /dev/sdc. Which command BEST meets this requirement?

    Show the answer

    Correct answerD. lvextend -L +20G /dev/vg_data/lv_db /dev/sdc

    The logical volume path comes first, and a physical volume listed after it restricts where the new extents are allocated. A +20G size adds to the current size. Without the plus sign, 20G sets the total size, which fails if lv_db is already larger than 20 GiB.

    Open this question
  42. Question 92

    System Management

    An administrator must create a 20 GiB logical volume named lv_logs in the existing volume group vg_data, which has enough free extents. Which command BEST meets this requirement?

    Show the answer

    Correct answerB. lvcreate -L 20G -n lv_logs vg_data

    -L sets the size in bytes with a unit suffix, -n sets the logical volume name, and the volume group comes last. Without a suffix, -L 20 means 20 MiB, and -l 20 means 20 extents, not 20 GiB.

    Open this question
  43. Question 93

    System Management

    An administrator wants a compact summary of all logical volumes, one line per volume, showing each volume's name, volume group, attributes and size. Which command provides it?

    Show the answer

    Correct answerC. lvs

    AWhy not this: lvdisplay prints a detailed multi-line report for each logical volume, not a one-line summary.

    BWhy not this: vgs prints one line per volume group, not per logical volume.

    CWhy this is right: Lvs prints one line per logical volume with columns such as LV, VG, Attr and LSize.

    DWhy not this: pvs prints one line per physical volume, not per logical volume.

    lvs gives a compact tabular summary, with columns such as LV, VG, attributes and size. lvdisplay gives the longer report with fields such as LV Path, LV UUID, status and current extents, so the idea that lvs is the more detailed command is wrong.

    Open this question
  44. Question 94

    System Management

    A 30 GiB logical volume, /dev/vg_data/lv_data, holds a mounted ext4 filesystem. The volume group also contains other logical volumes and has unallocated extents. An administrator must give lv_data all remaining free space in the group and grow the filesystem, using one command and no unmounting. Which command BEST meets this requirement?

    Show the answer

    Correct answerA. lvextend -l +100%FREE -r /dev/vg_data/lv_data

    +100%FREE adds every unallocated extent in the volume group, and -r resizes the filesystem in the same step. Omitting -r extends only the logical volume and leaves the ext4 filesystem at its old size.

    Open this question
  45. Question 95

    System Management

    What does the command vgcreate -s 16M vg_app /dev/sdb1 do?

    Show the answer

    Correct answerA. Creates volume group vg_app with a physical extent size of 16 MiB

    AWhy this is right: -s sets the physical extent size, the unit in which the volume group allocates space.

    BWhy not this: A volume group's size comes from its physical volumes; -s does not cap it.

    CWhy not this: vgcreate makes a volume group; logical volumes are made with lvcreate.

    DWhy not this: The metadata area size is set at pvcreate with --metadatasize, not by vgcreate -s.

    The -s option of vgcreate sets the physical extent size, the allocation unit for the volume group. The default is 4 MiB when -s is omitted. The extent size is not taken from the disk's sector size.

    Open this question
  46. Question 96

    System Management

    A technician attaches disks holding the volume group vg_archive to a new Linux server. The group was exported on the old server, and vgs on the new server lists it as exported. Which action BEST makes its logical volumes usable on the new server?

    Show the answer

    Correct answerA. Run vgimport vg_archive, then vgchange -ay vg_archive

    vgimport clears the exported state so the new host can use the group, and vgchange -ay then activates its logical volumes. Running vgchange -ay alone is tempting, but an exported group cannot be activated until it is imported.

    Open this question
  47. Question 97

    System Management

    A server's volume group vg_old is being retired. Its data is backed up, its logical volumes are unmounted and no longer needed, and the disks will be reused for other purposes. Which approach BEST removes the group and clears the LVM labels from its disks?

    Show the answer

    Correct answerD. Run vgremove -f vg_old, then run pvremove on each disk

    vgremove -f deletes the group and its logical volumes without prompting, and pvremove then wipes the LVM labels from the disks. Exporting only marks the group as exported and does not delete it. Running pvremove first fails because the physical volumes are still in use by the group.

    Open this question
  48. Question 98

    System Management

    An administrator wants a compact summary with one line per volume group, showing the number of physical volumes, number of logical volumes, total size and free space. Which command BEST provides this?

    Show the answer

    Correct answerC. vgs

    vgs prints a tabular, one-line-per-group summary including #PV, #LV, VSize and VFree. vgdisplay is the tempting choice, but it prints a long multi-line block for each group. vgscan only reports group names, and pvs reports physical volumes.

    Open this question
  49. Question 99

    System Management

    Several disks from another server are attached to a Linux host. They hold three volume groups that were all exported earlier, and the administrator wants every one of them imported in a single step. Which command does this?

    Show the answer

    Correct answerD. vgimport -a

    vgimport -a imports all exported volume groups that it finds. vgscan is the tempting choice, but it only detects groups and does not clear their exported state. vgexport -a does the opposite, marking inactive groups as exported.

    Open this question
  50. Question 100

    System Management

    An administrator wants to add a new, unpartitioned disk /dev/sdb to LVM. What is required before running pvcreate /dev/sdb?

    Show the answer

    Correct answerA. Nothing more, because pvcreate can label the whole disk as a physical volume

    AWhy this is right: LVM accepts any block device, and pvcreate writes its label and metadata straight to the disk.

    BWhy not this: A partition, and the 8e type, are optional; LVM does not need either.

    CWhy not this: LVM keeps its own label and metadata; a filesystem goes on the logical volumes later.

    DWhy not this: The PV UUID is stored in the LVM label on the device, so no partition table is needed.

    LVM accepts any block device, including a whole disk, and pvcreate writes its label and metadata area directly to it. A partition is optional; the belief that a partition of a special LVM type is required is a leftover from older practice.

    Open this question