Method for moving data extent
First Claim
1. A computer program stored in a computer-readable storage medium, wherein the computer program executes a method for moving an extent when the computer program is executed by one or more processors of a computing device, the method comprising:
- deciding, by the one or more processors, movement of an extent stored in a first disk in a disk space in which the disk space includes at least two disks;
determining, by the one or more processors, that there is a writing work for the extent when there is a transaction sequence number of a worker thread less than or equal to a transaction sequence number of the extent mapping information by comparing the transaction sequence number of the extent mapping information and the transaction sequence number of the worker thread;
switching, by the one or more processors, the worker thread performing the writing work for the extent to a sleep state when there is the writing work for the extent;
changing, by the one or more processors, a state of the extent to read-only in the extent mapping information when there is no writing work for the extent;
moving, by the one or more processors, the extent positioned in the first disk to a second disk; and
updating, by the one or more processors, the extent mapping information based on completion of the movement of the extent.
2 Assignments
0 Petitions
Accused Products
Abstract
Disclosed is a computer program stored in a computer readable medium according to an exemplary embodiment of the present disclosure. The computer program performs the following method for moving an extent when being executed by one or more processors of a computing device and the method may include: deciding, by the processor, movement of an extent stored in a first disk in a disk space in which the disk space includes at least two disks; determining, by the processor, whether there is writing work for the extent based on extent mapping information for the extent; changing, by the processor, a state of the extent to read-only in the extent mapping information when there is no writing work for the extent; moving, by the processor, the extent positioned in the first disk to a second disk; and updating, by the processor, the extent mapping information based on completion of the disk movement of the extent.
-
Citations
11 Claims
-
1. A computer program stored in a computer-readable storage medium, wherein the computer program executes a method for moving an extent when the computer program is executed by one or more processors of a computing device, the method comprising:
-
deciding, by the one or more processors, movement of an extent stored in a first disk in a disk space in which the disk space includes at least two disks; determining, by the one or more processors, that there is a writing work for the extent when there is a transaction sequence number of a worker thread less than or equal to a transaction sequence number of the extent mapping information by comparing the transaction sequence number of the extent mapping information and the transaction sequence number of the worker thread; switching, by the one or more processors, the worker thread performing the writing work for the extent to a sleep state when there is the writing work for the extent; changing, by the one or more processors, a state of the extent to read-only in the extent mapping information when there is no writing work for the extent; moving, by the one or more processors, the extent positioned in the first disk to a second disk; and updating, by the one or more processors, the extent mapping information based on completion of the movement of the extent. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method for moving an extent, which is performed by one or more processors of a computing device, the method comprising:
-
deciding, by the one or more processors, movement of an extent stored in a first disk in a disk space in which the disk space includes at least two disks; determining, by the one or more processors, that there is a writing work for the extent when there is a transaction sequence number of a worker thread less than or equal to a transaction sequence number of the extent mapping information by comparing the transaction sequence number of the extent mapping information and the transaction sequence number of the worker thread; switching, by the one or more processors, the worker thread performing the writing work for the extent to a sleep state when there is the writing work for the extent; changing, by the one or more processors, a state of the extent to read-only in the extent mapping information when there is no writing work for the extent; moving, by the one or more processors, the extent positioned in the first disk to a second disk; and updating, by the one or more processors, the extent mapping information based on completion of the movement of the extent.
-
-
11. A computing device comprising:
-
one or more processors; and memory storing commands executable in the one or more processors, wherein the one or more processors is configured to; decide movement of an extent stored in a first disk in a disk space in which the disk space includes at least two disks, determine that there is a writing work for the extent when there is a transaction sequence number of a worker thread less than or equal to a transaction sequence number of the extent mapping information by comparing the transaction sequence number of the extent mapping information and the transaction sequence number of the worker thread, switch the worker thread performing the writing work for the extent to a sleep state when there is the writing work for the extent, change a state of the extent to read-only in the extent mapping information when there is no writing work for the extent, move the extent positioned in the first disk to a second disk, and update the extent mapping information based on completion of the movement of the extent.
-
Specification