Last active
November 16, 2022 17:20
-
-
Save 84adam/5b0f5bff958f0c4df73a045b038bb5b3 to your computer and use it in GitHub Desktop.
Monitor Esplora/Electrs compaction process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MOUNTPOINT="/mnt/ext" | |
DISK="/dev/sda1" | |
echo "" | |
echo "-------------------------------------------------------------------------------- DISK SPACE USED/REMAINING" | |
df -m | head -n 1 ; df -m | grep "$DISK" | |
df -H | head -n 1 ; df -H | grep "$DISK" | |
echo "-------------------------------------------------------------------------------- DISK I/O" | |
echo "" | |
iostat $DISK | grep "Device" -A 1 | |
echo "" | |
echo "-------------------------------------------------------------------------------- FREE MEMORY" | |
free -m | |
echo "" | |
echo "-------------------------------------------------------------------------------- logs/electrs/current" | |
tail -n 5 $MOUNTPOINT/esplora/logs/electrs/current | |
echo "" | |
echo "-------------------------------------------------------------------------------- electrs_bitcoin_db/mainnet/mainnet/newindex/history/LOG" | |
tail -n 30 $MOUNTPOINT/esplora/electrs_bitcoin_db/mainnet/mainnet/newindex/history/LOG | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example Output
TIP: Try with
watch
command. E.g.watch -n 2 ./progress-compaction.sh