A data storage method, wherein the method is applied to a computing device, comprising: obtaining S to-be-stored stripes, wherein each of the S stripes comprises (M+N) chunks, the (M+N) chunks comprise M data chunks and N parity chunks, and S, M, and N are positive integers; determining, in the S stripes, chunks written in one batch, wherein a quantity of chunks that are in the chunks written in one batch and that belong to a same stripe is less than or equal to N, wherein the chunks written in one batch include chunks simultaneously written to M+N storage devices; and respectively writing the chunks written in one batch to the M+N storage devices, wherein if each storage device buffers a maximum of K chunks, where K is greater than 1, the chunks written in one batch is (M+N)*K chunks, and K chunks in the chunks written in one batch correspond to one storage device, and wherein K chunks in the chunks written in one batch are written to a storage device corresponding to the K chunks and the chunks written in the same batch correspond to K write moments; wherein after the respectively writing the chunks written in one batch to M+N storage devices, the method further comprises: if a power failure event is detected, obtaining a first chunk and a second chunk in the S stripes, wherein the first chunk is a chunk that has not been written to the M+N storage devices yet, and the second chunk is a chunk that has been persistently stored in the M+N storage devices; and recovering data of a lost chunk in the S stripes based on the first chunk and the second chunk, wherein the recovering comprises, detecting, based on the first chunk and the second chunk, whether each of the S stripes is complete, if a chunk in any stripe is lost, obtaining a remaining chunk in the stripe from the first chunk and the second chunk and recover the lost chunk in the stripe based on the remaining chunk in the stripe by using a RAID algorithm or a EC algorithm. obtaining S to-be-stored stripes, wherein each of the S stripes comprises (M+N) chunks, the (M+N) chunks comprise M data chunks and N parity chunks, and S, M, and N are positive integers; determining, in the S stripes, chunks written in one batch, wherein a quantity of chunks that are in the chunks written in one batch and that belong to a same stripe is less than or equal to N, wherein the chunks written in one batch include chunks simultaneously written to M+N storage devices; and respectively writing the chunks written in one batch to the M+N storage devices, wherein if each storage device buffers a maximum of K chunks, where K is greater than 1, the chunks written in one batch is (M+N)*K chunks, and K chunks in the chunks written in one batch correspond to one storage device, and wherein K chunks in the chunks written in one batch are written to a storage device corresponding to the K chunks and the chunks written in the same batch correspond to K write moments; wherein after the respectively writing the chunks written in one batch to M+N storage devices, the method further comprises: if a power failure event is detected, obtaining a first chunk and a second chunk in the S stripes, wherein the first chunk is a chunk that has not been written to the M+N storage devices yet, and the second chunk is a chunk that has been persistently stored in the M+N storage devices; and recovering data of a lost chunk in the S stripes based on the first chunk and the second chunk, wherein the recovering comprises, detecting, based on the first chunk and the second chunk, whether each of the S stripes is complete, if a chunk in any stripe is lost, obtaining a remaining chunk in the stripe from the first chunk and the second chunk and recover the lost chunk in the stripe based on the remaining chunk in the stripe by using a RAID algorithm or a EC algorithm. if a power failure event is detected, obtaining a first chunk and a second chunk in the S stripes, wherein the first chunk is a chunk that has not been written to the M+N storage devices yet, and the second chunk is a chunk that has been persistently stored in the M+N storage devices; and recovering data of a lost chunk in the S stripes based on the first chunk and the second chunk, wherein the recovering comprises, detecting, based on the first chunk and the second chunk, whether each of the S stripes is complete, if a chunk in any stripe is lost, obtaining a remaining chunk in the stripe from the first chunk and the second chunk and recover the lost chunk in the stripe based on the remaining chunk in the stripe by using a RAID algorithm or a EC algorithm.