So after almost 4 weeks i got my #lightning #node back running.
Lesson learned, i think i need a second #backup Node,
where i can be up and running within 24 hours.
All the mirroring and #RAID is really complicated to setup on a #Linux system and still you should know how to fix an issue.
What are your thoughts? On hardening an Lightning Node ?
Login to reply
Replies (11)
Glad u got it running, what was the issue? I'm running one too but more simple I guess, dedicated server with USB replication for backup
what does this mean?
i am still learning how to backup my LND at best?
i will go with a second machine ready to go.
would just close all channels and open them again
what do i need to consider even with a different backup
you also need to know what to do when something breaks
Oh in my case I have CLN. But did read a bit about LND too.
From what I know always keep your SCB (Static Channel Backup) safe and with that you can always close your channels if the sqlite DB breaks.
In my setup CLN does replicate the database automatically, so I have two copies one in the SSD of the machine one in the USB connected to it. Does LND have an option for that?
not that i know of,
i would have to check
this is new to me but would be really great
that way you dont have to close the channels right?
when you use the backup.
Yes exactly! For example let's say my SSD dies today (hope it doesn't), all my channels data would be safe in the USB. I would just install CLN again, use my 12 words and paste the sqlite file and run.
If instead both my database get corrupted (SSD and USB) I'd have to close every channel with the SCB. This behavior is the same in LND and CLN for what I've seen
i will take a look if LND got it.
this would make me really consider running CLN
maybe i try it on my second node
CLN just hasnt to much interfaces
but this will all change very quickly
with AI and stuff, i have heard CLN
is very modular, maybe i should consider it again
Yes exactly, I'm kinda new to the ecosystem and did my little research when setting everything up and I chose CLN because the modular approach and C implementation.
It should be ver light weight and fast, that matches the lightning vibes right? 🤪
This may be a bit overkill but I made something for my own safety, exactly to be able to setup everything easily if needed or something broke. Let me know if you try it and also take a look to the CLN config if you do! You may want to disable some plugins ✌🏼

GitHub
GitHub - deymosh/bastion: 🏴☠️ Sovereign Bitcoin & Lightning Node Infrastructure
🏴☠️ Sovereign Bitcoin & Lightning Node Infrastructure - deymosh/bastion
Here is what I do. I've been hosting a BTCPay Server instance on Oracle Cloud for close to 3 years now at zero cost. It is using LND. I've not had to go through a recovering process yet.
Monthly or so I do a application consistent Boot Volume backup of the server. The process is basically shutdown BTCPay Server instance components then do a Boot Volume backup. Takes about 30 second to complete.
Here are the details about this process.
Second, I monitoring the Forward History daily and do a static channel backup. Basically, I'm executing the 2 commands below from the CLI.
BTCpay ForwardingHistory
BTCpay ExportAllChannelBackups SCB
Here are the details about this process.


PSOciBootBackup Boot Volume Backup
A PowerShell script for performing a Boot Volume Backup on an Oracle Cloud compute instance running **BTCPay Server** application to generate an ap...

Automating BTCPAY Server and LND with REST API
Installing and Automating BTCPAY Server
This is very interesting, do you check and backup daily the SCB? I've read it should only change when open/closing channels but for CLN i noticed my emergency.recover which is the equivalent of the SCB changes more than expected.
In my case a service is running and checking every hour if the file changed, if so, copy and perform a hash compare with the copied file and original
GM 👀🇧🇷🤙