We can resize block storage in DigitalOcean according to our needs. As a part of our DigitalOcean Managed Services, Bobcares offers answers to your DigitalOcean block storage questions.
Resizing block storage in DigitalOcean
DigitalOcean block storage volumes are network-based block devices that offer resizable storage for droplets. We can also transfer this additional storage between the droplets.
However, we cannot decrease the volume size. Volume changes cannot be undone. Reducing the available space would put the filesystem at risk of corruption and data loss because data is not always written in sequential order in memory. So create a smaller volume and move the contents of an existing volume to it to reduce the size of a volume.
If something goes wrong, any filesystem changes could result in data loss. Before scaling, we strongly advise backing up the volume’s data. We can remove a snapshot after the resize is successful. Here, we’ll provide the steps to resize (increasing the size) block storage in DigitalOcean:
1. Resizing
2. Expanding
1. Resizing
Firstly, remember to take a snapshot. In the control panel, we can resize the volume.
1. Select Increase size under the More menu for the volume.
2. Choose a new size for the volume in the following window. Any size that is at least 1 GB bigger than the volume’s current size is available.
3. To resize the volume to the desired size, click Resize volume.
2. Expanding
1. We’ve to expand the volume block storage’s file system to increase the space. By default, volumes are unpartitioned. If we manually partitioned the volume when we created it, we need to expand the final partition before expanding the filesystem.
2. Pass the /dev/disk/by-id
volume identifier to resize2fs in case of unpartitioned volumes using the ext4 filesystem:
sudo resize2fs /dev/disk/by-id/scsi-0DO_example
The output will be like this:
[Looking for a solution to another query? We are just a click away.]
Conclusion
The article explains the steps to resize the block storage volume in the DigitalOcean droplet.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments