I am running my lnd node since about 60 days. Looking at the file channel.db, I found it grows currently about 500M per day:

btc@xxx:~/.lnd$ ls -al ./data/graph/mainnet/channel.db
-rw------- 1 btc btc 15776518144 Oct 19 14:31 ./data/graph/mainnet/channel.db

-rw------- 1 btc btc 16874332160 Oct 21 12:59 channel.db

What is in that file that needs 16GB and when will it stop growing? Running lnd 0.13.3 on i9-9900K CPU Ubuntu 20.04, bitcoin-core.

EDIT: New data from Oct 27 added:

It's now

-rw------- 1 btc btc 23279489024 Oct 27 09:20 channel.db

Growth of about 5 GB in 6 days with 2 amts forwarded and 1 new channel opened. Think I stop operating this. Someone with good alternatives to lnd?

  • This will be an open question, by generic idea the DB should never stop growing Nov 15 '21 at 14:45

Like vincenzopalazzo commented - it never stops growing by design. Solution is to add


to the lnd config. Then the db gets "compacted" (means cleaned-up here) at lnd's startup. But take care for enough disk space. Why it sometimes grows so fast could not be revealed.

The complete discussion is here: https://github.com/lightningnetwork/lnd/issues/5705

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.