Sunday, April 25, 2021

Build & Install Guide: Budget Plotting Build - $500 - 1.3 TB/day

 For the buying guide / hardware list view this previous post

Installing the Hardware:

Put your 2 NVME drives in the adapters. Put the adapters in the PCIE slots.

Split the SATA power cable with our splitter adapter(s). 

Then attach one power end to each SATA drive and connect each drive to the motherboard with the data cables (you'll probably have to disconnect the DVD drive. Don't worry. We wont need it.)

That's it! Close it up and let's move on.

Installing the OS:


Load up Ubuntu Desktop on a flash-drive using LiLi USB Creator (for Windows) or your preferred method.

Put the flash-drive in one of the SS USB ports on your Optiplex. 

Press power and hit the F12 key until you're at boot options. 

UEFI Boot from your flash-drive.

Follow installation instructions. If you have a dedicated boot drive, install on that, or if you don't then install on one of your SATA drives. You can select the minimal build as we don't need fancy utilities. 

If you want to be able to copy-paste commands from this build, name your user plotter1, as that is what mine is named and it will be a part of many terminal commands.

Finish install. Remove USB. 

Installing Chia Application:

Follow the installation instructions from the official Chia Github

If you're new to all this I'd recommend launching the gui once to import or create your private keys. Afterwards close out the GUI. The rest of this will be done in the terminal.

Alternatively if you're more experienced or security conscious you can pass certain arguments  to the plotter without using your private keys. We're just going to assume this is an offline machine in a secure location. 

Pre-Plotting Configuration:

Open up the Terminal and the Disks Utility

Use the disk utility to make sure your drives match the following locations:

    NVME drives should be at /dev/nvme0n1 & /dev/nvme1n1

    Sata drives should be at /dev/sbc & /dev/sdc

If yours are different you will have to change references to these labels in the commands to match yours.

In the Terminal run the following commands:

    • sudo apt install mdadm -y  

    • sudo mdadm --create /dev/md0 --level=stripe --raid-devices=2 /dev/nvme0n1 /dev/nvme1n1 

  • sudo mdadm --create /dev/md1 --level=stripe --raid-devices=2 /dev/sdb /dev/sdc 

  • mkdir $HOME/chialogs

In Disks format your new NVME Raid Array (/dev/md0) to ext4 and name it nvmeraid

Then format your SATA Raid Array (/dev/md1) to ext4 and name it sataraid

Click the "play" arrow button next to your 2 Raid Arrays in Disks to mount the drives.

Plotting!

I'm using a western digital easystore external drive as the destination drive for my plots. This mounts in my system as "easystore" If you are using something different you will need to change the path in the plotting commands to match yours.

IF you used the original build guide before I updated it and have only 16GB of RAM you will be limited to running only 4 plots simultaneously. That will get you 1.1 TB of plots a day on average. IF you have 24GB of RAM from the new guide you can get 1.3 TB of plots a day utilizing 6 instances as detailed below. 

If you only have 16GB of ram use only the 1st 2nd 5th and 6th tabs described below.

 

Open terminal and type "cd chia-blockchain" then click the + in the top left to open 5 more tabs

First tab:
  • . ./activate
  • chia plots create -k 32 -u 128 -b 3400 -r 4 -n 20 -t /media/plotter1/nvmeraid/temp1/ -d /media/plotter1/easystore/plots/ | tee -a /$HOME/chialogs/log1.txt

Second tab: 

  • . ./activate
  • chia plots create -k 32 -u 128 -b 3400 -r 4 -n 20 -t /media/plotter1/nvmeraid/temp2/ -d /media/plotter1/easystore/plots/ | tee -a /$HOME/chialogs/log2.txt

Third tab: 

  • . ./activate
  • chia plots create -k 32 -u 128 -b 3400 -r 4 -n 20 -t /media/plotter1/sataraid/temp3/ -d /media/plotter1/easystore/plots/ | tee -a /$HOME/chialogs/log3.txt

Fourth tab:

  • . ./activate
  • sleep  4h && chia plots create -k 32 -u 128 -b 3400 -r 4 -n 20 -t /media/plotter1/nvmeraid/temp4/ -d /media/plotter1/easystore/plots/ | tee -a /$HOME/chialogs/log4.txt
Fifth tab:
  • . ./activate
  • sleep  4h && chia plots create -k 32 -u 128 -b 3400 -r 4 -n 20 -t /media/plotter1/sataraid/temp5/ -d /media/plotter1/easystore/plots/ | tee -a /$HOME/chialogs/log5.txt

