Migration guide to transfer LND from one Umbrel machine to another
Save channel backup before you begin!
Optional: Limit forwarding on old node to reduce risk of force-closures during migration:
bos limit-forwarding --disable-forwards
Wait for any pending HTLCs to clear before proceeding with migration.
Open SSH session and tail LND logs to ensure it stops:
docker logs -f lightning_lnd_1
-or-
tail -f ~/umbrel/app-data/lightning/data/lnd/logs/bitcoin/mainnet/lnd.log
Open second SSH session and stop LND:
sudo ./umbrel/scripts/stop
Check LND is stopped in logs in first SSH session.
Copy LND from old node to new node:
sudo rsync -arhvP --append-verify [email protected]:~/umbrel/app-data/lightning ~/umbrel/app-data
Wait for copying to finish.
Destroy the heart of old node (rename channel.db / lnd.conf files):
sudo mv ~/umbrel/app-data/lightning/data/lnd/data/graph/mainnet/channel.db ~/umbrel/app-data/lightning/data/lnd/data/graph/mainnet/channel.bak
sudo mv ~/umbrel/app-data/lightning/data/lnd/lnd.conf ~/umbrel/app-data/lightning/data/lnd/lnd.bak
sudo mv ~/umbrel/app-data/lightning/data/lnd/umbrel-lnd.conf ~/umbrel/app-data/lightning/data/lnd/umbrel-lnd.bak
Start LND in first terminal session:
sudo ./umbrel/scripts/start
Open a second SSH session and tail LND logs to ensure it starts completely with no errors:
docker logs -f lightning_lnd_1
-or-
tail -f ~/umbrel/app-data/lightning/data/lnd/logs/bitcoin/mainnet/lnd.log
Never start LND on the old node again.