monochromatic

monochromatic blog: http://blog.z3bra.org
git clone git://z3bra.org/monochromatic
Log | Files | Refs

im-back-up.txt (2679B)


      1 # [I'm back up !](#)
      2 ## — 05 August, 2014
      3 
      4 In the past few days, my whole server (and thus, my website) was down.
      5 
      6 Everything is now back to it's normal state, so I'll give you a quick
      7 explanation about what happened.
      8 
      9 ### TL;DR
     10 Quickly, here's what happenned (the whole process took approximately 2 weeks):
     11 
     12 1. Changed distribution
     13 2. Changed hardware
     14 3. Realised new hardware is broken
     15 4. Bought new hard drive
     16 5. Fallback to old hardware
     17 6. Reinstalled distribution
     18 
     19 ### I'm sorry
     20 As you can imagine, I did not plan such a long downtime. It was, at first, only
     21 a matter of 2 or 3 days, but ended up being almost 2 weeks. So first of all,
     22 please accept my apologizes.
     23 
     24 ### The situation
     25 Now, let me tell you what happened. Some relatives gave me an old PC they were
     26 not using anymore. It had a dual core and 2GB of RAM !!
     27 
     28 So I decided it was time for my old server to retire a bit, and by the time, to
     29 change the distribution powering it. I settled on
     30 [alpinelinux](http://alpinelinux.org), a fairly light and fast distribution
     31 powered by musl libc and busybox.
     32 
     33 The install went fine and I brought the server online again. And then, it
     34 began...
     35 
     36 ### The problem
     37     ─── ssh z3bra.org
     38 
     39              __   __
     40            /'__`\/\ \
     41      ____ /\_\L\ \ \ \____  _ __   __
     42     /\_ ,`\/_/_\_<\ \ '__`\/\`'__/'__`\
     43     \/_/  /_/\ \L\ \ \ \L\ \ \ \/\ \L\.\_
     44       /\____\ \____/\ \_,__/\ \_\ \__/.\_\
     45       \/____/\/___/  \/___/  \/_/\/__/\/_/
     46 
     47                             -- silly, isn't it ?
     48 
     49     Enter passphrase for key '/home/z3bra/.ssh/z3bra.org':
     50     ─ g ── cd ~/src/www/monochromatic
     51     ─ g ── vim last.txt
     52     ─ g ── make
     53     /bin/sh: /usr/bin/markdown: I/O error
     54 
     55 *OooOh god, what happened...?*
     56 
     57 I'd better shut it off before it goes bad...
     58 
     59     ─ g ── sudo poweroff
     60     /bin/sh: /usr/bin/sudo: I/O error
     61     ─ g ── su -c poweroff
     62     /bin/sh: /usr/bin/su: I/O error
     63 
     64 .. Too late ...
     65 
     66 By the time, I was not sure wether the problem came from the hard drive itself,
     67 or the whole mother board.  
     68 I decided to boot the drive from my old server, and I did not have any problem
     69 from it. Looks like I could only rely on my good ol' hardware.
     70 
     71 ### The solution
     72 
     73 I finally decided to buy a new hard drive, and to run it from my old
     74 hardware. The motherboard of the "*new*" one was on the end of its life,
     75 and having all my data on an USB external drive was a bit of a pain in the neck.
     76 It boots slowly, and if I'm not careful, I can just kick it and loose all my
     77 datas.
     78 
     79 I finally reinstalled alpine on the new hard drive, and finally brought the
     80 server back up !
     81 
     82 It feels good to be online !
     83 
     84 <!-- vim: set ft=markdown ts=4 et tw=80: -->