Good day, dear Habrayuzer!
I was preparing this post for the Day of the sysadmin, but did not have time and missed the moment. So, our dear sysadmin, with the holiday that passed you, this indicative story will surely be familiar to each of you.
So, the story is written from the words of a sysadmin, who suddenly became the owner of a whole “zoo”.
A couple of years ago, I worked as an administrator on a permanent basis and was surprised at how a visiting employee could perform such work. The situation changed dramatically when the crisis ruined my company. All began to save hard, and finding a new permanent job was not easy. Therefore, as a temporary measure, I became one of those whom I recently treated condescendingly - the incoming administrator in a pair (and then the top three) of small firms. Each of them paid a little bit, so my irregular visits were in the order of things ... until the next turning point.
Once I decided to postpone the planned visit to one of the companies, because the routine could wait, but there was no urgent business expected. The next time, the first phrase of the chief accountant, said instead of a greeting, was an unexpected remark: “And we managed to do it without you!”. Then she told me about the always-off mobile phone, at the same time remembered all the little things that had accumulated and was about to leave, but I stopped her and asked her to explain the situation.
It turned out that over the past week the management decided to open two new departments at once and as soon as possible. All the furniture and computers have already been purchased for them. I was then amused by the thought that the chief accountant considers computers to be a kind of interior items. When she showed me the contract, the humor seemed black.
The documents did not describe in detail the configuration of the purchased computers. Everywhere only their general characteristics were indicated, such as the “MidiTower case with ATX b / n”. But the total amount was very impressive. Apparently, taking advantage of the illiteracy of the customer, the supplier decided to sell everything that lay in the warehouses. “Well, they bought it, okay,” I thought. “Not for my money.”
However, a week later, many surprises awaited me, and there were no pleasant ones among them. Brought computers "did not turn on" - so I was told on the phone in the morning. The reason turned out to be simple: none of them had an operating system installed. All computers came pristine clean under the contract.
Upon arrival at the office, I became an unwitting participant in the growing conflict. The director is tearing and throwing, the chief accountant looks like a beaten dog, and one of the newly minted department heads has a natural panic. Just last week, newly hired employees began to take shape to him, and their jobs were not yet equipped. Almost immediately, the entire leadership rushes to me and requires "to do everything right."
I explain to them that the equipment purchased without me. I did not participate in her choice. To turn this pile of hardware into hardware for two departments, you must first install operating systems, drivers, updates and various software for each one. In LAN to combine them - the same time is required. I am ready to do all this, but for the appropriate payment, of course.
We spent almost the whole day discussing the problem. Director and chief accountant tried to blame the supplier for deception. According to naivety, the management believed that all computers are sold “with Windows, Word and Wi-Fi”. I hardly explained the real situation to them and offered to buy everything I needed: network equipment, software licenses, etc.
When we calculated the additional costs, first the director’s passion was extinguished, and then mine. Buy software cost almost as much as they already spent on computers. Installing and setting up all computers would take, at best, a week and a half. So much nobody could wait.
During the break, I had an idea: to set up one computer, and then just clone it to others. Then it all seemed like a good thought, and they gave me a green light. Until the evening I was busy with the installation, updates and settings on the first computer.
The next day, armed with a "clonzilla", I had a premonition of a quick triumph, but it was not there! The full disk image was successfully recorded on the second comp, but it did not turn on again. The system partition was not seen at boot. I tried to do cloning by other programs - the same thing. Perform deployment over the network - do not see the built-in network card, and only in some computers. Dismantled a couple of them and ... let's say, very surprised.
Have you ever played the find the ten differences game? So, here there were more than ten differences. In fact, only the shells were the same. Everything else is different. Motherboards, processors, drives ... In some instances they even put a simple SSD on 100 - 128 MB instead of a hard disk. In general, the zoo, and only. In addition, the BIOS settings, although everywhere were defaulted, differed from each other in essence. For example, in some SATA ports were in AHCI mode, and in others - native / compatible. It is clear that by simple cloning the problem cannot be solved here.
Already anticipating the huge front of handmade work, I climbed onto the forums in search of at least some clue to reduce routine operations. Googled about different ways of deploying from images, installation options over the network - it was all wrong. One of the articles came across a mention of the fact that Acronis Snap Deploy is able to perform cloning in a heterogeneous environment. That is, you can make a clone of one computer and deploy it on the second, third, etc., and even with a different hardware.
I downloaded the trial version, made a trial deployment. Happened! I tried again - success again! However, after the next lively machine, the program required a full-featured version license. Looked at how much the license cost. Buy them all cars turned out cheaper than the cost of one computer. Convinced of the need to purchase the director. Glavbukh no longer resist. Updated to full versions and continued deployment.
Of course, it was not easy at all - I had to delve into the settings, look for drivers, set up a PXE server and do a lot of other things, but all this was the little things of the preparatory stage. Having penetrated once and having prepared the image of the reference system, it was possible to quickly and safely deploy it (almost) on anything - at least ten times, at least ten thousand.
As a result, the estimated week and a half of manual labor turned into two days of control of the most automated operations. New employees did not have time to change their minds, but I remained the administrator on a permanent basis and now I read training webinars on backup and data protection.
Findings:
1) We all know that the work of the administrator is such that we have to deal with different “circus / zoo” from users, the main thing is not to give up and look for the right solutions to problems, there is always a way out, in my practice this has been confirmed;
2) Any routine process can be automated - do not be lazy to google and learn new practices;
3) Cloning speeds up the commissioning of typical jobs;
4) The deployment procedure can be performed on “bare iron” and even on different equipment;
5) Deployment can be performed from bootable media or via a PXE server;
6) The required settings on each computer can be set both before and after deployment.
Here you can listen to my webinars on backup and data protection .
Source: https://habr.com/ru/post/307014/
All Articles