中文

server room power outage 8 hour recovery complete

2026-10-22
server room power outage 8 hour recovery complete

A real server room power outage recovery process: UPS battery ageing only supports 8 minutes, 20 server sets off, Sangfor EDS power out protection saves data, 8 hours resumes all operations.

server room power outage 8 hours to resume the process and the pits on which it is.

Early in the morning, 3:07, the cell phone pops up to alarm: server room Temperature abnormal. Three minutes later, the second warning was: EDS storage node 3 offline. Then the avalanche alarm -- all 15 virtual machines are off the grid, and cores network switch is off the grid. Hit phone to his duty colleague, who said that the outside municipal construction had cut off the cable and the entire building was out of power.

This is the true record of an accident that Shenzhen built itself in server room. 20 table server, 1 set Sangfor EDS distributed storage (3 node), UPS has been operation 4 years. It takes time from power out to full business recovery, 5 hours. The following is a time-line reduction of the entire process, including lessons learned from clearance, recovery and after-action.

03:00 power outage instant

Municipal construction cut the cable and municipal electricity was cut off. UPS begins the discharge. This UPS design is normally renewed for 30 minutes and is sufficient to support the elegant shut-off of IT equipment. However, UPS battery has been running 4 year unreplaced, and battery capacity is in severe decline. The actual discharge was only 8 minutes, and voltage fell below the threshold, UPS inverter was shut down, and all the equipment was cut.

What happened in this 8 minute? Nothing. server room does not have a UPS alert to the UPS switcher script, and UPS does not have any automatic manoeuvres during the discharge. 8 minutes later the device was powered out, equal to the extraction of power supply.

03:15 has arrived at the scene.

operations and maintenance personnel arrived and saw a black spot. Emergency lights are on, server all quiet. first It's not a move to press. power supply Keys , It's a physical examination. : Is the air conditioner still there? operation ( The air conditioner's gone. utility power It's not. UPS, It's stopped. ), rack cabinet Temperature Is it rising? ( It's not too much for a short time. , But in the summer, hold on. )。

And then we start to check the state of the device:

EDS storage : 3 nodes, nodes 1 and nodes 2 power supply signal went out and the hard drive nodes 3 were activated with oranges - this was triggered by the power outage protection mechanism of EDS. Nodes 3 It's been detected. voltage Unusual times automatic Switch Hard Disk To read-only Status , Prevent unusual writing of damaged data 。 This mechanism saves the data.

server : All 20 physics machines were disabled, including 6 running MySQL database server, 4 applying server, 2 running virtualization (on 15 virtual machines above), and several Network security devices.

Network : core switch is not configured for preservation - this is a common pit, running-config is not write to startup-config and has been lost after power cuts.

03:30 starting recovery.

The restoration order follows a principle: storage before calculation, cores after peripheral.

Step one. : Restore EDS storage 。 1 and 2 start with power supply and normal guidance. Node 3 requires manual intervention: enter EDS management interface, restore the hard drive from read-only to read/write and then trigger data consistency verification. The verification mechanism for EDS will automatically fix inconsistent blocks by comparing the copies of data for 3 nodes. The verification took approximately 40 minutes and did not find any data damage - the power outage protection mechanism worked.

If that's right.Sangfor EDS Distribution storageThe reliability mechanism is very interested in seeing the scene decompose, with EDS in a variety of malfunctions.

Step two: Rehabilitating the network. When cores network switch is on, it is found that the configuration is missing and can only be restored from backup configuration. Fortunately, the operations and maintenance team has regular backup configuration habits, the last backup two weeks ago. Reconstitutes configuration, network switch is activated, route and VLAN resumes. However, the two-week configuration changes (a few new ACL rules) need to be filled manually.

04:00 virtualization Platform Restore

storage and Network are ready to resume the virtualization platform. Calculates that node is powered, login vCenter (or hyperconverged infrastructure management platform), and all 15 virtuals are shown as "unusual shutdowns".

