I want to downsize my Linode, but Cloud Manager won't let me. How can I make this happen?
I'm trying to shrink my Linode plan, but I'm getting this error message:
"Linode has allocated more disk than the new service plan allows. Delete or resize disks smaller."
I want to use a smaller plan to reduce my bill as soon as possible! How am I able to shrink my Linode plan?
4 Replies
There is no need to worry -- you are perfectly capable of shrinking your Linode plan, although you will first need to reduce the size of its disk(s) manually to fit within your new plan. I'm here to help you out with this process with some background knowledge along with the downsizing procedure itself.
Disk allocation vs. disk usage
It is important to know that there is a difference between disk allocation and disk usage. You may reference this Community page for more information about this distinction:
Reducing the size of your disk
To protect against data loss, our systems will not allow you to shrink your disk to a smaller size than its current disk usage. Despite this safeguard, it is not a bad idea to manually verify your Linode's disk usage before reducing its size to fit your target plan.
To do so, log into your Linode through SSH or Lish, then run the df -h
command. Here is an example from one of my own 4 GB Linodes:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 395M 6.3M 389M 2% /run
/dev/sda 79G 6.0G 69G 8% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/1000
As shown above, my Linode's main disk is /dev/sda
since it mounted on /
, the root directory in Unix-like systems such as Linux.
To determine whether your Linode's disk usage will fit in your target plan, compare the value in the Used
column of its df -h
output against your target plan's "Storage" listing on our plan pricing page.
In this example, my Linode's disk is using just 6.0G of its space, making it possible to shrink it all the way down to our smallest Nanode plan and its 25 GB SSD space if I so desired.
Should you find that your disk is using more space than the SSD allotment of your target plan, you may use the information from this page to free up enough of this space to perform the plan size reduction:
Once you verify your Linode's current disk usage, you may proceed to shrink its disk(s), then the Linode plan itself.
Shrinking your Linode's disk
After confirming that your Linode's current disk usage is less than your target plan's SSD storage allotment, you may now proceed to reduce the size of your Linode's disk within your target plan's specifications.
To do so, you must first power off your Linode, after which you may then resize your Linode's disk with the assistance of this guide:
Our Pricing page lists our plan's sizes in GB (gigabytes), while our disk resize utility uses MB (megabytes). To convert from GB to MB, multiply the GB value by 1024. To convert from MB to GB, simply do the reverse and divide the MB value by 1024.
It is important to ensure that the sum of your Linode's disks are equal to or less than your target Linode plan's SSD space. Reducing the size of just your Linode's main disk will not suffice to fit with your target plan's SSD specification.
Reducing the size of your Linode plan
Once you shrink your Linode's disk to fit within your target Linode plan's SSD allotment, you should not experience any further troubles resizing your Linode's disk using these instructions:
If you still see the error message indicated in the original question, it means that your Linode's disk allocation still exceeds the SSD space of your target plan. Accordingly, you will need to perform additional disk space reductions to fit within your target plan. In particular, it is worth ensuring that your conversions between GB and MB are accurate.
Conclusion
It definitely takes some extra effort to downsize a Linode plan if its total disk allocation exceeds your target Linode's plan. While we allow automatically expanding the size of your disks when upsizing your Linode plan, we do not support automatically shrinking a Linode's disks to fit within a smaller plan due to the risk of data loss.
Due to this arrangement, you may want to start out with a smaller Linode plan, then work your way up if you need additional computing resources. Instead of going through the above procedure, another option worth considering is to create a Linode Image from your Linode, use it to deploy a smaller Linode than your existing plan, then remove the larger Linode from your account.
Should you have any further questions or comments about this process, please don't hesitate to submit a reply!
For your convenience, here is a list of common sizes you can use for your Linode's main disk when resizing to a target plan.
Once you navigate to the "Size" field in the "Resize Disk" dialogue, delete the value which currently exists in the field. Afterwards, you can simply copy the disk size of the plan that interests you from this list, then click "Resize" and proceed with the rest of the instructions.
These figures assume the use of the default 512 MB swap disk size. If you are using a different-sized swap disk, you will need to adjust these sizes accordingly.
Shared CPU Linodes
- 1 GB: 25088 MB
- 2 GB: 50688 MB
- 4 GB: 81408 MB
- 8 GB: 163328 MB
- 16 GB: 327168 MB
- 32 GB: 654848 MB
- 64 GB: 1310208 MB
- 96 GB: 1965568 MB
- 128 GB: 2620928 MB
- 192 GB: 3931648 MB
Dedicated CPU
- 4 GB: 81408 MB
- 8 GB: 163328 MB
- 16 GB: 327168 MB
- 32 GB: 654848 MB
- 64 GB: 1310208 MB
- 96 GB: 1965568 MB
- 128 GB: 2559488 MB
- 256 GB: 5119488 MB
- 512 GB: 7372288 MB
High Memory
- 24 GB: 19968 MB
- 48 GB: 40448 MB
- 90 GB: 91648 MB
- 150 GB: 204288 MB
- 300 GB: 347648 MB
GPU Linodes
- 32 GB: 654848 MB
- 64 GB: 1310208 MB
- 96 GB: 1965568 MB
- 128 GB: 2620928 MB
Hello, I also would like to shrink my linode VPS (currently 4 CPU Cores and 160 GB storage). I checked like you said with df -h
and delete some unused files. Now, there is only 9.7 G in use.
root@localhost:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 158G 9.7G 140G 7% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 385M 3.5G 10% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 794M 0 794M 0% /run/user/0
But I cannot downgrade to the lower plan which has 80 GB
and still showing the error message
The current disk size of your Linode is too large for the new service plan. Please resize your disk to accommodate the new plan.
Is there something I missed out in the process of downgrading? Please kindly help me.
There are two things that need to be resized as part of this process: the disk that stores your data and then the plan. Based on that error you're seeing, it sounds like you may be skipping the step of resizing your disk.
It's like if you leased a large car and then rented a parking space for the car, which is a large spot that costs more than other spots. You realize that you don't need a car that large, and that all of your things would fit into a compact car in a smaller, less expensive spot. You have to first move your stuff to a smaller car and then you can move the smaller car into the smaller parking space. That error means you're trying to move a big car into a small parking spot.
Once you resize the disk which shouldn't be a problem based on your output, you can then change your plan.