The application provides a Lustre
file system write
processing method and device, the method comprising: in response to a write
data request initiated by an
application layer for a target file, detecting whether an accelerated write condition is met; if the detection result is yes,
copying to-be-written data to a preset cache area in a kernel state of a Lustre
client and returning write success to the
application layer, applying a distributed write lock corresponding to a file offset range of the to-be-written data to a
metadata service by using a background thread, and after holding the lock, writing the to-be-written data in batches into a
page cache; if the detection result is no, writing the to-be-written data into the
page cache page by page, including applying a distributed write lock corresponding to a file offset range of the page data to the
metadata service by using a background thread, and after holding the lock, writing the page data into the
page cache; and persistently storing data in the page cache to an
object storage server. Compared with related technologies, the application avoids multiple lock applications and improves data write efficiency.