Question

How can I get the current usage of a Block Storage Volume?

Posted October 1, 2019 1.4k views
DigitalOcean API and CLI (doctl)

If a volume is mounted to a Droplet, and the Droplet is on, I can check how much space is used using the df command. But if the Droplet is off, or experiencing some issue that prevents me from logging in and running df, is there some other way to check how much space is used? The API only seems to show the total size of the Volume.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hello, @liam6dad4cf30a30137e21e9bc
If the droplet is offline, then you can use the VNC console in order to access the droplet and check the disk space usage.

If you want to monitor the disk space usage on your droplet you can setup a cron job to send you an email if the disk usage goes above x%

Let me know if you have any questions.

Run df -h without any other arguments. That should output space usage details for all available filesystems.

Submit an Answer