IP Library › Granted Patent US 11,270,734
Granted Patent B2
US 11,270,734 · App. 16/890,642 · Granted Mar 8, 2022

Method for accessing shingled magnetic recording SMR disk, and server

Inventors: Qingchao Luo (Shenzhen, CN); Lei Zhang (Shenzhen, 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 11,270,734
App. No.
16/890,642
Granted
Mar 8, 2022
Kind
B2
Abstract

A method for a server to access a shingled magnetic recording (SMR) disk 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 and 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.

Claims (37)

1. A method for accessing a hard disk, the method comprising:

receiving, by a server, a data write request comprising target data and address information of the target data, wherein the hard disk includes multiple storage zones;

identifying, by the server, according to the address information, a target storage zone from the multiple storage zones;

retrieving, by the server, write pointer information of the target storage zone directly from a cache of the server, such that the server does not need to send an open zone instruction to the hard disk to obtain the write pointer information, wherein the write pointer information is address information of latest stored data in the target storage zone;

instructing, by the server, the hard disk to store the target data based on the write pointer information;

receiving, by the server, a completion write request with updated write pointer information;

storing, by the server, the updated write pointer information into the cache; and

retrieving, by the server, the updated write pointer information from the cache without sending an open zone instruction and a report zone instruction to the hard disk for a next read or write operation.

2. The method according to claim 1 , further comprising:

determining, by the server, whether an address of the target data exceeds a write pointer of the target storage zone.

3. The method according to claim 1 , further comprising:

determining, by the server, that a quantity of cached records in the cache of the server has reached an upper limit value;

marking, by the server, a cached record in the cache of the server as an invalid cache record; and

removing, by the server, the invalid cache record from the cache of the server.

4. A server, comprising

a communications bus;

a cache coupled to the communications bus; and

a processor coupled to the communications bus and configured to:

receive a data write request comprising target data to be stored into a hard disk and address information of the target data, wherein the hard disk includes multiple storage zones;

identify, according to the address information, a target storage zone from the multiple storage zones;

retrieve write pointer information of the target storage zone directly from the cache, such that an open zone instruction does not need to be sent to the hard disk to obtain the write pointer information, wherein the write pointer information is address information of latest stored data in the target storage zone;

determine whether an address of the target data is greater than and contiguous with a write pointer of the target storage zone;

in response to the address of the target data being not greater than or not contiguous with write pointer of the target storage zone, return an error;

in response to the address of the target data being greater than and contiguous with the write pointer of the target storage zone, instruct the hard disk to store the target data based on the write pointer information; and

receive a completion write request with updated write pointer information.

5. The server according to claim 4 , wherein the processor is further configured to store the updated write pointer information into the cache.

6. A non-transitory computer-readable medium having processor-executable instructions stored thereon for accessing a hard disk, wherein the processor-executable instructions, when executed, facilitate:

receiving, by a server, a data write request comprising target data and address information of the target data, wherein the hard disk includes multiple storage zones;

identifying, by the server, according to the address information, a target storage zone from the multiple storage zones;

retrieving, by the server, write pointer information of the target storage zone directly from a cache of the server, such that the server does not need to send an open zone instruction to the hard disk to obtain the write pointer information, wherein the write pointer information is address information of latest stored data in the target storage zone;

determining, by the server, whether an address of the target data is greater than and contiguous with a write pointer of the target storage zone;

determining, by the server based on whether the address of the target data is greater than and contiguous with the write pointer of the target storage zone, between whether to return an error and whether to instruct the hard disk to store the target data based on the write pointer information, wherein in case the address of the target data is not greater than or is not contiguous with the write pointer of the target storage zone, the server determines to return an error, and wherein in case the address of the target data is greater than and contiguous with the write pointer of the target storage zone, the server determines to instruct the hard disk to store the target data based on the write pointer information; and

based on the determination of whether to return an error or whether to instruct the hard disk to store the target data based on the write pointer information, returning, by the server, an error or instructing, by the server, the hard disk to store the target data based on the write pointer information.

7. The non-transitory computer-readable medium according to claim 6 , wherein the processor-executable instructions, when executed, further facilitate:

after completion of storing the target data, receiving, by the server, a completion write request with updated write pointer information.

8. The non-transitory computer-readable medium according to claim 7 , wherein the processor-executable instructions, when executed, further facilitate:

storing, by the server, the updated write pointer information into the cache.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 31, 2022
From: LUO, QINGCHAO; ZHANG, LEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 058826/0234 →
Priority Claims (1)
CN 201610113108.0 · Feb 29, 2016 · national
Continuity (3)
Continuation 16114412 · Aug 28, 2018
Continuation PCTCN2017072992 · Feb 6, 2017
Related Publication 20200294548A1 · Sep 17, 2020