The invention discloses a data writing method and a related device, and relates to the technical field of
data processing, the method receives an
external data writing request, only provides a logic position of to-be-written data, utilizes a
metadata server to centrally manage file mapping, prevents each data
server from independently maintaining a data copy, and improves the data writing efficiency. And the introduction of the
data fragment ID allows the data to be decoupled into manageable fragments, so that the initial
data transmission quantity and the size of a transmission unit are reduced. Data to be written are blocked to obtain data blocks to be written, data block names are set for the data blocks to be written,
network communication is shared among the data servers, an independent link does not need to be maintained for each data
server, the data blocks of the data blocks to be written are only sent to the distributed data servers instead of all the data servers, concurrent repeated data streams are eliminated, and the
data processing efficiency is improved. The
network congestion risk is reduced, and each data server only stores the required data of the data block to be written, so that the
utilization rate of storage resources of the data server is improved.