Configure TrieDB (MonadDB)

TrieDB must run on a dedicated NVMe device with no filesystem or RAID.

Identify the NVMe Drive

Verify available NVMe devices:

nvme list
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,MODEL

Select a drive without mountpoints. Do not use the OS disk.


Create Partition

Set the target drive:

TRIEDB_DRIVE=/dev/nvme1n1   # CHANGE THIS

Create GPT and full-size partition:

parted $TRIEDB_DRIVE mklabel gpt
parted $TRIEDB_DRIVE mkpart triedb 0% 100%

Create udev Rule

Get the partition UUID:

PARTUUID=$(lsblk -o PARTUUID $TRIEDB_DRIVE | tail -n 1)
echo "Disk PartUUID: ${PARTUUID}"

Create udev rule and symlink /dev/triedb:

Reload rules and verify:


Verify LBA Configuration

Check current LBA format:

Expected output:

If not set to 512 bytes, reformat:

Re-verify:


Format TrieDB Partition

Run the one-time TrieDB initialization service:

This formats the TrieDB partition and prepares it for use.

Last updated