Red Hat Certified System Administrator RHCSA · Free Practice Question Easy

Question 10

On test.server.com, configure journald to retain log data between reboots.

  • A

    Pass

  • B

    Fail

Reveal correct answer

Correct answer: A

Explanation

Answer Steps:

  1. Edit the Journald Configuration File
    Open the journald.conf configuration file in an editor:

    • The journald.conf file allows you to set parameters for the journal service, such as storage limits, retention policies, and storage location.

  2. Set Persistent Storage
    Locate the line with #Storage=auto and modify it to:

    • Setting Storage=persistent ensures that journal logs are saved on disk and remain available across system reboots.

  3. Save and Exit the Editor
    Press Esc to switch to command mode in Vim, then type :wq followed by Enter to save the changes and exit.

  4. Restart the Journald Service
    To apply the changes immediately, restart the systemd-journald service:

Explanation:

  • By configuring journald with Storage=persistent, logs are retained between reboots, ensuring continuity in log access for post-reboot analysis and debugging.

  • If you do not restart the service, the new configuration will only take effect after the next reboot.

This setup ensures logs are consistently saved to disk, which is crucial for maintaining a continuous logging history on the system.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need