
Once having become one or another specialist in the field of IT, each of us begins to surround ourselves with all sorts of tools for work and leisure. Further, it develops into a whole range of activities for maintaining habits, an established schedule of the day, comfortable working and rest conditions. Without pretending to any uniqueness, I still wanted to share the organization of the “working” process and the rest of the lazy administrator, as a result of acquaintance with various IT fields that are close to the main activity.
Recalling the words of one university teacher: “Who is an engineer? This is lazy! Here he lies on the couch, watching television. And he wanted to switch the channel - but getting up is too lazy! “Aw, oh, his, the channels get up to switch - I'll go develop a remote control ...“. I always wanted to do something interesting and automate it as much as possible ...
So, the source data:
0. Work as a remote engineer-administrator. Server / service fleet support for software and hardware.
1. Location - a country house.
2. Gigabit Internet with redundancy (I was just always happy to help local network builders with setting up and building servers.)
3. Relatively reliable infrastructure - water, gas, electricity.
4. The desire for
peace and quiet automation for comfortable work and life.
')
Tasks:
1. Convenient organization of the workplace with the possibility of operational monitoring.
2. Necessary functionality in terms of security, speed and a wide range of tasks.
3. Energy efficiency.
4. Isolate the work environment from potential threats.
At first everything and everyone was the lot of one ordinary PC of average configuration - here you can find work, entertainment and a web server. Round-the-clock work, especially in the living room, didn’t suit me or the household. There was a desire to do everything "once and for a long time." Many options have been tried - several PCs for different tasks in different places, Remote Desktop to a working laptop, in order to avoid all sorts of reinstallations, problems relating to hardware or the operating system. But once I tried to play with one of the virtualization systems, I realized that this would solve many problems at once. It happened just at the time when many restrictions in the free version were abolished in ESXi, so now the hypervisor was right in mini-production, for the house it was already a cannon on the sparrows
The first rake was not long in coming. When migrating with a regular tool (VMware vCenter Converter Standalone Client) of Windows 7, of course, the laptop surviving the hard drive of its own was clinched. Solution - boot disk with any registry editor, activation of the necessary drivers by editing the desired values ​​(
solution ).
How nice it was then to “treat” and decorate a slow 5-year system! The transfer of all media content, "not very necessary" programs was made, the system is compressed from 500 to 50 gigabytes. Everything was wonderful, but, of course, I immediately wanted to “quickly”. Here began thinking about, in fact, the server part. It was decided to build a system with a margin, making maximum use of components that have already been. The main requirement is noiselessness and performance.
So, the case - it was like this: INPC DL36 - a durable, spacious case, which perfectly suited all requirements - full-fledged motherboard size, 3U height for using full-fledged radiators and a silent power supply.
Equipment configuration:
- Tyan S7012 motherboard. 2xLGA1366, 4 network interfaces, built-in IPMI, ebay price at the time of purchase - $ 130
- 1 x Intel Xeon L5630 processor. 4x2.13GHz, TDP 40W. The second is still idle, although, as measurements have shown, it has practically no effect on reducing the average power consumption (-10W). Price 1pcs. at the time of purchase - $ 50 (ebay)
- LSI 9261-8i controller. Minimum required for full use of SSD. Measurements of iops inside virtual machines confirm this. The price at the time of purchase is $ 150 (ebay).
- Disk subsystem Here is a little nervous and yet forked. RAID1 based on 2 x Intel SSD DC S3500 Series (240GB, 2.5in SATA 6Gb / s, 20nm, MLC) + OCZ Deneva 2 480 GB for secondary tasks, nevertheless requiring a fast disk system. HDDs were simply not needed, and besides, they would be the noisiest element of the system! Measurement of IOPS was in the "margin of error" regarding the RAID performance test with direct connection, without any virtualization.

