VPS reconfiguration: Difference between revisions

From BitFolk
Jump to navigation Jump to search
m (→‎Growing: Link to more in-depth disk resizing article)
(→‎IP addresses: Link to new article)
Line 48: Line 48:


===IP addresses===
===IP addresses===
Additional IPv4 addresses require a technical justification. Once this has been agreed, BitFolk will tell you which IPv4 address or addresses have been routed to you. You then need to configure that as an IP alias in your operating system.
See the main article on [[adding an IP address]].
 
Due to a curiosity of the way Xen creates virtual machines, the next time you want to restart your VPS you should do a shut down and then a boot, rather than a reboot. If you reboot then Xen will only route IP addresses to you that you had last time it was booted, i.e. not any that you've had added since.
 
====Debian/Ubuntu====
A typical '''/etc/network/interfaces''' entry for a Debian-like system would be something like:
 
<syntaxhighlight>
auto eth0:1
iface eth0:1 inet static
        address 212.13.194.116
        netmask 255.255.255.255
</syntaxhighlight>
 
That will add the IPv4 address at next boot, but to add it immediately you might do:
 
<syntaxhighlight>
$ sudo ip addr add 212.13.194.116/32 dev eth0
</syntaxhighlight>
 
Or restart networking:
 
<syntaxhighlight>
$ sudo invoke-rc.d networking restart
</syntaxhighlight>

Revision as of 14:40, 10 December 2015

Technical and financial issues of reconfiguring your VPS plan.

Definitions

When we talk about reconfiguring your VPS plan, we mean altering the amount of memory, disk, data transfer, IP addresses etc. provided to you by BitFolk.

Financial concerns

You should request changes to your VPS plan by contacting BitFolk Support.

The main price list contains all pricing details.

Upgrades

You can order an upgrade at any time. You'll be charged the cost of the upgrade pro rata up until your next payment date.

Downgrades

Anything that reduces the cost of your service will take effect from your next payment date.

Technical concerns

BitFolk will usually be able to perform an upgrade but occasionally might need to move your VPS to another server. If you decide to go ahead and a move is required, that will require your VPS to be shut down for 15-30 minutes. BitFolk will need to do the work and will coordinate a time with you.

As long as a server move is not required, other reconfigurations can take place quickly and to your own time scale.

Memory

Additions

Once you have heard from BitFolk that reconfiguration has taken place, you will need to shut down (not reboot) your VPS and then boot it again via the Xen Shell console. Once booted you will see the new memory amount. You can do this at any time convenient to you.

Removals

As above, except that BitFolk will generally insist you shut down and boot again before your next payment is due.

Disk

Growing

Main article: Growing filesystems and disks

Once you have heard from BitFolk that reconfiguration has taken place, you will need to shut down (not reboot) your VPS and then boot it again via the Xen Shell console. Once booted you will see that your VPS's main block device (typically /dev/xvda) is larger. You then need to grow your filesystem into the empty space using something like:

$ sudo resize2fs -p /dev/xvda

There are several different styles of disk configuration in use at BitFolk however, and depending on which was in use when your VPS was provisioned, you may need to use a different technique.

Shrinking

To shrink your disk space it is first necessary to shrink your filesystem, and this cannot be done online. Therefore you will need to agree some downtime with BitFolk. BitFolk will then shut your VPS down at the agreed time, shrink your filesystem and then shrink your block device. Your VPS will then be booted again. This should take no more than about 30 minutes. You must ensure that you have enough free space otherwise it will not be possible to do the work.

If you are confident that your VPS shuts down and boots cleanly then there's no need for you to be available during the work.

Data transfer

This is an easy one. Limits on data transfer are purely numbers in a database so once BitFolk has indicated that your reconfiguration has taken place there's nothing more to do.

IP addresses

See the main article on adding an IP address.