A server's mail queue or print spool may grow temporarily.
Prevent spool growth from consuming the root filesystem directly.
Which hierarchy is most relevant to separate?
/var/spool stores queued work such as mail and printing. Depending on workload, /var or this subdirectory can be placed on separate storage.
Detailed explanation
/usr/shareIncorrect. /usr/share contains largely static shared data.
Incorrect. /usr/share contains largely static shared data.
/var/spoolCorrect. /var/spool is the conventional location for queued spool data.
Correct. /var/spool is the conventional location for queued spool data.
/boot/efiIncorrect. /boot/efi contains UEFI files.
Incorrect. /boot/efi contains UEFI files.
/proc/sysIncorrect. /proc/sys exposes kernel tunables.
Incorrect. /proc/sys exposes kernel tunables.
Try it yourself
An example you can run in a temporary verification environment.
find /var/spool -maxdepth 1 -mindepth 1 -printf '%f
' 2>/dev/null | head || trueExpected result
環境に存在するスプール用サブディレクトリ。最小環境では空の場合があるKey points
- spool contains queued data
- Variable capacity can be isolated
- The separation granularity is an operations decision
Notes
- Environment: Linux / FHS
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.