Office in 100 cars, or the story of how I transferred the server from Windows to Centos 7. Prolog

It was 5 years ago, a good friend called me (may Irina be) and asked me to work as system administrators in the central accounting department of our city. I asked for a list of the duties of this employee, to which I received an answer that drove me into a stupor:
The system administrator must come to the workplace every morning, restart the server, bypass the girls and solve their problems with the programs. It is also necessary to monthly draw up a report on the work done.

I immediately decided to refuse, because I did not want to lose my time, and hung up. The evening passed in thought of the correctness of my decision and the reasons why the former employee jumped and restarted the server every morning.

image

The next morning began violently. I just got out of the shower and was about to drink, when suddenly the doorphone rang. Irina came with a cake and right from the doorway began to convince me that I needed this work, and she needed me as a system administrator. After a heated discussion about my responsibilities at this workplace, I still agreed to run this enterprise.

Then I just leave the conditions on which I agreed to work
My responsibilities:
  • Every morning, come to the workplace and restart the server
  • Go around girls and solve their problems with programs
  • Monthly report on the work done.
  • Monitor the performance of the server and the local network, timely troubleshoot.
  • Solve the problems of girls associated with programs and hardware as they become available.
  • Be in touch at any time of the day or night.
  • Implement the innovations imposed by the senior management.

My rights:
  • After the reporting period from May 1 to May 31, I do not appear at work and do not pick up the phone.
  • I do not appear at work if everything works.
  • Girls do not contact me directly with problems, but paint them according to my template and send them to the post office.

PS: Official employment, salary 8,000 rubles per month, free lunch and tea.

First work day


On my first working day I decided to be late and informed in advance that I would come by 9:00. It was summer and the weather was great. I left the house and calmly went towards the Central Bank .

Upon arrival at the workplace, I first went to Irina, since she was the director of this institution. First of all, she took me to my workplace and showed me the whole front of work. The only phrase when demonstrating my workplace was:
There in the corner is our server. Here it also needs to be rebooted every morning.

Looking around the locker, I realized the whole essence of being. The size of the room was approximately 8 m 2 . It was no longer a server room, but a warehouse. Everything was littered with boxes, old iron, New Year's toys and tinsel. Somewhere in the corner, scattered with boxes from under the office chairs, I saw a server. He barely puffed his blades, trying to blow out the dust mattresses accumulated over the years of work in this room.

First of all, I began to rake up the rubble in the room and study what the server was like.

Information about the iron. Centos 6 is already spinning on it, therefore, the display of information is presented in this form.
[root@m1 google]# dmidecode
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
        Manufacturer: Gigabyte Technology Co., Ltd.
        Product Name: GA-8S661FXM-775
        Version: x.x
        Serial Number:
Handle 0x0004, DMI type 4, 35 bytes
Processor Information
        Socket Designation: Socket 775
        Type: Central Processor
        Family: Celeron
        Manufacturer: Intel
        ID: 41 0F 00 00 FF FB EB BF
        Signature: Type 0, Family 15, Model 4, Stepping 1
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Celeron(R) CPU
        Voltage: 1.3 V
        External Clock: 133 MHz
        Max Speed: 4000 MHz
        Current Speed: 2533 MHz
        Status: Populated, Enabled
        Upgrade: Socket 478
        L1 Cache Handle: 0x0009
        L2 Cache Handle: 0x000A
        L3 Cache Handle: Not Provided
        Serial Number:
        Asset Tag:
        Part Number:
Handle 0x0005, DMI type 4, 35 bytes
Processor Information
        Socket Designation: Socket 775
        Type: Central Processor
        Family: Unknown
        Manufacturer: Unknown
        ID: 00 00 00 00 00 00 00 00
        Version: Intel(R) Celeron(R) CPU
        Voltage: 3.3 V
        External Clock: 133 MHz
        Max Speed: 4000 MHz
        Current Speed: 2533 MHz
        Status: Populated, Disabled By User
        Upgrade: Socket 478
        L1 Cache Handle: 0x000A
        L2 Cache Handle: 0x000B
        L3 Cache Handle: Not Provided
        Serial Number:
        Asset Tag:
        Part Number:
Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A0
        Bank Connections: 1 2
        Current Speed: Unknown
        Type: DIMM SDRAM
        Installed Size: 1024 MB (Double-bank Connection)
        Enabled Size: 1024 MB (Double-bank Connection)
        Error Status: OK
Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A1
        Bank Connections: 3 4
        Current Speed: Unknown
        Type: DIMM SDRAM
        Installed Size: 256 MB (Single-bank Connection)
        Enabled Size: 256 MB (Single-bank Connection)
        Error Status: OK
Handle 0x001A, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0019
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 1024 MB
        Form Factor: DIMM
        Set: None
        Locator: A0
        Bank Locator: Bank0/1
        Type: Unknown
        Type Detail: None
        Speed: 400 MHz
        Manufacturer:
        Serial Number:
        Asset Tag:
        Part Number:
Handle 0x001B, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0019
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 256 MB
        Form Factor: DIMM
        Set: None
        Locator: A1
        Bank Locator: Bank2/3
        Type: Unknown
        Type Detail: None
        Speed: 400 MHz
        Manufacturer:
        Serial Number:
        Asset Tag:
        Part Number:

What is what and where?


On the first day after cleaning, I did not have enough strength to find out what kind of trouble the server was and why it was still alive. On the second day, I connected a monitor, keyboard and mouse to it. To my surprise, there was Windows Server 2003.

This machine took over the following functions:


Goosebumps ran down my back from what I saw. At that time, I knew a little linux and used only the MOPS Linux distribution . By that time, it was no longer supported and I decided to try CentOS .

From the corpses in the workplace, I assembled a work platform and began to explore the capabilities of CentOS. This was new to me, but I quickly got used to it and after 2 months the new server started working. The Parus database was killed and access to the database was carried out only locally on the director’s computer, the 1C server was transferred to a powerful computer and a third-party company began to support it.

On the new server, I ran:

  • DHCP server
  • Ejabberd server
  • Proxy Server Squid
  • File sharing on Samba and ESET to filter infection

Subsequently, I cleared all the rubble in the closet and assembled the rack from the profile. I did not appear again. After a year of work, Irina called me and said that the post of system administrator was being reduced and she was very pleased to work with me.

Conclusion


Two months ago, Irina called me again and said that they had been assigned a static IP address under ViPNet Coordinator and they needed help setting up my server. As at the beginning of the story, I decided to refuse, since I no longer worked at this enterprise, and any work should be paid.

A month ago, a telephone conversation took place again. This time it was reported that the workplace would soon be opened to me, the salary would be doubled and the conditions would remain the same. This time I agreed, but on condition that I get up part-time and my brother the second part.

My own reasons prompted me to continue cooperation:

  • I can use a static IP address for my personal purposes.
  • Extra money will always be welcome.
  • I will help my brother gain working experience. He is still a student.
  • There is a great desire to transfer the server to new hardware.

This article is the beginning of a series of articles in which I will describe in detail the procedure for starting a server on CentOS 7 for a small office with 100 machines.

Thanks for attention


Also popular now: