Question

My new volume doesn't seem to be giving me more space?

Posted November 20, 2021 86 views
DigitalOcean AccountsDigitalOcean Volumes

My droplet (2 GB Memory / 40 GB Disk / SGP1 - Ubuntu 20.04 (LTS) x64) was running out of space. So I added a 40GB volume, and mounted it as per DO instructions. I moved some backup folders over with the mv command. That all went well. However the total amount of disc space available (according to df) for my server remains at 40 GB, even though the DO description of my plan is now 2 GB Memory / 40 GB Disk + 40 GB / SGP1 - Ubuntu 20.04 (LTS) x64. The df command and the Disk Usage graph but tell me I only have 40GB total storage. Is there something I didn’t understand properly?

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.

×
Submit an Answer
1 answer

Hi there,

The new block storage would show up as a separate disk, so the df command will still be reporting a total of 40GB for the / mount out but there should be another disk with the size of the new block storage that you’ve attached.

Feel free to share the output of the df -h command here if you wish.

Best,
Bobby

  • Results from du and df commands seem a bit inconsistent. DF gives me

    Filesystem      Size  Used Avail Use% Mounted on
    /dev/vda1        39G   37G  2.4G  94% /
    /dev/sda         40G   49M   38G   1% /mnt/volume_sgp1_01
    

    (leaving out other directories)

    but du -hx --max-depth=1 / gives me:

    ...snip
    21G /var
    15G /volume_sgp1*
    ...snip
    37G /
    

    that is both /var + /volume = 37G

    edited by bobbyiliev
    • Hi there,

      The df command shows you the available filesystems and the mount points. In your case you have 2 disks:

      • /dev/vda1 - for your main root partition
      • /dev/sda - for the new mount point at /mnt/volume_sgp1_01

      The du command shows you the current disk usage, so you are currently using 21GB in /var and 15GB in /volume_sgp1. This all looks correct.

      The Droplet Disk Graph would only be showing you the root partition.