A few days ago I switched from ethminer to Claymore’s Dual Ethereum Miner because ethminer has problems running multiple instances with multiple GPUs. My blog post How to run same ethminer instance with multiple GPUs is still valid but ethminer simply can’t handle two or more parallel running instances.
In addition to my previous blog post I want to show you how to mine with multiple GPUs into different Ethereum wallets. The following has been tested with Fedora 25.
Add a configuration file for each of your wallets
For each of your wallets create configuration a file named /etc/sysconfig/claymore-miner-$WALLETNAME with this content:
ETHER_ADDRESS=0x$YOURETHERADDRESS SIA_ADDRESS=$YOURSIACOINADDRESS EMAIL_ADDRESS=$EMAIL ## GPUs must *not* be separated by comma or whitespace! ## Use the first three GPU cards on your mainboard GPUS=012
Create a systemd service template
Create the file /etc/systemd/system/claymore-miner@.service and paste the configuration into it:
[Unit] Description=Ethereum miner for %i After=network.target [Service] User=nobody EnvironmentFile=/etc/sysconfig/claymore-miner-%I ExecStart=/bin/bash --login -c "/opt/claymore-miner/ethdcrminer64 -epool eth-eu1.nanopool.org:9999 -ewal ${ETHER_ADDRESS}/$YOUR_RIG_NAME/${EMAIL_ADDRESS} -nofee 0 -mport 0 -espw x -ftime 10 -di ${GPUS} -mode 1" # -mode 0 -dcoin sia -dpool sia-eu1.nanopool.org:7777 -dwal ${SIA_ADDRESS}/$YOUR_RIG_NAME/${EMAIL_ADDRESS}" ## If you want to dual-mine Siacoin, uncomment the line above and remove '-mode 1"' in the line before Restart=always [Install] WantedBy=multi-user.target
- Replace $YOUR_RIG_NAME with the name of your rig, whitespaces are not allowed
- Uncomment the -mode 0 line to enable dual mining mode
Enable the service
We have delayed the start of each miner after booting by adding a simple crontab entry:
@reboot sleep 60s; systemctl start claymore-miner@$WALLETNAME1; systemctl start claymore-miner@$WALLETNAME2
If you like it, and want say thank you, you can drop me some wei at 0x4c1856c9021db812f0b73785081b245f622d58ec 🙂