For good or bad I have decided to migrate my existing Hetzner dedicated server to an identical one at Hetzner that is €11 cheaper a month.

Since I'm getting to start from scratch Im going to correct a few things I mis-setup last time, The first being to turn off the software RAID and add both disks to LVM for a single useable 5.5TB volume. I realise that most would recommend against this as it leaves me open to hardware failure, however this isnt a production server and the entire thing will be backed up to a RAID5 NAS.

Rambling aside the first job was to ssh into the Hetzner rescue system and run the system installer.



Select Virtualization from the list

installimage main screen

Then select the version of Proxmox (I chose Proxmox - Wheezy)

installimage main screen

Once Proxmox has been selected you will need to edit the config script to turn off software raid and use LVM rather than the default partitions. Change your config script to look like this:

# Hetzner Online AG - installimage
# This file contains the configuration used to install this
# system via installimage script. Comments have been removed.
# More information about the installimage script and
# automatic installations can be found in our wiki:

DRIVE1 /dev/sda
DRIVE2 /dev/sdb
HOSTNAME Proxmox-VE.localdomain
PART /boot  ext3     512M
PART lvm    vg0       all
LV vg0   swap  swap      swap         8G
LV vg0   root   /        ext4         all
IMAGE /root/.oldroot/nfs/install/../images/Debian-70-wheezy-64-minimal.tar.gz

Press f10 to exit and save your changes. The install will then begin, once it finishes you will be returned to the command prompt, just reboot the server and reconenct via ssh.

Our next task is to setup the second physical disk and add it to the LVM

Setup the partition table using gdisk:


gdisk /dev/sdb
  Command (? for help): o #create a new empty GUID partition table (GPT)
  This option deletes all partitions and creates a new protective MBR.
  Proceed? (Y/N): Y

  Command (? for help): n #add a new partition
  Partition number (1-128, default 1): 1
  First sector (34-2047, default = 34) or {+-}size{KMGTP}:
  Last sector (34-2047, default = 2047) or {+-}size{KMGTP}:
  Current type is 'Linux filesystem'
  Hex code or GUID (L to show codes, Enter = 8300): 8e00 #This is Linux LVM

  Command (? for help): w #write table to disk and exit

  Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

  Do you want to proceed? (Y/N): Y

Now we just want to add the new space to LVM


#Add a new Physical Volume to LVM
pvcreate /dev/sdb1
#Extend the Volume Group onto the new Phiyscal Volume
vgextend vg0 /dev/sdb1
#Add the new free space to our root Logical Volume
lvextend -l +100%FREE /dev/vg0/root
#Extend the file system to the new space
resize2fs /dev/mapper/vg0-root


Linking a Philips Hue Bridge with a Living Colors Remote

TLDR; Hold both the On button and the scene 1 button on the remote while near the bridge performs some kind of reset that isnt the same a...… Continue reading

Diablo 2 Private Realm Address Translation

Published on January 14, 2015