306-300 LPIC-3 High Availability and Storage Clusters (Exam 306) Practice Questions
Prepare for 306-300 with more than an answer.
- Exam fee
- $200 USD
- Level
- Advanced Professional (LPIC-3)
- Valid for
- 5 years
Domains covered on the exam 4
- High Availability Cluster Management37%
- High Availability Cluster Storage22%
- High Availability Distributed Storage22%
- Single Node High Availability20%
- 1
A consultant is designing a Pacemaker cluster. They need to ensure that
ServiceBalways starts afterServiceA, and ifServiceAstops,ServiceBmust also stop. Which single constraint type achieves both requirements?Show answer details
Correct answer: A
In Pacemaker, an Order constraint (e.g.,
start ServiceA then start ServiceB) implies that if ServiceA is stopped, ServiceB must be stopped first. It handles both the startup sequence and the shutdown dependency. - 2
Which command is used to manually add a new brick to an existing distributed GlusterFS volume named
vol_data?Show answer details
Correct answer: A
The
gluster volume add-brickcommand extends the volume. Syntax:gluster volume add-brick. This adds capacity to a distributed volume. - 3
You are configuring
smartdto monitor a SATA drive/dev/sdb. You want it to run a Long Self-Test every Sunday at 2 AM. Which directive in/etc/smartd.confis correct?Show answer details
Correct answer: A
The
-sflag defines the schedule using regex syntaxT/MM/DD/d/HH.Lstands for Long test.../../7/02means any month, any day of month, day of week 7 (Sunday), at 02:00 hours. - 4
In a Ceph cluster, what is the primary function of the
MDS(Metadata Server) daemon?Show answer details
Correct answer: A
The MDS is required only for CephFS (the filesystem). It stores metadata (inodes, directory structure) so clients can mount the filesystem POSIX-style. It is not needed for RBD or Object Gateway (RGW).
- 5
A new node
node3has been added to an existing 2-node cluster usingcorosync. After starting the service,crm_monshows the node as offline.corosync-cfgtool -sshows the link is operational. What is the most likely cause related to the authentication key?Show answer details
Correct answer: A
Corosync requires the exact same
authkeyfile on all nodes to encrypt and authenticate traffic. If the file is missing or unreadable (wrong permissions, e.g., not 400 root:root), the node cannot join the cluster ring. - 6
A system administrator manages a three-node Pacemaker cluster hosting a critical database. The cluster uses a 'shared-nothing' architecture with DRBD replication. The administrator needs to configure a constraint to ensure the database service only starts on the node that is currently the DRBD Primary. Which specific constraint type and configuration logic should be applied?
Show answer details
Correct answer: B
DRBD is managed in Pacemaker as a promotable clone of the ocf:linbit:drbd agent (older documentation calls this multi-state or master/slave; "promiscuous clone" is not a Pacemaker term). A colocation constraint of the database with the Promoted (Master) role of that clone, e.g.
pcs constraint colocation add Database with Promoted DRBD-cloneor in crmshcolocation db_on_drbd inf: Database ms_drbd:Master, allows the database to run only on the node where DRBD is currently Primary. Colocation affects placement only, so it is normally paired with an order constraint (promote DRBD-clone then start Database) to make the database start after the promotion. A location constraint cannot point at another resource's role, promoting DRBD after the database has started is the wrong order, and symmetric-cluster=false only turns the cluster into an opt-in cluster. - 7
You are configuring a high-availability load balancer using HAProxy and Keepalived. The requirement is to ensure that if the HAProxy service fails on the MASTER node, the Virtual IP (VIP) is immediately released so the BACKUP node can take over. Which configuration directive in
keepalived.confachieves this monitoring?Show answer details
Correct answer: A
HAProxy is monitored with a
vrrp_scriptblock (for examplescript "killall -0 haproxy") that thevrrp_instancereferences withtrack_script. Afterfallconsecutive failures, an instance tracking a script with the default weight 0 transitions to FAULT state and releases the VIP; with a negative weight the value is subtracted from its priority, so a BACKUP with a higher priority wins the election and takes over the VIP.lb_algoselects the LVS scheduler,notify_masteronly runs a script after a transition to MASTER, andpersistence_timeoutsets LVS client persistence. - 8
During a routine audit of a Corosync 3.x configuration on a 4-node cluster, you notice that the
totemsection setstransport: knet. A colleague proposes switching totransport: udp(multicast) to simplify the network setup. According to the Corosync 3.x corosync.conf(5) documentation, which consequence of this change must be evaluated before applying it?Show answer details
Correct answer: A
Corosync 3.x corosync.conf(5): "The default is knet. The transport type can also be set to udpu or udp. Only knet allows crypto or multiple interfaces per node." The crypto_cipher and crypto_hash entries add that "Encrypted transmission is only supported for the knet transport", and the maximum number of interface directives is 8 for knet but 1 for other transports. The Corosync 3.0 release notes confirm that UDP/UDPU "supports only single ring (RRP is gone in favor of Knet) and doesn't support encryption" and list "Higher throughput and lower latency" among the knet features, so moving to udp is not a performance optimization. The token default (3000 ms in current 3.x releases) does not depend on the transport, and rrp_mode exists only in Corosync 2.x.
- 9
A two-node Pacemaker cluster has experienced a split-brain situation. You have confirmed that Node A has the latest data and Node B is stale. Which command sequence correctly forces Node A to become the authoritative source and resets the cluster state?
Show answer details
Correct answer: C
First stop the cluster stack on the stale node B (
pcs cluster stopwithout a node name stops the local node). Node A then holds only one of the two votes and, unless two_node is enabled, is inquorate, so lower the expected votes on the survivor:pcs quorum expected-votes 1changes expected votes in the live cluster only (the corosync.conf value returns on reload). Red Hat documents this under "Running inquorate clusters": "This allows the cluster to continue operation when it does not have quorum" (the corosync-level equivalent iscorosync-quorumtool -e 1); use it with extreme caution and only when the other node is really stopped. After verifying node A (pcs status,corosync-quorumtool -s), start node B so it rejoins the running cluster.corosync-cmapctl -sneeds a key name, a type and a value, and no runtime.votequorum.expected_votes key is documented. Stopping all nodes and starting B would bring up the stale node,crm_node --force --removepluspcs cluster setuprebuilds the cluster membership, andpcs resource cleanupdoes not address quorum. - 10
You are configuring a 'Shared-Disk' cluster architecture using GFS2. Which cluster component must be running and functional to strictly manage concurrent access to the shared storage blocks to prevent data corruption?
Show answer details
Correct answer: A
GFS2 relies on the Distributed Lock Manager (DLM) to coordinate file locking across the cluster nodes. Without DLM, nodes would overwrite each other's data on the shared block device.
