SK0-005 · Question #197
Users at a company cannot log into a server. An administrator reboots the server with liveCD and executes a df -h command. The following is returned: Which of the following should be done NEXT?
The correct answer is B. Compress or delete log files. Given users cannot log in and a df -h command suggests a full disk, the next logical step is to compress or delete log files to free up space.
Question
Users at a company cannot log into a server. An administrator reboots the server with liveCD and executes a df –h command. The following is returned:
Which of the following should be done NEXT?
Options
- AReformat the boot partition.
- BCompress or delete log files.
- CReconfigure the server with a larger primary partition.
- DAsk users to clean out their home directories from another server.
How the community answered
(21 responses)- A10% (2)
- B81% (17)
- C5% (1)
- D5% (1)
Why each option
Given users cannot log in and a `df -h` command suggests a full disk, the next logical step is to compress or delete log files to free up space.
Reformatting the boot partition is a destructive action that would wipe the operating system and is an extreme measure, not a first troubleshooting step for login issues due to disk space.
A full disk, often revealed by `df -h`, can prevent users from logging in or applications from functioning correctly. Log files, particularly in `/var/log` on Linux systems, frequently consume significant disk space and can be safely compressed or deleted to alleviate this issue without significant system changes.
Reconfiguring with a larger primary partition involves resizing or reinstalling, requiring significant downtime and effort, and is not the immediate solution when log files are likely filling the disk.
While user home directories can consume space, server login issues due to disk space are more commonly caused by system files like logs, making log cleanup a more immediate and impactful first step than asking users to clean their directories.
Concept tested: Linux troubleshooting - disk space management
Source: https://www.redhat.com/sysadmin/df-command
Topics
Community Discussion
No community discussion yet for this question.