Hosting your own services: my experiences with 2 dedicated server hosts

Ipwn 4

Expert Member
Joined
Nov 6, 2010
Messages
1,938
Reaction score
226
to give you some background: we have extensive infrastructure for various services that we offer hosted all over the show, from collocation to dedicated servers and cloud services mixed in our business occupies:

6 data centers in South Africa
3 continents
13 ISPs

if we add in the infrastructure which we manage on behalf of clients I cannot think of a ISP/datacenter which is not used which gives a pretty good idea of what the service looks like from the various companies.

In the past 2 weeks we experienced an identical issue on 2 dedicated servers hosted with 2 different local hosts. In both cases we had a drive fail inside a RAID 1 config resulting in the server not booting, this is how things went down:

Host 1: they have HOST in their name
@5pm we noticed a drop in performance to the point where we could not access the server so we initiated a reboot, the server never came back up. At that point we opened a ticket requesting that someone go to the rack and investigate what is happening (their 1st line do not have access to iDrac/console access) so the wait began. @11pm after much shouting we find out that the server is not booting as a result of a grub issue...

at that point we asses our situation and see that our last backup is 2 days old which is not ideal so we opt to try and save the server. This is when host 1 informs us that they no longer have anyone available to join us at the datacenter (after they took 6 hours to read an error message from the screen). After more shouting they make a plan to have someone go onsite which one of our engineers.

Onsite the drive failure is confirmed though can only be addressed the next morning when someone else is available to look at the issue. That means a min of 14 hours downtime and at that point someone else will only start to look into the issue, pretty devastating if this server hosts something at the core of your business (looking at the many guys on here who have shared hosting businesses on the sideline).

