본문 바로가기

Linux

Quiz: Configure local storage

1. What is the limit for primary partitions when using the MBR partition type?
Result: Correct
Correct Answer(s): 4

2. For an MBR partition, what is the max disk size a partition can be? 
Result: Incorrect
Correct Answer(s): 2TiB

3. How many primary partitions can a GPT partition table have? 
Result: Incorrect
Correct Answer(s): 128

4. Which tool would you use to mange GPT based partitions? 
Result: Partially Correct
Correct Answer(s): gdisk, parted

5. What command is used to inform the OS of partition table changes? 
Result: Correct
Correct Answer(s): partprobe

6. Which file on the operating system contains information about partitions the OS is reading?
Result: Correct
Correct Answer(s): /proc/partitions

7. What is the maximum disk size for a GPT based partition?
Result: Correct
Correct Answer(s): 8ZiB

8. Which command is used to assign a swap signature to a device?
Result: Incorrect
Correct Answer(s): mkswap

9. Which command displays information about a swap device?
Result: Correct
Correct Answer(s): swapon -s

10. Select the correct order of tasks for creating an LVM for the first time.
Result: Correct
Correct Answer(s): Create the physical volume (pvcreate); Create the volume group (vgcreate); Create the logical volume (lvcreate)

11. Which file system is best used with LVM volumes?
Result: Correct
Correct Answer(s): XFS

12. You are extending a logical volume. In order to do this, you have to add the /dev/xvdj device to the volume group "battlestar". What command would you issue in order to accomplish this task? 
Result: Incorrect
Correct Answer(s): vgextend battlestar /dev/xvdj

13. After adding 50GB more of physical storage to your existing volume group, you need to extend your /dev/battlestar/galactica volume group to include an additional 20GB of storage. How might you accomplish this task?
Result: Correct
Correct Answer(s): lvextend -L +20G /dev/battlestar/galactica

14. You've just increased the size of the /dev/battlestar/galactica LVM volume. This volume is mounted in /mnt/mydir; what commands would you issue in order for the operating system and files system to recognize the increase in size on the device?
Result: Incorrect
Correct Answer(s): xfs_growfs /mnt/mydir

15. You're in the middle of the Red Hat certification test and forget which LVM commands you need to use in order to perform the specified tasks. What do you do?
Result: Partially Correct
Correct Answer(s): man lvm, info lvm

16. Given the volume group "battlestar" and a physical volume in the volume group "/dev/xvdf1", which command would accurately create a 19G logical volume out of /dev/xvdf1 with a volume name of "galactica"?
Result: Correct
Correct Answer(s): lvcreate -n galactica -L 19G battlestar

17. The file system needs to be created on the device only after the Logical Volume is created (lvcreate).
Result: Incorrect
Correct Answer(s): True

18. What are two ways to find information about swap devices enabled on the system?
Result: Partially Correct
Correct Answer(s): swapon -s, cat /proc/swaps

19. Swap space can be created out of GPT, MBR and LVM based partitions/volumes.
Result: Incorrect
Correct Answer(s): True

20. After making partition changes, the partition changes do not appear in the /proc/partitions. How can you force the kernel to reload the partition tables?
Result: Correct
Correct Answer(s): issue the partprobe command