IP Library › Granted Patent US 10,714,141
Granted Patent B2
US 10,714,141 · App. 16/114,412 · Granted Jul 14, 2020

Method for accessing shingled magnetic recording SMR disk, and server

Inventors: Qingchao Luo (Shenzhen, CN); Lei Zhang (Chengdu, CN)
Assignee: Huawei Technologies Co., Ltd.
G11B20/1217G06F3/061G06F3/0608G06F3/0638G06F3/0656G06F3/0676G06F12/0868G11B5/012G11B2020/1238
View Patent ↗
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 10,714,141
App. No.
16/114,412
Granted
Jul 14, 2020
Kind
B2
Abstract

A method for accessing a shingled magnetic recording (SMR) disk is provided. The method includes: receiving, by the server, a data operation request, where the data operation request includes address information of target data; determining, according to the address information, a target storage zone in the SMR disk that corresponds to the target data; determining that there is write pointer information of the target storage zone in a cache, and obtaining the write pointer information from the cache, where the write pointer information is address information of latest stored data in the target storage zone; generating a data operation instruction according to the write pointer information and the address information of the target data, where the data operation instruction is used to perform an operation on the target data; and sending the data operation instruction to the SMR disk. Embodiments of the present disclosure are applied for a server to access an SMR disk.

Claims (53)

1. A method for accessing a shingled magnetic recording (SMR) hard disk, the method comprising:

receiving, by a server, a data operation request comprising address information of target data;

determining, by the server according to the address information, a target storage zone in the SMR hard disk that corresponds to the target data;

determining, by the server, whether there is write pointer information of the target storage zone in a cache of the server;

in response to determining that there is no write pointer information of the target storage zone in the cache, determining, by the server, whether a quantity of storage zones opened in the SMR hard disk has reached a threshold;

in response to determining that the quantity of storage zones opened in the SMR hard disk has not reached the threshold, sending, by the server, an open zone instruction and a report zone instruction to the SMR hard disk;

receiving, by the server, the write pointer information of the target storage zone and storing the write pointer information in the cache, wherein the write pointer information is address information of latest stored data in the target storage zone;

generating, by the server, a data operation instruction according to the write pointer information and the address information of the target data; and

sending, by the server, the data operation instruction to the SMR hard disk for performing an operation on the target data.

2. The method according to claim 1 , wherein:

the data operation instruction is for reading the target data stored in the target storage zone; and

after receiving the write pointer information, the method further comprises: determining, by the server, whether the address of the target data exceeds a write pointer of the target storage zone.

3. The method according to claim 2 , wherein after sending the data operation instruction to the SMR hard disk, the method further comprises:

receiving, by the server, an operation success message from the SMR hard disk, wherein the operation success message comprises information about a new write pointer of the target storage zone; and

storing, by the server, the information about the new write pointer of the target storage zone into the cache.

4. The method according to claim 1 , wherein:

the data operation instruction is for writing the target data into the target storage zone; and

after receiving the write pointer information, the method further comprises: determining, by the server, whether the address of the target data is greater than a write pointer and contiguous with the write pointer.

5. The method according to claim 4 , wherein after sending the data operation instruction to the SMR hard disk, the method further comprises:

receiving, by the server, an operation success message from the SMR hard disk, wherein the operation success message comprises information about a new write pointer of the target storage zone; and

storing, by the server, the information about the new write pointer of the target storage zone into the cache.

6. The method according to claim 1 , wherein after sending the data operation instruction to the SMR hard disk, the method further comprises:

receiving, by the server, an operation success message from the SMR hard disk, wherein the operation success message comprises information about a new write pointer of the target storage zone; and

storing, by the server, the information about the new write pointer of the target storage zone into the cache.

7. The method according to claim 1 , wherein the server runs a Linux system.

8. A server, comprising

a communications bus;

a cache coupled to the communications bus;

a communications interface coupled to the communications bus; and

a processor coupled to the communications bus and configured to:

receive a data operation request comprising address information of target data;

determine, according to the address information, a target zone in a shingled magnetic recording (SMR) hard disk that corresponds to the target data;

determine whether there is write pointer information of the target storage zone in the cache of the server;

in response to determining that there is no write pointer information of the target storage zone in the cache, determine whether a quantity of storage zones opened in the SMR hard disk has reached a threshold;

in response to determining that the quantity of storage zones opened in the SMR hard disk has not reached the threshold, send an open zone instruction and a report zone instruction to the SMR hard disk;

receive the write pointer information of the target storage zone and store the write pointer information in the cache, wherein the write pointer information is address information of latest stored data in the target storage zone;

generate a data operation instruction according to the write pointer information and the address information of the target data; and

send the data operation instruction to the SMR hard disk for performing an operation on the target data.

9. The server according to claim 8 , wherein:

the data operation instruction is for reading the target data stored in the target storage zone; and

the processor is further configured to: after receiving the write pointer information, determine whether the address of the target data exceeds a write pointer of the target storage zone.

10. The server according to a claim 9 , wherein the processor is further configured to:

after sending the data operation instruction to the SMR hard disk, receive an operation success message from the SMR hard disk, wherein the operation success message comprises information about a new write pointer of the target storage zone; and

store the information about the new write pointer of the target storage zone into the cache.

11. The server according to claim 8 , wherein:

the data operation instruction is for writing the target data into the target storage zone; and

the processor is further configured to: after receiving the write pointer information, determine whether the address of the target data is greater than a write pointer and contiguous with the write pointer.

12. The server according to claim 11 , wherein the processor is further configured to:

after sending the data operation instruction to the SMR hard disk, receive an operation success message from the SMR hard disk, wherein the operation success message comprises information about a new write pointer of the target storage zone; and

store the information about the new write pointer of the target storage zone into the cache.

13. The server according to claim 8 , wherein the processor is further configured to:

after sending the data operation instruction to the SMR hard disk, receive an operation success message from the SMR hard disk, wherein the operation success message comprises information about a new write pointer of the target storage zone; and

store the information about the new write pointer of the target storage zone into the cache.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 24, 2018
From: LUO, QINGCHAO; ZHANG, LEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 047295/0659 →
Priority Claims (1)
CN 2016 1 0113108 · Feb 29, 2016 · national
Continuity (2)
Continuation PCTCN2017072992 · Feb 6, 2017
Related Publication 20180366158A1 · Dec 20, 2018