Join the discussion
Question 1/41
Which mdadm command creates a RAID-1 device consisting of two block volumes and one spare device?
Correct Answer: C
The correct command to create a RAID-1 device (mirroring) consisting of two block volumes with one spare device is optionC:mdadm -create /dev/md0 -level=1 -raid-devices=2 /dev/xvdd1 /dev/xvdd2 -spare- devices=1 /dev/xvdd3.
* RAID Level 1:RAID-1, also known as mirroring, involves creating an exact copy (or mirror) of a set of data on two or more disks. This ensures data redundancy; if one disk fails, the other can still provide the data.
* mdadm Command Structure:Themdadmcommand is used to manage and monitor RAID devices on Linux. To create a new RAID array, the--createoption is used, followed by several parameters:
* /dev/md0: The name of the RAID device to be created.
* --level=1: Specifies RAID level 1 (mirroring).
* --raid-devices=2: Indicates the number of active devices (two in this case) to be used in the RAID array.
* /dev/xvdd1 /dev/xvdd2: The two block devices that will form the RAID-1 array.
* --spare-devices=1 /dev/xvdd3: Specifies one spare device (/dev/xvdd3). A spare device is used to automatically replace a failed device in the RAID array.
* Option Analysis:
* A.Incorrect because it specifies RAID level 5 (--level=5), which requires at least three devices and does not match the requirement for RAID-1.
* B.Incorrect because it does not include the--spare-devices=1option, meaning there is no spare device included in this configuration.
* C.Correct as it specifies RAID-1 (--level=1), two active devices (--raid-devices=2), and one spare device (--spare-devices=1).
* D.Incorrect because it specifies RAID level 0 (--level=0), which is a striped set (no redundancy), not a mirrored set (RAID-1).
Oracle Linux Reference:For more detailed information aboutmdadmand RAID configurations in Oracle Linux
8, refer to the following Oracle Linux documentation:
* OracleLinux 8 Managing Storage Devices - RAID Configuration
* OracleLinux 8 mdadm Manual
These references provide comprehensive details on RAID levels,mdadmcommand syntax, and options for creating and managing RAID arrays in Oracle Linux.
* RAID Level 1:RAID-1, also known as mirroring, involves creating an exact copy (or mirror) of a set of data on two or more disks. This ensures data redundancy; if one disk fails, the other can still provide the data.
* mdadm Command Structure:Themdadmcommand is used to manage and monitor RAID devices on Linux. To create a new RAID array, the--createoption is used, followed by several parameters:
* /dev/md0: The name of the RAID device to be created.
* --level=1: Specifies RAID level 1 (mirroring).
* --raid-devices=2: Indicates the number of active devices (two in this case) to be used in the RAID array.
* /dev/xvdd1 /dev/xvdd2: The two block devices that will form the RAID-1 array.
* --spare-devices=1 /dev/xvdd3: Specifies one spare device (/dev/xvdd3). A spare device is used to automatically replace a failed device in the RAID array.
* Option Analysis:
* A.Incorrect because it specifies RAID level 5 (--level=5), which requires at least three devices and does not match the requirement for RAID-1.
* B.Incorrect because it does not include the--spare-devices=1option, meaning there is no spare device included in this configuration.
* C.Correct as it specifies RAID-1 (--level=1), two active devices (--raid-devices=2), and one spare device (--spare-devices=1).
* D.Incorrect because it specifies RAID level 0 (--level=0), which is a striped set (no redundancy), not a mirrored set (RAID-1).
Oracle Linux Reference:For more detailed information aboutmdadmand RAID configurations in Oracle Linux
8, refer to the following Oracle Linux documentation:
* OracleLinux 8 Managing Storage Devices - RAID Configuration
* OracleLinux 8 mdadm Manual
These references provide comprehensive details on RAID levels,mdadmcommand syntax, and options for creating and managing RAID arrays in Oracle Linux.
Add Comments
- Other Question (41q)
- Q1. Which mdadm command creates a RAID-1 device consisting of two block volumes and one spare ...
- Q2. Which takes precedence for ssh program configuration?...
- Q3. Which two statements are true about the configuration and use of cron or anacron?...
- Q4. Examine this content from /etc/chrony.conf: ... pool pool.ntp.org offline driftfile /var/l...
- Q5. Examine this command: # auditctl -w /etc/passwd -p w -k pass Which two statements are true...
- Q6. Examine this command: # cryptsetup luksOpen /dev/xvdd1 cryptfs What happens upon execution...
- Q7. Examine this command and output: $ ftp host01.example.com Connected to host01.example.com ...
- Q8. Which two statements are true about the Linux Auditing System?...
- Q9. Which two default user account settings are contained in /etc/login.defs?...
- Q10. Which mdadm command creates a RAID-1 device consisting of two block volumes and one spare ...
- Q11. Examine this command: # nft add rule inet filter input tcp dport 80 drop Which two stateme...
- Q12. Examine this command: # auditctl -w /etc/passwd -p w -k pass Which two statements are true...
- Q13. Which two are true about using Ksplice?
- Q14. Which two statements are true about the at and batch commands?...
- Q15. Which two statements are true about control groups (cgroups) in Oracle Linux 8?...
- Q16. Examine these commands and output: # cat /etc/auto.master /net -hosts /- auto.direct ro # ...
- Q17. Examine this command: $ podman run -name=oracleshell -it oraclelinux:8 -slim Which two sta...
- Q18. Which is true about the /etc/sysconfig directory in an Oracle Linux 8 system?...
- Q19. Which two commands relabel an SELinux system after a reboot?...
- Q20. Which two methods of changing kernel parameters can you use to modify values for the runni...
- Q21. Examine this command and output: # cat deployment.yaml apiVersion: apps/v1 kind: Deploymen...
- Q22. Examine this content from /etc/chrony.conf: ... pool pool.ntp.org offline driftfile /var/l...
- Q23. Examine this command: # ssh -L 5011:127.0.0.1:80 [email protected] -f sleep 30 Which two are ...
- Q24. You must prevent Ksplice from reapplying updates at the next system reboot. Which two comm...
- Q25. Examine the access privileges on this directory: drwx------ 2 user1 test 4096 Nov 6 10:12 ...
- Q26. Which two commands relabel an SELinux system after a reboot?...
- Q27. Examine this command: # cryptsetup luksOpen /dev/xvdd1 cryptfs What happens upon execution...
- Q28. You must add an additional swap device and you add this entry to /etc/fstab: /.swapfile no...
- Q29. Which two statements are true about systemd system and service manager?...
- Q30. Which two features does a user private group provide?...
- Q31. Which two types of reports does iostat generate?...
- Q32. Which is true about the /etc/sysconfig directory in an Oracle Linux 8 system?...
- Q33. Examine this command and output: # mdadm --detail /dev/md0 /dev/md0: Creation Time: Tue Oc...
- Q34. You must add an additional swap device and you add this entry to /etc/fstab: /.swapfile no...
- Q35. Examine these requirements for a host with a user oracle: Network services must run in a c...
- Q36. Which two default user account settings are contained in /etc/login.defs?...
- Q37. Examine /etc/anacrontab: SHELL=/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # th...
- Q38. Which two actions are performed by the logrotate utility?...
- Q39. Which two directories store PAM authentication modules?...
- Q40. Which two statements are true about systemd system and service manager?...
- Q41. Which two components are used for creating a new rsyslog rule?...
