Every few years (3-5) once your Hardware Guaranty expires, it’s time again to migrate your productive NetEye Server from the old Hardware to the new. This is a procedure that has to be done regularly, but unfortunately no “How To” documentation can be found for it. So today I’ll try to explain in a short blog post how I normally do this, and maybe this will help other people who have to do the same thing.
First of all you have to decide which version of NetEye you want to migrate from the OLD to the NEW hardware. It might be that the customer has a very old version of NetEye, or they’re at the other end of the scale and they’re really up-to-date. As an example, let me tell you about my decision the last time I had to migrate hardware.
My customer’s productive NetEye Server was at version 4.26, but the last installable supported version was 4.39, while the latest available version was 4.46. So I decided to install 4.39 on the new hardware, since any earlier version was no longer officially supported for new installations.
I also wanted to do some upgrades on the OLD server, and after that some upgrades on the NEW server so that I could also be certain that any updates/upgrades would continue to work on the new server, and I wouldn’t forget to migrate some files which would then give me errors on future upgrades/updates.
As you saw in the previous step, one doesn’t always have the same version on OLD and NEW Hardware, but on the NEW Hardware there could be the same or a newer version than on the productive system.
If the version is the same as on the OLD Server, you’ll have to update the NetEye Version so that all security and/or bug-fix versions of the RPM’s are installed for that version. If the version is lower, then you’ll have to update that version first and then upgrade the productive server until it’s the same version as the one you decided to install on the new hardware.
This is important since if the product data is synchronized, then that data will be correct for the version installed, and should there be any different versions installed, the program data might be incompatible, for example in databases with a changed layout.
It might be the case that the new hardware has more disks than the old server does. For example, hardware is delivered with a system disk and data disks. A system disk is typically RAID1 and data disks might be RAID5. Since the installation in the previous step is done on the system disk, you’ll now have to decide what to do with the data disk. I’ll just give you some examples, but in the end you’ll have to decide what’s best for you.
Now’s the time to create all missing “local” filesystems you need for the migration, for instance /neteye/local/mariadb or /neteye/local/elasticsearch. Also, you will most probably have to resize the already existing filesystems because they’re too small after a standard installation.
If you have only one volume group then it’s easy: you just increase the existing filesystems (look at the LV sizes on the OLD server) by using lvresise -L<new-greater-size> /dev/vg00/lv<whatever> -r, which will resize the Logical Volume and Filesystem (-r), and then create the new Logical Volumes with lvcreate and mkfs.xfs on the only vg00 volume.
If in the previous step you decided on 2 Volume Groups, then make the new “Product” Logical Volumes on the newly added Volume Group (vg01 or vgdata).
You have to follow the NetEye Installation Guide after the RAW ISO Installation until the point where you can launch neteye node register. If that went well, then try dnf update to see if you can access all NetEye and/or RedHat repositories.
After that you can download/access the RedHat and NetEye repositories. You need to take a look at what repositories are configured on the OLD Server, and install/configure them on the new one. First of all, launch the command dnf --enablerepo=neteye* repolist on the old server. Then do the same on the new server using the command subscription-manager repos --enable <repository-name-from-list> and add all missing RedHat repositories on the New Server.
Also add repositories from the OLD Server as EPEL and/or Hardware Repositories (e.g., DELL) that you added there manually. You’ll also probably need to add some RPM’s from these additional repositories later on when synchronizing RPM’s.
On new NetEye versions you’ll also have to pay attention to the RedHad Stream you are subscribed to, for example in newer versions they use 10.11 for MariaDB and 6 for Redis, and in addition some special ones for NGinx. You can check these by using the command dnf module list and comparing the versions which are on the OLD and the NEW servers.
See you next time to finish of our to-do list from above.
Did you find this article interesting? Does it match your skill set? Our customers often present us with problems that need customized solutions. In fact, we’re currently hiring for roles just like this and others here at Würth IT Italy.