Redundant server on Linode?
I have had my linode up for some time now using gentoo. I am not an expert and make lots of mistakes. I am running a server for a few websites one of which needs to be up 100% of the time but do to some dumb mistakes I have downed the server and not been able to recover it for a couple of days. This has happened to me twice already when I do an emerge -Davu world and the restart my server.
I'd like to have a way where I can update and test patches without affecting my online server. Is there any way I can do this on linode? If so what are my alternatives?
3 Replies
@fifo:
I'd like to have a way where I can update and test patches without affecting my online server. Is there any way I can do this on linode? If so what are my alternatives?
When I previously used Gentoo/Linode I kept a i686 chroot'ed Gentoo environment on my home machine that I was fairly well synchronised with the state of my Linode.
I was then performed emerge {sync,update}; tweaked the package files; built all the required binary packages; uploaded them; and then upgraded the Linode with the uploaded binary packages.
You could I suppose, if you have a 1Gb to spare, set up a Gentoo chroot on your Linode (unpack a stage 3 tarball, then mount a shared portage tree from your primary Gentoo). Update the chrooted Gentoo (while building tarballs) and watch for stuff that breaks.
When everything has upgraded satisfactorily in the chroot, do an emerge -uv world in your primary Gentoo and hopefully everything will install smoothly from the binary packages in the shared portage tree.
A third alternative (I used this as a workaround for hanging emerge syncs, blocking packages and things): I moved my Linode to Debian. There are plenty of other binary-based distros to choose from if you prefer others. Regular updates will then take minutes, not hours or days – and as rule: upgrades won't break things.
HTH,
Cliff
PS. A dhcp client (you referred to this in a separate post) is required to create eth0. See:
Then you can set up your own UML working on your PC, test every change you want to do previously in LAB environment.
I now have it this way, and that's my best advice.
HAPPY NEW YEAR!