Data operation method and device
First Claim
1. A data operation method comprising:
- sending, by a client, a first message to a storage device corresponding to an unmodified data strip, the storage device being one of a plurality of storage devices that each stores one data strip of a data stripe and the first message comprising a new version number and an old version number of the data strip that does not need to be modified;
receiving, by the storage device, the first message;
comparing the old version number with a version number stored in the storage device for the unmodified data strip;
updating, by the storage device, the version number stored in the storage device for the unmodified data strip to the new version number when the old version number is consistent with the version number stored in the storage device for the unmodified data strip in the storage device;
sending, by the storage device to the client, a second message indicating a version number mismatch when the old version number is inconsistent with the version number stored in the storage device for the unmodified data strip;
sending, by the client to the storage device, the unmodified data strip and the new version number to the storage device in response to receiving the second message;
storing, by the storage device, the unmodified data strip and the new version number and to perform a version number update with respect to the unmodified data strip.
2 Assignments
0 Petitions
Accused Products
Abstract
A data operation method and device, relate to the storage field is presented. The data operation method and device can implement, during modification of a data strip in a storage device, data sending and receiving performed only for a storage device that requires modification. Other irrelevant storage devices do not consume a disk throughput and traffic, thereby reducing a disk throughput and usage of a network resource, that is, reducing a write penalty. A client sends both new and old version numbers to a storage device corresponding to a data strip that does not need to be modified, so that the corresponding storage device compares a version number of the data strip stored by the storage device with the old version number sent by the client. When the two version numbers are consistent, the version number in the storage device is updated to the received new version number.
-
Citations
14 Claims
-
1. A data operation method comprising:
-
sending, by a client, a first message to a storage device corresponding to an unmodified data strip, the storage device being one of a plurality of storage devices that each stores one data strip of a data stripe and the first message comprising a new version number and an old version number of the data strip that does not need to be modified; receiving, by the storage device, the first message; comparing the old version number with a version number stored in the storage device for the unmodified data strip; updating, by the storage device, the version number stored in the storage device for the unmodified data strip to the new version number when the old version number is consistent with the version number stored in the storage device for the unmodified data strip in the storage device; sending, by the storage device to the client, a second message indicating a version number mismatch when the old version number is inconsistent with the version number stored in the storage device for the unmodified data strip; sending, by the client to the storage device, the unmodified data strip and the new version number to the storage device in response to receiving the second message; storing, by the storage device, the unmodified data strip and the new version number and to perform a version number update with respect to the unmodified data strip. - View Dependent Claims (2, 3)
-
-
4. A data operation system comprising:
-
a plurality of storage devices, each storage device storing one data strip of a data stripe, a data operation device coupled to the storage devices and being configured to send a first message to a selected one of the storage devices that corresponds to an unmodified data strip, the first message comprising a new version number and an old version number of the unmodified data strip; the selected storage device being configured to; receive the first message; compare the old version number with a version number stored in the storage device for the unmodified data strip; update the version number stored in the storage device for the unmodified data strip to the new version number when the old version number is consistent with the version number stored in the storage device for the unmodified data strip; and send a second message indicating a version number mismatch to the data operation device when the old version number is inconsistent with the version number stored in the storage device for the unmodified data strip; the data operation device being further configured to send the unmodified data strip and the new version number to the storage device in response to receiving the second message; and the storage device being further configured to store the unmodified data strip and the new version number and to perform a version number update with respect to the unmodified data strip. - View Dependent Claims (5, 6)
-
-
7. A data operation apparatus, comprising:
-
a memory storing instructions; and a processor coupled to the memory and configured to execute the instructions to; send a first message to a first storage device, the first message relating to an unmodified data strip stored in the first storage device and comprising a new version number and an old version number of the unmodified data strip; receive a second message from the first storage device in response to the first message, the second message indicating the old version number is inconsistent with a version number stored in the first storage device for the unmodified data strip; and send the unmodified data strip and the new version number of the unmodified data strip to the first storage device in response to the second message. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A data operation apparatus, comprising:
-
a memory storing instructions; and a processor coupled to the memory and configured to execute the instructions to; receive a first message, the first message relating to an unmodified data strip stored in the data operation apparatus, the first message comprising a new version number and an old version number of the unmodified data strip; compare the old version number in the first message with a version number stored in the storage device for the unmodified data strip; update the version number stored in the storage device for the unmodified data strip to the new version number when the old version number is consistent with the version number stored in the storage device for the unmodified data strip; send a second message when the old version number is not consistent with the version number stored in the storage device for the unmodified data strip; receive the unmodified data strip and the new version number of the unmodified data strip; and store the unmodified data strip and the new version number of the unmodified data strip. - View Dependent Claims (13, 14)
-
Specification