Host 2
We receive a notification @6pm (this happened 1 week prior to host 1's failure) that a host has gone down, all of the servers from this host include console access so someone hops on and finds Windows stuck on a startup repair. Within minutes the server is online in safe mode and the tech finds that a drive has failed. As a result he logs a ticket with the host who dispatches someone to the DC, he is there in <30min and proceeds to swop out the drive and connect an external drive (one of their own) to the server in case we need to do a quick backup.

within <2hours the drive is replaced and our work is done to get the server back online.

Also, we ended up migrating data from host 1 to host 2 after their blunder, host 2 arranged access to the datacenter with ease to allowing us to migrate the data from the failed server with host 1.

What should you learn from this?

- make sure you have console access to asses a non booting server.
- make sure you have access to your host's datacenter 24 hours a day (even if it comes at a cost) as migrating large volumes of data is still quicker with a HDD.
- make sure your host keeps spares onsite, at some point you will need a RAM module/Hard drive in the early hours of the morning/on a public holiday when ordering a replacement part is not an option.
- if the redundancies below sound like french to you you really need to a get someone involved who can assist with the management of your servers. Many of these things don't cost that much and there are cases where smarter design of your infrastructure with redundancy can be cheaper...

Finally and I cannot stress this enough!!
Make sure you have a documented DR plan/redundancies in place for everything that is even mildly important. This makes any outage a breeze to deal with as there is a documented process of what needs to be done. The server we had with host 1 is a mail server, our redundancies include the following:

- secondary servers to catch incoming mails, these kick in the moment the primary server goes down.
- offsite backups (though not up to date) allow us to restore usernames and passwords for email accounts to another server, once smtp.domain.com is pointing to the fail over server users can send mails again. They won't be receiving anything but at this point they probably won't notice as mails are going out.
- once we decided to fail over we had functioning backups ready to go. We still needed to recover the data which was created after the backup so keeping the gaps between your backups as small as possible is key. The mails received from the moment the server failed were delivery back from the secondary servers.

Host 2 hosts our monitoring system which is replicated to another DC, fail over when you have a replica 15min behind is a breeze. 2 clicks and you are back online.
 
For sure, i get what you saying here, but seriously how did a single drive failure in a RAID1 array bring down the servers? Are you using software RAID?

We have often had drive failures in mirror, just swop the drive and pretend nothing happened.
 
For sure, i get what you saying here, but seriously how did a single drive failure in a RAID1 array bring down the servers? Are you using software RAID?

We have often had drive failures in mirror, just swop the drive and pretend nothing happened.

I am also wondering this, I can't understand how a single drive failure in a raid 1 will down your server.
We have hotswapped many _many_ hard drives in raid 1 over the years and the only issue we have had was on 1 server which suffered a 2nd drive failure on the rebuild. Other than that, the new drive has rebuilt and life has gone on. The servers aren't even brought down during this rebuild.
 
correct, SW raid in both cases. In host 1's case grub was not present on both drives (the 1st drive failed prior to the second one so when stuff went pear shaped we had 2 faulty drives).

Host 2 Windows wasn't happy, it wasn't down 100% but it was limping along.
 
- make sure you have access to your host's datacenter 24 hours a day (even if it comes at a cost) as migrating large volumes of data is still quicker with a HDD.

Some service providers can only access their equipment during work hours?
 
correct, SW raid in both cases. In host 1's case grub was not present on both drives (the 1st drive failed prior to the second one so when stuff went pear shaped we had 2 faulty drives).

Host 2 Windows wasn't happy, it wasn't down 100% but it was limping along.

The next time you have the issue you had with host 1, boot off a live cd.

Create /mnt/system
Mount the drive with the data on /mnt/system along with all the other partitions like /boot in /mnt/system/boot
Then run
# mount --bind /dev /mnt/system/dev
# mount --bind /proc /mnt/system/proc
# chroot /mnt/system /bin/bash
# grub-install /dev/sdX
# grub-install --recheck /dev/sdX
# exit

Then umount everything from /mnt/system and reboot your server.
It should now boot up off the remaining drive mirror.
 
to give you some background: we have extensive infrastructure for various services that we offer hosted all over the show, from collocation to dedicated servers and cloud services mixed in our business occupies:

6 data centers in South Africa
3 continents
13 ISPs

if we add in the infrastructure which we manage on behalf of clients I cannot think of a ISP/datacenter which is not used which gives a pretty good idea of what the service looks like from the various companies.

In the past 2 weeks we experienced an identical issue on 2 dedicated servers hosted with 2 different local hosts. In both cases we had a drive fail inside a RAID 1 config resulting in the server not booting, this is how things went down:

Host 1: they have HOST in their name
@5pm we noticed a drop in performance to the point where we could not access the server so we initiated a reboot, the server never came back up. At that point we opened a ticket requesting that someone go to the rack and investigate what is happening (their 1st line do not have access to iDrac/console access) so the wait began. @11pm after much shouting we find out that the server is not booting as a result of a grub issue...

at that point we asses our situation and see that our last backup is 2 days old which is not ideal so we opt to try and save the server. This is when host 1 informs us that they no longer have anyone available to join us at the datacenter (after they took 6 hours to read an error message from the screen). After more shouting they make a plan to have someone go onsite which one of our engineers.

Onsite the drive failure is confirmed though can only be addressed the next morning when someone else is available to look at the issue. That means a min of 14 hours downtime and at that point someone else will only start to look into the issue, pretty devastating if this server hosts something at the core of your business (looking at the many guys on here who have shared hosting businesses on the sideline).

Host 2
We receive a notification @6pm (this happened 1 week prior to host 1's failure) that a host has gone down, all of the servers from this host include console access so someone hops on and finds Windows stuck on a startup repair. Within minutes the server is online in safe mode and the tech finds that a drive has failed. As a result he logs a ticket with the host who dispatches someone to the DC, he is there in <30min and proceeds to swop out the drive and connect an external drive (one of their own) to the server in case we need to do a quick backup.

within <2hours the drive is replaced and our work is done to get the server back online.

Also, we ended up migrating data from host 1 to host 2 after their blunder, host 2 arranged access to the datacenter with ease to allowing us to migrate the data from the failed server with host 1.

What should you learn from this?

- make sure you have console access to asses a non booting server.
- make sure you have access to your host's datacenter 24 hours a day (even if it comes at a cost) as migrating large volumes of data is still quicker with a HDD.
- make sure your host keeps spares onsite, at some point you will need a RAM module/Hard drive in the early hours of the morning/on a public holiday when ordering a replacement part is not an option.
- if the redundancies below sound like french to you you really need to a get someone involved who can assist with the management of your servers. Many of these things don't cost that much and there are cases where smarter design of your infrastructure with redundancy can be cheaper...

Finally and I cannot stress this enough!!
Make sure you have a documented DR plan/redundancies in place for everything that is even mildly important. This makes any outage a breeze to deal with as there is a documented process of what needs to be done. The server we had with host 1 is a mail server, our redundancies include the following:

- secondary servers to catch incoming mails, these kick in the moment the primary server goes down.
- offsite backups (though not up to date) allow us to restore usernames and passwords for email accounts to another server, once smtp.domain.com is pointing to the fail over server users can send mails again. They won't be receiving anything but at this point they probably won't notice as mails are going out.
- once we decided to fail over we had functioning backups ready to go. We still needed to recover the data which was created after the backup so keeping the gaps between your backups as small as possible is key. The mails received from the moment the server failed were delivery back from the secondary servers.

Host 2 hosts our monitoring system which is replicated to another DC, fail over when you have a replica 15min behind is a breeze. 2 clicks and you are back online.

Sounds like Kermit's DC on Sesame Street. What kind of environment are you hosting in? Are you using a facility like Teraco or are you using a host that uses a facility like Teraco? Or is it a MTN/Afrihost type setup or a company owned and operated "data center".
 
Last edited:
The next time you have the issue you had with host 1, boot off a live cd.

Create /mnt/system
Mount the drive with the data on /mnt/system along with all the other partitions like /boot in /mnt/system/boot
Then run
# mount --bind /dev /mnt/system/dev
# mount --bind /proc /mnt/system/proc
# chroot /mnt/system /bin/bash
# grub-install /dev/sdX
# grub-install --recheck /dev/sdX
# exit

Then umount everything from /mnt/system and reboot your server.
It should now boot up off the remaining drive mirror.

Almost exactly what solved the grub issue only to be greeted with a kernel panic. At that point there was no point wasting more time with the server as fail over had taken place.

Same, I'd also like to know who host 2 is.

Hetzner

Sounds like Kermit's DC on Sesame Street. What kind of environment are you hosting in? Are you using a facility like Teraco or are you using a host that uses a facility like Teraco? Or is it a MTN/Afrihost type setup or a company owned and operated "data center".

as per the OP, we have services all over the show which isn't relevant to a thread about experiences with dedicated server hosts. Many people have <10 dedicated servers and might not have their own racks in place (hetzner's pricing as an example makes more sense not to...) which is why I wanted to share what one should look at rather then simply saying host x > host y
 
Sounds like Kermit's DC on Sesame Street. What kind of environment are you hosting in? Are you using a facility like Teraco or are you using a host that uses a facility like Teraco? Or is it a MTN/Afrihost type setup or a company owned and operated "data center".

also, just to add to this bit: there is nothing wrong with hosts like that, many of the guys who sublet a few u's in their racks typically will have 24 hour support (we deal with a WISP who does this). We only need 3u and they want to fill their rack so it becomes a win-win for both parties.

Limiting yourself to only hosting with companies who have their name on the door isn't the best bet. The guys reselling collocation typically will have value added services which in some cases might make more sense then paying for a half rack when you don't need all that space.

Some service providers can only access their equipment during work hours?

The key isn't whether they can access it, it is whether you can 24/7 which eliminates all the little waste of time hosts who won't be there when you need it.
 
also, just to add to this bit: there is nothing wrong with hosts like that, many of the guys who sublet a few u's in their racks typically will have 24 hour support (we deal with a WISP who does this). We only need 3u and they want to fill their rack so it becomes a win-win for both parties.

Limiting yourself to only hosting with companies who have their name on the door isn't the best bet. The guys reselling collocation typically will have value added services which in some cases might make more sense then paying for a half rack when you don't need all that space.



The key isn't whether they can access it, it is whether you can 24/7 which eliminates all the little waste of time hosts who won't be there when you need it.

OK, but did you not just say that the owned and operated (Hetzner) data center gave better service? Or maybe I did not read right.

Anyway I always find the whole "office hours" data centers in SA comical. When you host overseas, a data center is seen as a mission critical service. The people are available 24/7. But in SA yeah well you know it was after hours and no one was available.
 
Anyway I always find the whole "office hours" data centers in SA comical. When you host overseas, a data center is seen as a mission critical service. The people are available 24/7. But in SA yeah well you know it was after hours and no one was available.

5pm, Ons Gaan Nou Braai.
 
Somehow I knew that before you named them.
Always had great service - and more importantly quick service from them.

They seriously do not get enough credit. I think it is mainly due to how much their control panel sucks for shared hosting resulting on people opting for companies that use CPanel.
 
Always had great service - and more importantly quick service from them.
Agreed. One of my TruServ servers died very early this morning and they were on the phone to me before I even realized it was down. They said they have a technician in the data centre, is it OK if he restarts the server for me? Less than 5 minutes later everything was back up and running happily.
 
Top
Sign up to the MyBroadband newsletter
X