12. Analyzing Log Partition Usage
Beginner Mode
Start your terminal to use beginner mode.
Scenario
Log rotation has stopped working correctly, and you suspect that /var/log might be mounted on a different filesystem with limited space or incorrect mount options.
Task
Determine which filesystem or device /var/log is mounted on, including device name, mount point, filesystem type, size, and usage. Ensure all sizes are formatted in human-readable units (e.g., GB, MB). Save the findings to /home/devops/varlog_filesystem_info.txt Optionally identify if this filesystem differs from / which could provide additional info on causes of log rotation or space issues.
Example
# After (filesystem identified and analyzed)
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 10G 9.8G 200M 98% /var/log
Mount details:
/dev/sdb1 on /var/log type ext4 (rw,relatime)
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
RedHat
Accenture
Coinbase
Adobe
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks