You are here:

Home > Support > Technical Documents > Reinstalling your dedicated server

Print this page

Technical Documents

Reinstalling your dedicated server (reference)

This page shows you how to reimage your dedicated server in advanced ways – if you want the simple way see here instead where you only need to pick from a few menu options.

If you want to be able to control partitioning, processor architecture and IP configuration in a bit more detail, read on.

Simple usage

You need to have started our network boot environment from the console shell and have a shell prompt in front of you.

You can pick all the default options by simply typing:


InstallMeADedicatedServer --hostname=<hostname>.dh.bytemark.co.uk

The script will then confirm some installation details:


Initialising...

<hostname>.dh.bytemark.co.uk
----------------------------

 Distribution    : squeeze
 Imager          : imager3.bytemark.co.uk
 Net IPV4 gateway: 80.68.87.1
 Net IPv4        : 80.68.87.61/24
 RAID            : RaidHP
 RAID level      : raid10
 Root password   : 8dbSEnx6DeTW

Continue? (y/N) >

The IP address and other details should be automatically filled in for you, so you only generally need to tell it the hostname. Also the system will default to installing Debian/squeeze – I’ll go through some other options in a second.

If you confirm by typing ‘y’ the system will have its drives wiped and the new OS installed within about 5 minutes. The process looks like this:


Configuring RAID...
Building filesystems:
  /dev/sda1...
  /dev/sda2...
Mounting filesystems...
Requesting image...
Imaging system... 
Executing post-install script... 
Installing boot loader...
Installation of squeeze complete in 150 seconds.
Uploading hardware manifest for tracking purposes: audit 80.68.87.61/24

At this point you can type “reboot” and the system will start with the new image.

Choosing Your Distribution

In the previous example we didn’t specify a distribution to install, so the imager defaulted to the latest release of Debian GNU/Linux (lenny at the time of writing).

If you wish to specify a different distribution you should make use of the
—dist parameter. This specifies the distribution you would like
to be installed. You can call InstallMeADedicatedServer
—distributions
on its own to see the list of distributions available -
at the time of writing this is:


 Available distributions for architecture amd64:

 [*] squeeze            Debian 6.0 (64 bit)
     centos-6.3         CentOS 6.3 (64 bit)
     precise            Ubuntu 12.04 (64 bit)
     wheezy             Debian 7.0 (64 bit)
     symbiosis          Symbiosis 6.0 (64 bit)
     centos-5.8         CentOS 5.8 (64 bit)

Advanced Usage

So far, this usage doesn’t differ from what you can do using the simple method . However there are various extra features that you can invoke:

Architecture

Almost all of our dedicated servers are 64-bit capable systems, and the installer will default to a 64-bit installation.

If you want to force a 32-bit installation you can add:


 --arch i386

Network configuration

Normally, the installer will take the network boot system’s current IP address as its permanent one for installations. If this is not correct (usually only if you have your own VLAN) you can specify the network parameters precisely:


 --ip x.x.x.x --gateway x.x.x.x --netmask x.x.x.x --broadcast x.x.x.x

Advanced partitioning

Normally the installer will make one small partition for /boot, and use the rest of the disc for the root (/). There are two ways of overriding this. We would recommend using the:


 --lvm=partition

option which tells the installer to allocate the normal /boot partition, then only a 15GB root partition, and to use the rest of the disc for LVM. When the system has installed, you can them use the normal LVM tools to carve up the rest of the disc dynamically.

On Premium hosts it is also possible to allocate a second logical volume that is then used for LVM. This is only really useful where the total disc capacity is greater than 2TB, beyond the limit for traditional partition tables.


  --lvm=logicalvolume

If you want the root partition to be a size other than 15GB (20GB, for example), you can specify that with the option:


  -root-size=20GB

Alternatively, you can do the partitioning and filesystem creation completely in advance. Once you have created your partitions, create a directory called /tmp/target and mount your root and boot filesystems onto it. You then need to tell the installer which partitions you are using, and where you would like the boot-loader to be installed, for example:


 --mounted --root-disc=/dev/sda --boot-dev=/dev/sda1 --root-dev=/dev/sda2

This tells it to skip the disc setup entirely, and trust you. Obviously if you’ve made any mistakes in partitioning, it may not complete.

Other options

While there are some other options listed, they are really only for debugging purposes, so only use at the risk of a badly set-up system, or if instructed by Bytemark support.

Selected tags
  • Backup [X]
More tags (see all)

“Thanks a million for your help and support this afternoon in diagnosing and fixing the timeout issues we were experiencing - since your latest intervention and update we've not seen a single request fail and the platform appears quite stable ... I'm incredibly grateful for the willingness, speed and skill by which you rolled up your sleeves and dived in to fix the issues.”

Paul Thompson
IMP Media

Control Panel

A 4GiB dedicated server with RAID1 for £69.00 per month - control and isolation for less!

Premium Dedicated Premium Dedicated

Our premium dedicated servers, built to order by HP, will deliver the highest possible uptime.

Built by handBuilt by hand

Because we build our servers by hand, you get high power, low cost, and excellent build quality.