IBM Server Migration Part #4

Web Server Sep 21, 2018

In this part I want to have most viral services up and running on the final hardware.

Debian, RAID-1, HTTPS, Docker

Installing Debian 9.5 was as easy as always. One additional step that I learned was software RAID. The install script (text mode!) is very easy to use to I manage to setup everything with no problems.

Apache2 + Let's Encrypt SSL using cert-bot. That part was also straightforward. I still don't know how to make this work with Docker containers (Ghost in particular). But this is something for part #5 :)

Once the Docker-CE was installed. Bringing back all the containers was as easy as it can be. I copied the old volumes (mapped to /home/domain) and all docker services were online as before. This was the fastest migration ever.

Creating configs/folders/ownerships for Apache is easy but time consuming (as I needed to change my old .conf files). This part will take more time but I will remove any not needed sites in the process.

Dockerize All The Things!

Containers are the future.

Docker containers

Apache domains use ProxyPass for ports 8080-8087. Most of the sites are online. There are still lot of * subdomains waiting for resurrection.

Recovery Scenario

I was able to recover all databases and configs for docker sites. I fixed a lot of mistakes in my recovery scenarios. And I already tested them on living organism. I don't have backups configured yet. But RAID-1 covers my ass.


With new drives I have a lot of free space. With whole Debian 9.5 and dockers it only takes 6.6GB so far :)

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           396M  6.2M  390M   2% /run
/dev/md0        222G  6.6G  204G   4% /
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           396M     0  396M   0% /run/user/1000

Less than 1GB memory is used. And the CPU is mostly at 1-3%.

$ neofetch 
       _,met$$$$$gg.          kj@p1x-ibm 
    ,g$$$$$$$$$$$$$$$P.       ---------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 9.5 (stretch) x86_64 
 ,$$P'              `$$$.     Model: IBM System x3250 -[436442G]- IBM CORPORATION 
',$$P       ,ggs.     `$$b:   Kernel: 4.9.0-8-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 22 hours, 26 minutes 
 $$P      d$'     ,    $$P    Packages: 701 
 $$:      $$.   -    ,d$$'    Shell: bash 4.4.12 
 $$;      Y$b._   _,d$P'      CPU: Intel Xeon 3040 (2) @ 1.8GHz 
 Y$$.    `.`"Y$$$$P"'         GPU: AMD Advanced Micro Devices, Inc. ES1000 
 `$$b      "-.__              Memory: 978MB / 3954MB 
   `Y$$.                      ████████████████████████ 

What's Missing?

I still have few things to add. Syncthing, automatic backups, offline backups, subdomains, load monitoring, UPS alerts.


Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.