File Server Automatic Bad Sector Recovery

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current file server technologies face challenges in automatic recovery from bad sector media errors in disk arrays, leading to prolonged recovery times and the need for manual intervention by system administrators.

Innovation Solution

A method is implemented to automatically respond to bad sector media errors by unmounting the affected file system, scanning for bad sectors, re-vectoring logical addresses to good sectors, checking for file system consistency, and remounting the file system once consistent, thereby reducing recovery time and notifying administrators of impacted file systems or directories.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual recovery procedures are used for bad sector media errors, then system administrators can restore backup copies and replay transaction logs, but recovery time is prolonged and manual intervention is required

Engineering Contradiction:
Improvedata recovery capabilityVSAvoidrecovery time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system automatically detects bad sector media errors, identifies affected file systems and directories, restores data from backup copies, and replays transaction logs without requiring manual administrator intervention. The error handling routine continuously monitors disk drives and autonomously executes the complete recovery process, including mounting file systems, detecting errors, restoring data, and remounting file systems.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system maintains backup copies and transaction logs in advance, so when a bad sector media error occurs, the recovery process can immediately use these pre-prepared resources. The transaction log records all changes since the last backup, enabling rapid recovery by simply replaying the logged transactions rather than performing complex data reconstruction.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If complete file system restore is performed, then all data is recovered, but recovery time increases significantly

Engineering Contradiction:
Improvedata integrityVSAvoidrecovery time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

Instead of restoring the entire file system, the system extracts and restores only the specific data affected by the bad sector media error. The error handling routine identifies the precise file system and directory containing the bad sector, restores only those affected files from backup copies, and replays only the relevant transaction log entries, dramatically reducing recovery time while maintaining data integrity.

Inventive Principle:
Principle #2Taking out (Extraction)

3Loss of time

If automated error handling is implemented, then recovery time is reduced, but system complexity increases

Engineering Contradiction:
Improverecovery timeVSAvoiderror handling system complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The error handling routine combines multiple functions into a single integrated automated process: error detection, file system identification, backup restoration, transaction log replay, and file system remounting. This unified approach reduces the need for separate manual operations and simplifies the overall system architecture while achieving rapid automatic recovery.

Inventive Principle:
Principle #5Merging (Combining)

4Reliability

If system administrators manually restore backup copies, then data can be recovered, but administrator workload increases

Engineering Contradiction:
Improvedata recoveryVSAvoidadministrator workload
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The system autonomously performs the complete data recovery process without requiring administrator intervention. The error handling routine automatically detects bad sector errors, identifies affected file systems, restores data from backup copies, replays transaction logs to reconstruct lost data, and remounts file systems - entirely eliminating the manual workload previously required from system administrators.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS7890796B2Automatic media error correction in a file server
Publication Date: 2011.02.15 EMC IP HLDG CO LLC
  • US7890796B2 patent drawing
  • US7890796B2 patent drawing
  • US7890796B2 patent drawing

AI summary

File systems possibly impacted by a bad sector in a disk drive are unmounted. Then the disk drive is scanned in order to identify additional bad sectors, and for each identified bad sector, a logical address of the bad sector is re-vectored to a good sector. An attempt is made to restore the data of each bad sector, and then the file system is checked for consistency. If a bad sector cannot be restored, any application relying on the bad sector is aborted. Once the file system is found to be consistent, the file system is remounted. Re-vectored blocks are reverse mapped to identify damaged or repaired directories and files. Damaged or repaired directories and files are reported to a system administrator, and damaged directories or files of a client are reported to the client.