- Home
- Server Administration
- LPIC-2 Linux Engineer 201
36.
Once Linux is booted, which file can you view to see which IRQs are in use on the Linux
computer?
- A./etc/interrupts
- B./boot/interrupts
- C./root/interrupts
- D./proc/interrupts
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
Once Linux is booted, you can check on resource consumption by examining files in the /proc filesystem. In particular, /proc/interrupts holds IRQ use information. The other choices listed do not exist as standard, dynamically updated files within Linux. |
37.
Why should you be cautious when using hdparm ?
- A.The hdparm tool can set hardware options that are not supported by some hardware, thus causing data corruption.
- B.Because hdparm modifies partition tables, an error can result in loss of one or more partitions and all their data.
- C.By changing hardware device file mappings, you can become confused about which drive is /dev/hda and which is /dev/hdb .
- D.The hdparm tool can cause Linux to treat an ext2fs partition as if it were FAT, resulting in serious data corruption.
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The hdparm program manipulates low - level options in ATA hard disk controllers, such as the use of DMA or PIO modes. If a controller is buggy or doesn't support a specified mode, the result can be data corruption or lost access to hard disks. The utility has nothing to do with partition tables, device file mappings, or filesystems per se. |
38.
Which of the following tools is used to initialize a partition so that it may function as a
physical volume in an LVM configuration?
- A.pvchange
- B.pvcreate
- C.lvcreate
- D.lvconvert
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The pvcreate utility lays out the basic data structures needed by LVM on a physical volume, so option B is correct. The pvchange utility changes physical volume attributes but doesn't prepare a partition as the question asks. Options C and D both operate on logical volumes, not physical volumes: lvcreate creates a new logical volume, and lvconvert converts between modes, as for example when merging a snapshot into its parent. |
39.
Which of the following device files might you reasonably include in a volume group,
assuming they're properly flagged and prepared? (Select all that apply.)
- A./dev/sdc
- B./dev/md1
- C./dev/sda7
- D./dev/hdb2
- Answer & Explanation
- Report
Answer : [A, B, C, D]
Explanation :
Explanation :
All of the listed devices can be included in an LVM configuration. Although using a whole disk, as in option A, is unusual, it is a valid choice. Option B denotes a RAID device, which you might include if you want to combine the benefits of both RAID and LVM. Options C and D are conventional LVM choices on partitions using SCSI and PATA disks, respectively. |
40.
Your computer has crashed because of filesystem corruption, and you must perform
emergency recovery using an emergency boot disc. How can you activate your LVM
devices, if they aren't activated automatically when you boot your emergency disc?
- A.vgscan
- B.vgimport
- C.vgchange - ay
- D.vgdisplay
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The vgchange command with its - ay option, activates a volume group's devices, so option C is correct. The vgscan command scans for volume groups but does not activate the device nodes for the logical volumes it contains. The vgimport command is used to import (activate) a previously exported (deactivated) volume group; but the question specifies that the problems were caused by a system crash, not an improperly exported volume group, so option B is incorrect. The vgdisplay command displays information on the volume group; it doesn't activate the device nodes for its logical volumes. |