Hello,
I purchased a 500gb volume and followed the config instructions integrated into the user interface. Namely:
# Create a mount point for your volume:
$ mkdir -p /mnt/volume_nyc3_01
# Mount your volume at the newly-created mount point:
$ mount -o discard,defaults,noatime /dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01 /mnt/volume_nyc3_01
# Change fstab so the volume will be mounted after a reboot
$ echo '/dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01 /mnt/volume_nyc3_01 ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
The volume mounts but when using findmnt command we see that the mnt only have 300 megabytes:
root@ubuntu-s-2vcpu-4gb-120gb-intel-nyc3-01:~# findmnt -no size /mnt/volume_nyc3_01
367.9M
root@ubuntu-s-2vcpu-4gb-120gb-intel-nyc3-01:~# findmnt /mnt/volume_nyc3_01
TARGET SOURCE FSTYPE OPTIONS
/mnt/volume_nyc3_01 /dev/sda ext4 rw,noatime,discard
This is a fresh volume. I don’t think it should need to be resized. What is wrong? I need 500gb not 300mb!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hi there,
Happy to hear that you’ve got it all working using the
resize2fs
.For anyone who comes across this in the future, this should actually be available under the
Expand the Filesystem
section in this documentation guide here:https://docs.digitalocean.com/products/volumes/how-to/increase-size/#expand-the-filesystem
Hope that this helps!
Best,
Bobby
Running resize2fs /dev/sda seems to have fixed it. Not sure why that wasn’t in the config instructions >:(