The invention provides a cluster
file system of a
database. The cluster
file system of the
database comprises a shared storage module, a distributed lock management module, a striped
metadata layout module, a distributed block allocation strategy module and a lock
granularity optimization module. The striped
metadata layout module is configured to generate striped
metadata in the creation stage of the file and persist the striped metadata to
inode metadata of the file, and the striped metadata records the total number of stripes of the file and the block initial address of each stripe; the distributed block allocation strategy module is configured to allocate each strip to a predefined
block group or block area in the shared storage module according to the strip number of the file, so as to complete the block allocation of the data to be allocated; and the lock
granularity optimization module is configured to construct an independent strip sub-lock for each strip on the basis of the
inode file lock of the distributed lock management module, each strip sub-lock independently controls a block area covered by the strip sub-lock, and parallel access of multiple nodes or multiple processes to different strips of the same file is realized.