Open from one stage to the next according to operational priorities : - 04:00 Start first. MySQL Main Library Virtual Machine , Inspection InnoDB Restore Log , Confirm data consistent Sex - 04:10 and up MySQL From Library , Waiting for the Lord to pursue it from sync - 04:20 and up Redis Cluster , Check for Endurance Files - 04:30 Start Application server , Authentication on a case by case basis service Connectivity - 05:00 cores All operational systems are active. , Here we go. Functions Authentication

MySQL It's... InnoDB We'll meet when the engine's off. automatic Do crash recovery. , Pass. redo log Redo unfinished business 。 This recovery took about 3 minutes and no data was lost. If MyISAM is a table, the index may need to be manually repaired. Suggest cores business InnoDB, not MyISAM.

06:00-08:00 Validation and Closure

cores After business recovery , The flowers. two hours Make full validation. : User Login 、 Order process 、 Report Export 、 File Upload Download , Every one Functions Let's go. one All over. 。 A hidden problem was found: the persistent data of the news queue service (RabbitMQ) damaged a queue during the abnormal shutdown, resulting in a backlog of information. Return to normal after the manual reconstruction parade.

08:00, all operations validated and external service returned to normal. Total 5 hours from power outage to full recovery.

List of lessons learned (specific and operational)

Following the accident, we carried out a double-check with the client, with specific improvements listed:

UPS battery 3 must be replaced. This UPS battery operation 4 is not changed, and the 30 minutes is designed to continue only 8 minutes. The life of UPS battery is associated with the number of chargers and Ambient temperature, server room is normal for years 25-30 ° C, and capacity declines to 60-70% after battery 3. It is recommended that 3 be replaced by a mandatory year, with no waiting year 4. Switch. battery Cost approximation 2000-5000 CNY, Compared to one Second stop. 5 hours Business losses , Unvalueable one Tide 。

Municipal Electro-Turkage + Generator. One-way city electricity was the cause of the accident. If server room has a double-circuit market power coming from different transformers, it's cut off from the other. A diesel generator is added to the budget and the municipal power is automatically activated at full-time break. For the budget list for the Shenzhen server room construction programme, reference may be made to this section, which contains detailed configurations and quotations for the server room power supply system.

save immediately following network switch configuration change. This pit is too common. Every time you change the network switch configuration, you do write memory or copy running-config startup-config, 5 seconds, you save the time for re-establishing the hours configuration after the power cuts.

UPS to alert the Police Union to switch off. UPS should trigger the automatic shutdown script at the time of discharge: turn off the virtuals (elegably off) and then off the physics machines. vSphere Yes vSphere DPM and HA ..association interface , hyperconverged infrastructure There's a platform. API。 When configured, UPS automatically shut down the system during the discharge, much safer than the hard cut.

The EDS power outage protection strategy needs to be prepared in advance. This time. EDS Nodes 3 It's... read-only Protection mechanisms play a key role , But it's a strategy for deployment. 。 If not, node 3 may continue to write when voltage is unstable and damage data. EDS must be deployed with power outage protection: voltage anomaly automatic read-only detected, the last line of defense for data security.

Emergency response SOP. 15 minutes before the accident was the most critical. Who gets there, who gets in charge of what, who contacts who, what does the first step -- these should be written in SOP and posted at the server room doorway. This time operations and maintenance personnel were in the correct order of operation (checking the environment before checking storage storage ZOOOOOOOOOO) but More was experienced, not because of SOP

After-action improvements

After the accident, one The following modifications were completed within the month: :UPS battery Replace All ( Cost 3500 CNY), Add one 10kVA Diesel generators ( Cost estimate 4 ten thousand ), core switch Configure Daily automatic backup Present. TFTP server , virtualization Platform Configuration UPS Link-off strategy 。 The total investment was about 5 million, in exchange for the next blackout.

server room infrastructure assessment or EDS power outage protection configuration, contact Huanan Tengfei Technology, we provide server room inspection, UPS testing and storage security policy configuration service.

Related Content