Demo practice questions for guest users.
/var directory is used for variable data such as log files, cache files, and application data, which can grow unexpectedly over time. If log files consume all available space in the /var filesystem, a database stored there may be unable to write new data or complete transactions properly. This can lead to database errors, service interruptions, or even data corruption. Therefore, databases are often placed on a separate filesystem or partition to protect them from space-related issues caused by other applications.