geth보다 openethereum(구 parity)이 디스크 용량 적게 쓰는데
그래도 1년 150기가는 늘어나네요.
거기에 ssd 써야 하고.
최소는 2코어 8기가 램 권장은 4코어 16기가 램이라는데...
남는 자원으로 돌려보려 하는데 생각보다 요구사항이 많아서 애매합니다.
가이드도 좀 불친절해서 더 힘드네요.
검색하면 가장 자주 나오는 글은 반쯤 dapp 하드웨어 홍보성 게시글이고.
하다 못해 세팅 옵션에 대한 가이드라도 있음 좋겠네요.
헬프 페이지는 작동방식 다 아는 사람들 잠깐 참조하는 용도 이상이 되기 힘들어 보입니다.
미안한 말이지만 왜 2등인지 알 것 같아요.
사양은 그렇다 쳐도 doc이 너무 부실하네요.
전 집에서 돌려야 해서 Odroid H2 ( J4105 기반)으로 8기가 램 설치해서 돌리는 중입니다. 10W정도 전기 먹어요
작년 9월에 1TB NVME ( 실용량 900기가 초반) 디스크 꽉차서 512TB SSD RAID 0로 다시 만들었는데 이것도 12월 말에 꽉찻네요.
첫번째 1T NVME 장비에 open ethereum 설치해서 다시 돌려봤는데. 2개월 넘겨서 걸려서 싱크되었고 용량은 600기가정도 먹네요.
남은 SSD가 512밖에 없어서 4개 RAID 0로 묶어서 2T 만들고 Geth 다시 동기화 준비중입니다.
Odroid H2(J4105) + 8기가램 + 1TB NVME (10-12W 소모) = OpenEthereum : 21년1월초 기준 동기완료시 600기가
서버보드(i3-6100) + 12기가램 + 2T RAID 0 (40W소모) = Geth : 20년 12월말 기준 동기완료시 1024기가
거기 관리자분이 잘 정리 해 놓으셨어요
0. 공유기 사용시 30303 포트 포트포워딩 설정
1. 우분투 기준. 이더리움 설치
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
2. 서비스 유저 생성
cd ~
sudo adduser --home /home/eth2/eth1 --disabled-password --gecos 'Go Ethereum Client' geth
sudo chown -R geth:geth /home/eth2/eth1
sudo -u geth chmod -R 700 /home/eth2/eth1
3. 서비스 데몬설정
sudo nano /etc/systemd/system/geth.service
이하 내용
----------------------------------------------------------
[Unit]
Description=Geth-Main
After=network-online.target
[Service]
Type=simple
User=geth
ExecStart=geth --http --datadir=/home/eth2/eth1 --metrics --pprof --cache=2048 --syncmode full
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
---------------------------------------------------------------
or
[Unit]
Description=Geth-Main
After=network-online.target
[Service]
Type=simple
User=geth
ExecStart=geth --http --datadir=/home/eth2/eth1 --metrics --pprof --cache=5000
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
4. 서비스 실행
sudo systemctl daemon-reload
sudo systemctl start geth
sudo systemctl status geth - 서비스 실행 확인
sudo systemctl enable geth - 부팅시 자동실행
5. 로그확인
sudo journalctl -f -u geth.service
참조 : https://cafe.naver.com/eth2staking
리눅스버전 받아서 풀고 아래 명령어로 실행합니다.
./openethereum daemon /home/user/pid --log-file=/home/user/openeth.log --jsonrpc-hosts all --jsonrpc-apis traces,web3,eth,net,parity --ws-origins=all --ws-hosts=all --chain mainnet --no-warp --tracing on --jsonrpc-port=8547 --tx-queue-size=16384 --tx-queue-mem-limit=0 --ws-interface=all --jsonrpc-interface=all
/Vollago