How to Resize Your WKMN VPS
WKMN VPSs are Linux-based virtual machines (VMs) that run on top of virtualized hardware. Resizing a VPS allows you to adjust its resources, including CPU, RAM, and disk space, to meet your changing requirements. In this guide, we’ll walk you through the process of resizing a WKMN VPS with step-by-step instructions and important considerations.
Table of Contents
- Introduction
- Resizing Options
- Considerations Before Resizing
- Resizing Your WKMN VPS
- Troubleshooting Disk Resize
- Conclusion
Introduction
WKMN VPSs are versatile virtual machines used for various purposes, including hosting websites, applications, and more. As your needs evolve, you may find it necessary to resize your VPS to allocate more CPU, RAM, or disk space. This guide will help you understand the process of resizing WKMN VPSs.
Resizing Options
There are two resizing options for WKMN VPSs, each serving a specific purpose:
-
CPU and RAM Only: This option allows you to change the amount of CPU and RAM available to a VPS. It’s useful when you need to boost the performance of your VPS by allocating more computing resources.
-
Disk, CPU, and RAM: In addition to CPU and RAM adjustment, this option lets you permanently increase the size of a VPS’s disk. It’s ideal when you need more storage space for your data.
Considerations Before Resizing
Before you embark on the resizing process, it’s crucial to consider the following factors:
-
Downtime: Be prepared for approximately one minute of downtime per GB of used disk space during the resizing process. Actual downtime may be shorter, but it’s wise to plan accordingly.
-
Snapshot: We strongly recommend taking a snapshot of your VPS before initiating the resize. Snapshots act as backups and can be crucial in case something goes wrong during the process. You can delete the snapshot after confirming the successful resize.
-
Data Backup: Resizing a VPS may involve changing hypervisors, which can pose a risk of data loss or filesystem corruption. Ensure you have a backup of your VPS’s data to prevent any potential data loss.
-
Disk Size Increase: Keep in mind that you cannot decrease the size of a VPS’s disk once it’s increased. Shrinking the available space can lead to data loss and filesystem issues. If you require more flexibility, consider using volumes for additional data storage, which can be detached or deleted as needed.
Resizing Your WKMN VPS
Now, let’s dive into the step-by-step process of resizing your WKMN VPS based on your specific needs.
Using the Control Panel
-
Access Your Control Panel: Begin by navigating to your control panel, where you manage your WKMN VPS instances.
-
Select the Target VPS: Choose the WKMN VPS that you wish to resize. Please note that you can only upgrade resources, not downgrade.
-
Click “Manage”: Locate and click the “Manage” button associated with the selected VPS.
-
Navigate to the “Resize” Tab: In the VPS management interface, find the “Resize” tab.
-
Choose Upgrade Options: Here, you’ll see various upgrade options available to you. Select the option that aligns with your requirements. If you need to adjust CPU, RAM, and disk space, ensure that you choose the appropriate package.
-
Confirm and Resize: Review your selected upgrade options to ensure they match your needs. Once you are satisfied, confirm the resizing action.
-
Monitor the Process: The resizing process will begin. Be patient and monitor the progress. Depending on the size of your VPS and the resources being adjusted, the process may take some time.
-
Post-Resize Verification: After the resize completes successfully, verify that your VPS is functioning as expected. Ensure that all your data and applications are intact.
Troubleshooting Disk Resize
If you are not comfortable with the command line, please contact our support team for assistance.
In some instances, you might encounter issues where the disk resize operation fails to resize the VPS’s partition or filesystem. If this happens, you can follow these troubleshooting steps:
- Use the growpart command: This command can help you resize the partition. Here’s how you can use it:
growpart /dev/vda 1
- Identify the filesystem type: The command to resize the filesystem depends on its type. If you’re unsure about the filesystem type you’re using, you can check it using the
df
command:
df -Th /dev/vda1
The filesystem type will be displayed in the second column of the output. For instance, the following output indicates that the filesystem type is ext4:
Filesystem Type Size Used Avail Use% Mounted on
/dev/vda1 ext4 50G 4.0G 45G 10% /
- Resize the filesystem: Depending on the filesystem type, you can use the resize2fs command for ext3/4 filesystems:
resize2fs /dev/vda1
Or the xfs_growfs
command for XFS:
xfs_growfs /dev/vda1
- Handling multiple partitions: If your disk has more than one partition, you might need to adjust the above commands to match your VPS’s partition table. Partitions are numbered, so if you want to grow a specific partition, use its number in the
growpart /dev/vda
command. For example,growpart /dev/vda 2
will grow the second partition.
Did you find this guide helpful?
You'll be pleased to know WKMN Development offers a variety of products and services to help you grow your business. You can schedule a consultation to determine the best fit for your business. The choice is yours! Check out our Products & Services.
Scan this QR Code to share this guide
www.WKMN.dev/guides/wkmn/resize-vpsLoading...