The location of this directory can be set using
directory itself is always named
nodeid is the data
node's node ID. The file system directory contains the
following files and directories:
LCP: This directory holds 2 subdirectories, named
1, each of which which contain local checkpoint data files, one per local checkpoint.
These subdirectories each contain a number of files whose names follow the pattern
Nis a table ID and M is a fragment number. Each data node typically has one primary fragment and one backup fragment. This means that, for an NDB Cluster having 2 data nodes, and with
NoOfReplicasequal to 2,
Mis either 0 to 1. For a 4-node cluster with
NoOfReplicasequal to 2,
Mis either 0 or 2 on node group 1, and either 1 or 3 on node group 2.
When using ndbmtd there may be more than one primary fragment per node. In this case,
Mis a number in the range of 0 to the number of LQH worker threads in the entire cluster, less 1. The number of fragments on each data node is equal to the number of LQH on that node times
MaxNoOfExecutionThreadsdoes not change the number of fragments used by existing tables; only newly-created tables automatically use the new fragment count. To force the new fragment count to be used by an existing table after increasing
MaxNoOfExecutionThreads, you must perform an
ALTER TABLE ... REORGANIZE PARTITIONstatement (just as when adding new node groups).
D2, each of which contains 2 subdirectories:
DBDICT: Contains data dictionary information. This is stored in:
A set of directories
T2, ..., each of which contains an
D11, each of which contains a directory named
DBLQH. These contain the redo log, which is divided into four parts that are stored in these directories. with redo log part 0 being stored in
D8, part 1 in
D9, and so on.
Within each directory can be found a
DBLQHsubdirectory containing the
Nredo log files; these are named
Nis equal to the value of the
NoOfFragmentLogFilesconfiguration parameter. The default value for
NoOfFragmentLogFilesis 16. The default size of each of these files is 16 MB, controlled by the
The size of each of the four redo log parts is
NoOfFragmentLogFiles * FragmentLogFileSize. You can find out how much space the redo log is using with
DUMP 2399; see Section 2.41, “DUMP 2398”, and Section 2.42, “DUMP 2399”, for more information.
DBDIH: This directory contains the file
P, which records information such as the last GCI, restart status, and node group membership of each node; its structure is defined in
storage/ndb/src/kernel/blocks/dbdih/Sysfile.hppin the NDB Cluster source tree. In addition, the
Sfiles keep records of the fragments belonging to each table.