Archive for the ‘Servers’ Category

Migrate/convert existing full CentOS 6 server to LXC container

Sunday, October 11th, 2015

“Containerization is a great thing!” Ok, great. So, what now? How do I containerize my servers?

Converting whole servers that served more than single purpose goes against main reason for containerization: using dedicated containers for each service and thus eliminating package (and other) dependency conflicts. But sometimes your whole servers (or VMs) need to be containerized for various reasons: they were already used for single purpose, or services on them are enough unimportant and consume very little resources and thus moving HW (or VM) server to container just makes sense from resource conservation’s point of view.

Recently I was tasked with containerizing CentOS 6 host. Below follow steps I did to make it work.

cPanel EasyApache YUM error: couldn’t create autoTLSkey mapping

Saturday, August 15th, 2015

If you ever encounter this error while running EasyApache (v3) on cPanel server:

This is the solution:

I have a hunch that was is IPv6 related, but can not confirm it ATM. Funny thing though: If I ran the exact same command in the shell by copy-pasting it and prepending it with “yum “, it worked flawlessly.

Linux software RAID: Devices renamed after reboot

Tuesday, September 9th, 2014

How to avoid?

Use –metadata=0.90 when creating the array.

Keep in mind though that if you move the array to another machine which already has an array with the same name, one of those will be renamed and AFAIK you can not know in advance (except if you study the autodetection part of Linux kernel.