Sixth tab: 

  • . ./activate
  • sleep 4h && chia plots create -k 32 -u 128 -b 3400 -r 4 -n 20 -t /media/plotter1/sataraid/temp6/ -d /media/plotter1/easystore/plots/ | tee -a /$HOME/chialogs/log6.txt

 

 That's it! You're plotting. The first 3 tabs will run immediately. The last 3 will wait 4 hours before starting which should be enough time for the first 3 processes to get out of Phase 1. 

You can check logs inside the chialogs folder we made earlier, found within your home folder


Feel free to comment below with any questions or if you notice any mistakes. I'll try to get back to you as quickly as possible. 

If this helps you get started and you feel like donating a few mojos I wouldn't say no ;) 

xch13dsxd6vwllxudmjyjjfq83vu5pt8t60ml027p952wedxwapq2e4qx29l5l

Saturday, March 27, 2021

Buying Guide: Budget Plotting Build - $500 - 1.3 TB/day

Build & Install Guide HERE

This build is aimed at providing a standalone rig that will generate plots quickly enough for a small farm, without costing too much out of pocket. It dumps the plots to an external drive that you'll have to buy separately. This is not the most efficient build, as more expensive rigs will give you better performance per dollar (and per watt), but if your budget isn't that high, this may be useful to you.

The Desktop - $195



The core of our build is the Dell Optiplex 7020, and specifically the model that includes the i7-4790 CPU . The i7-4790 was top of the line for its generation and still packs quite a high benchmark score per dollar. Buying a used business pc provides CPU, motherboard, case, power supply, some ram, and often a boot drive all in one for < $200 (Typically the going price on eBay for this model)

NOTE: You are looking for the version with a i7-4790 NOT an i7-4790S

Either the SFF or Full Size tower will work. SFF is usually cheaper.

Ebay search query with the wrong model excluded

RAM

For the original version of this post I recommended 16GB of RAM. I now recommend 24GB of RAM to get 13 plots a day. 16GB will get you 11 plots a day.

8GB should run us around $30. Factor this into your purchase. If you see an Optiplex with 16GB of ram for $20 more than one with 8GB, its worth getting the more expensive one.

If you do need additional ram remember we only have 4 ram slots so we need at minimum 4x4GB sticks for the minimal build(1.1 TB/day) or 3x8GB to get 1.3 TB/day. 2x8GB + 2x4GB also works to get 24GB total.

Ebay search for 8GB sticks. Formatted to remove the noise

Ebay search for 4GB sticks. Formatted to remove the noise.

 

Temporary Storage - $263


NOTE I've heard a lot from the community about how these drives are not optimal for long term plotting as they have shorter lifespans than some others. I recommend doing some research into SSDs with Higher TBW. One user proposed the Inland 2TB Premium drive as a way to replace all 4 drives with just one. It boasts speeds and TBW that would be plenty for this build and eliminates much of the extra configuration.but I have not tested it myself. If you have results with this drive please comment below!

The 2TB Inland build would look similar to ours but eliminate the need for 1 PCIE adapter and all SATA power adapters and cables (the Optiplex should include 1 SATA data cable from the DVD drive that we can use for a boot drive.

 

Original recommendations for hardware:

2x Western Digital 500GB NVME -  $60

2x PCIe Adapters for NVME Drives - $8

2x Hynix 500GB Sata SSD - $57


SATA Cables:

1x Sata Power Splitter (2 pack) - $7

1x Sata Data Cable (3 pack) - $6

  


Extra


Boot drive:

You will need some boot drive. It can be any small HDD or SSD. You can also install your OS to one of our SATA SSDs. This may incur a slight performance penalty and your commands wont match those in the install tutorial.

Internet

If you don't have a wifi dongle or ethernet connection available you will need some way to access the internet from the pc for installation only. Maybe pick up a cheap usb wifi dongle.



The total cost of this build at time of posting is $488 (plus tax) and currently outputs 1.1 TB/day Now 1.3 TB/day!
Hardware prices fluctuate and the total cost for you may be different.
I'm trying different configurations and will post updated builds over time.

Build & Install Guide: Budget Plotting Build - $500 - 1.3 TB/day

 For the buying guide / hardware list view this previous post Installing the Hardware: Put your 2 NVME drives in the adapters. Put the adapt...