Troubleshooting
A Linux server reports a full filesystem, but directory usage totals are much smaller than its used space. An administrator recently deleted a large log while its application remained running. What should the administrator do FIRST to reclaim that space?
Show the answer
Correct answerB. Have the application close its deleted log
AWhy not this: The usage discrepancy is explained by an open, deleted file rather than evidence of filesystem corruption.
BWhy this is right: Closing the application's last reference to the deleted log allows the filesystem to reclaim its space.
CWhy not this: There is no evidence of a hardware fault; replacing the disk does not address the open file.
DWhy not this: Expanding a partition may add capacity, but it does not reclaim space held by an open, deleted file.
A deleted file continues consuming space while a process holds it open; closing that file releases its space. Expanding the partition does not release the space retained by the application's open file.