- Power unit Chieftec Smart GPS-500C. He's just silent. No chokes, no noise, absolutely.
- RAM In the current configuration, this is 3x8Gb - quite enough for current tasks and a good reserve for the future, so as not to shut down the server once again.
- Cooling Native fans were unscrewed, and Noctua NF-S12A PWM was installed on the chassis purges. The main problem of course was the cooling of the processors. It was decided to use a standard Intel STS100C radiator (Cu + Al) along with an adjustable fan (the regular fan was very noisy even at the minimum speed for starting). San Ace 80 was chosen experimentally, the adjustment is carried out using the popular step-down module based on LM2596S. By adjusting the voltage, it was possible to achieve a speed of 500-700 rpm, this is almost silent operation. This mode does not allow overheating even in hot summer, all sensor readings are within normal limits.
Plans for the transition to a fully passive CPU cooling.
Here is how it looks at this stage:

Front view, drives can be changed without shutting down the server:

Along the way, the myth of the need to regularly reboot Windows was dispelled:

So, the server is assembled, then proceed to improve the reliability within our limits. I have thought over many options for uninterrupted power supply at home in general, and the server in particular. From a dedicated UPS with the minimum power required to power the server and basic network devices to full redundancy of the entire house with a three-phase UPS. As a result of trial and error, the most adequate option was chosen - an average power UPS with a margin to power critical devices for at least 12 hours. These are the gas boiler, the server itself, the switch of the provider, the router, internal switches, video cameras, automatic gates, 12V emergency lighting, emergency sockets in the house and utility room. Adding the next most important device, a
kettle , a pumping station, greatly increases the requirements for a UPS, so if necessary, emergency supply is transferred to a gasoline generator. APC Smart-UPS 1500 is used as an uninterruptible power supply, in extreme cases - 0.75 kW of pumping station, sufficient for start-up. The battery pack is assembled from 2x120A * h batteries.

Consumption of redundant devices in normal mode:

Networking. Once again I had to make my own experience of the law - if according to the plan it is necessary to lay two cables, then four must be laid! Even without smart home systems. After various permutations the following scheme was applied. For my network implementation, the ideal router was, of course, MikroTik. Absolutely all the necessary functions for the minimum cost, with minimal power consumption. Simple setup of the local network, security of access from the outside, reservation of communication channels, additional services - a device of the class “figured out once, set up and forget”. The function of the backup low-power Wi-Fi access point, because the quality distribution is not the main task of such devices. In the role of the main wireless access point, the notorious Ruckus was ordered - set and forgotten, problems with Wi-Fi stopped once and for all.
Two uplinks from providers are checked for accessibility by priority (distance) - in case of problems with the priority provider, a switch to the reserve takes place automatically. The solution is simple, not the most reliable, but, as a rule, sufficient for the typical problems of networks in the private sector - cable breaks / lack of power supply.
Further, I would like to tell you why this was all actually started and what the result was. For each group of tasks a separate virtual machine was installed, namely:
1. The main working system based on Windows 7, the same, with difficulty and care transferred from a nicely worked laptop.
2. A separate system for financial accounting and transfer - as well, however, transferred from a netbook.
3. OS with software for video surveillance. Although completely independent systems have their own advantages - but the semi-annual experience of using a virtual machine for these purposes has shown the excellent reliability of such a solution. Video surveillance was built on the basis of Hikvision cameras and a free software server from the same manufacturer.
4. Network storage for media content (FreeNAS) - mainly for convenient file sharing between devices inside a local network and viewing photos / videos on a TV.
5. Unix server, Debian / Ubuntu, without GUI. As without a simple, trouble-free system at hand - collect statistics and display sensor readings on a web server, transcode video using ffmpeg, test scripts, etc.
6. Bonuses - once in an emergency, I even had to save a large site by pulling content from a problem raid, wrapping it in a virtual machine on the fly and transferring it to a temporary server.
To interact with the virtual environment, a PC is installed with a 23 ”monitor, which has a relatively powerful video / gaming graphics card, connected to machines via RDP or SSH. If it is completely lazy - then from a laptop, lying on the couch.
After all the settings, trial and error, we can finally say that everything works as planned! It would seem that so many little things were paid attention to - but in sum it gave a lot of time and money, namely to turn on, turn off, replace, control the entire potential fleet of home devices. Now you can concentrate more on the main activity without worrying about power cuts , falling, forgotten, stolen laptops, sprinkled hard drives and other surprises. I hope that my experience will be interesting and, perhaps, someone also motivates to apply their professional knowledge to improve the workplace at home!