IP Library Patent Application 13718814
Patent Application
App. No. 13/718,814

METHOD AND APPARATUS FOR IMPLEMENTING PROTECTION OF REDUNDANT ARRAY OF INDEPENDENT DISKS IN FILE SYSTEM

Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US None
App. No.
13/718,814
Abstract

Embodiments of the present invention disclose a method and an apparatus for implementing protection of RAID in a file system, and are applied in the field of communications technologies. In the embodiments of the present invention, after receiving a file operation request, the file system needs to determine the type of a file to be operated as requested by the file operation request, and perform file operations in a hard disk drive of the file system directly according to a file operation method corresponding to the determined file type, that is, a RAID data protection method. Therefore, corresponding file operations may be performed in a proper operation method according to each different file types, and data of an important file type is primarily protected, thereby improving reliability of data storage.

Claims (24)

1 . In a file system of one or more computers, a method for implementing protection of a redundant array of independent disks (RAID), comprising:

receiving a file operation request;

determining a type of a file to be operated as requested by the file operation request, wherein the type of the file comprises at least one of file metadata and file data;

selecting a file operation method according to the determined file type, wherein the file operation method is a RAID data protection method; and

performing file operations on one or more hard disk drives according to the selected file operation method.

2 . The method according to claim 1 , wherein the file operation method selected according to the determined file type is a multi-mirroring redundant algorithm if the determined file type is the file metadata, and the file metadata is backed up with multiple copies and storing the multiple copies in at least two hard disks according to the multi-mirroring redundant algorithm.

3 . The method according to claim 1 , wherein the file operation method selected according to the determined file type is a data protection method of RAID 5 if the type of the file is the file data, and the file operations are performed on the one or more hard disk drives by:

determining locations of the file data in a data strip according to offset locations of the file data in the file operation request; and

writing the file data to the one or more hard disk drives according to the determined locations of the file data.

4 . The method according to claim 1 , wherein the file operation method selected according to the determined file type is a data protection method of RAID 5 if the type of the file is the file data, and the file operations are performed on the one or more hard disk drives by:

determining locations of the file data in a data strip according to offset locations of the file data in the file operation request; and

reading the file data from the one or more hard disk drives according to the determined locations of the file data.

5 . In a file system of one or more computers, a computer program product comprising a computer readable medium having stored thereon computer executable instructions that when executed implement the following steps for implementing protection of a redundant array of independent disks (RAID):

receiving a file operation request;

determining a type of a file to be operated as requested by the file operation request, wherein the type of the file comprises at least one of file metadata and file data;

selecting a file operation method according to the determined file type, wherein the file operation method is a RAID data protection method; and

performing file operations on one or more hard disk drives according to the selected file operation method.

6 . The computer program product according to claim 5 , wherein the file operation method selected according to the determined file type is a multi-mirroring redundant algorithm if the determined file type is the file metadata, and the file metadata is backed up with multiple copies and storing the multiple copies in at least two hard disks according to the multi-mirroring redundant algorithm.

7 . The computer program product according to claim 5 , wherein the file operation method selected according to the determined file type is a data protection method of RAID 5 if the type of the file is the file data, and the file operations are performed on the one or more hard disk drives by:

determining locations of the file data in a data strip according to offset locations of the file data in the file operation request; and

writing the file data to the one or more hard disk drives according to the determined locations of the file data.

8 . The computer program product according to claim 5 , wherein the file operation method selected according to the determined file type is a data protection method of RAID 5 if the type of the file is the file data, and the file operations are performed on the one or more hard disk drives by:

determining locations of the file data in a data strip according to offset locations of file data in the file operation request; and

reading the file data from the one or more hard disk drives according to the determined locations of the file data.

Assignments (2)
CHANGE OF NAME Recorded Dec 8, 2014
From: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LIMITED
To: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) CO. LIMITED.
Reel/Frame 034537/0210 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 18, 2012
From: WEI, MINGCHANG; ZHANG, WEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 029495/0768 →