Cant run in terminal

Ok so I’ve been trying to get this to run and i must be doing something wrong. When I put 16 plots in it only runs 14 of them, and when I use screen -r to see activity it doesn’t show anything. I tried it with 8 plots and again only 7 ran but nothing showing in screen -r. I have 6 14tb HDDs for storage, and 2 2tb nvme for plotting. Ryzen 3950x and 64gb ram. What is the command I should run to get 16 plots in parallel? I’ve tried the below sh with
-b 3800
-r 16 and I’ve tried -r 8
Not sure what else to do?
I put the first 8 plots on ssd1 and last 8 on ssd2.
It’s a mess so thanks in advance.

#!/bin/bash
screen -d -m -S chia1 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 0h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp1 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia1_1_.log'
screen -d -m -S chia2 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 1h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp2 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia2_1_.log'
screen -d -m -S chia3 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 2h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp3 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia3_1_.log'
screen -d -m -S chia4 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 3h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp4 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia4_1_.log'
screen -d -m -S chia5 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 4h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp5 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia5_1_.log'
screen -d -m -S chia6 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 5h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp6 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia6_2_.log'
screen -d -m -S chia7 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 6h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp7 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia7_2_.log'
screen -d -m -S chia8 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 7h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp8 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia8_2_.log'
screen -d -m -S chia9 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 0h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp1 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia9_1_.log'
screen -d -m -S chia2 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 1h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp2 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia2_1_.log'
screen -d -m -S chia3 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 2h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp3 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia3_1_.log'
screen -d -m -S chia4 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 3h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp4 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia4_1_.log'
screen -d -m -S chia5 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 4h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp5 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia5_1_.log'
screen -d -m -S chia6 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 5h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp6 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia6_2_.log'
screen -d -m -S chia7 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 6h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp7 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia7_2_.log'
screen -d -m -S chia8 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 7h && chia plots create -k 32 -b 4000 -e -r 4 -u 128 -n 16 -t /mnt/ssd/temp8 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia8_2_.log'

Hi there.

I think the correct command to list screen sessions is screen -list.
Regarding the issue about not running the 16 plots, if you are using that script, I see duplicated log files (ex: chia2_1_.log).
Also you say you are using two SSDs but I only see one mount point /mnt/ssd

1 Like

Ok so i edited the file. This is what I have. Does it look OK? Also what should I use for “n” value?

#!/bin/bash
screen -d -m -S chia1 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 0h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp1 -2 /mnt/ssd1 -d /mnt/hdd1 |tee /home/user/chialogs/chia1_1_.log'
screen -d -m -S chia2 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 1h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp2 -2 /mnt/ssd1 -d /mnt/hdd1 |tee /home/user/chialogs/chia2_1_.log'
screen -d -m -S chia3 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 2h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp3 -2 /mnt/ssd1 -d /mnt/hdd1 |tee /home/user/chialogs/chia3_1_.log'
screen -d -m -S chia4 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 3h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp4 -2 /mnt/ssd1 -d /mnt/hdd2 |tee /home/user/chialogs/chia4_1_.log'
screen -d -m -S chia5 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 4h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp5 -2 /mnt/ssd1 -d /mnt/hdd2 |tee /home/user/chialogs/chia5_1_.log'
screen -d -m -S chia6 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 5h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp6 -2 /mnt/ssd1 -d /mnt/hdd2 |tee /home/user/chialogs/chia6_2_.log'
screen -d -m -S chia7 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 6h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp7 -2 /mnt/ssd1 -d /mnt/hdd3 |tee /home/user/chialogs/chia7_2_.log'
screen -d -m -S chia8 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 7h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp8 -2 /mnt/ssd1 -d /mnt/hdd3 |tee /home/user/chialogs/chia8_2_.log'
screen -d -m -S chia9 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 8h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp9 -2 /mnt/ssd2 -d /mnt/hdd3 |tee /home/user/chialogs/chia9_2_.log'
screen -d -m -S chia10 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 9h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp10 -2 /mnt/ssd2 -d /mnt/hdd4 |tee /home/user/chialogs/chia10_2_.log'
screen -d -m -S chia11 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 10h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp11 -2 /mnt/ssd2 -d /mnt/hdd4 |tee /home/user/chialogs/chia12_3_.log'
screen -d -m -S chia12 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 11h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp12 -2 /mnt/ssd2 -d /mnt/hdd4 |tee /home/user/chialogs/chia13_3_.log'
screen -d -m -S chia13 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 12h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp13 -2 /mnt/ssd2 -d /mnt/hdd5 |tee /home/user/chialogs/chia14_3_.log'
screen -d -m -S chia14 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 13h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp14 -2 /mnt/ssd2 -d /mnt/hdd5 |tee /home/user/chialogs/chia14_3_.log'
screen -d -m -S chia15 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 14h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp15 -2 /mnt/ssd2 -d /mnt/hdd6 |tee /home/user/chialogs/chia15_3_.log'
screen -d -m -S chia16 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 15h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp16 -2 /mnt/ssd2 -d /mnt/hdd6 |tee /home/user/chialogs/chia16_4_.log'

I spotted some minor typos. Here is the corrected script:

#!/bin/bash
screen -d -m -S chia1 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 0h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp1 -2 /mnt/ssd1 -d /mnt/hdd1 |tee /home/user/chialogs/chia1_1_.log'
screen -d -m -S chia2 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 1h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp2 -2 /mnt/ssd1 -d /mnt/hdd1 |tee /home/user/chialogs/chia2_1_.log'
screen -d -m -S chia3 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 2h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp3 -2 /mnt/ssd1 -d /mnt/hdd1 |tee /home/user/chialogs/chia3_1_.log'
screen -d -m -S chia4 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 3h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp4 -2 /mnt/ssd1 -d /mnt/hdd2 |tee /home/user/chialogs/chia4_1_.log'
screen -d -m -S chia5 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 4h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp5 -2 /mnt/ssd1 -d /mnt/hdd2 |tee /home/user/chialogs/chia5_1_.log'
screen -d -m -S chia6 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 5h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp6 -2 /mnt/ssd1 -d /mnt/hdd2 |tee /home/user/chialogs/chia6_2_.log'
screen -d -m -S chia7 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 6h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp7 -2 /mnt/ssd1 -d /mnt/hdd3 |tee /home/user/chialogs/chia7_2_.log'
screen -d -m -S chia8 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 7h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd1/temp8 -2 /mnt/ssd1 -d /mnt/hdd3 |tee /home/user/chialogs/chia8_2_.log'
screen -d -m -S chia9 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 8h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp9 -2 /mnt/ssd2 -d /mnt/hdd3 |tee /home/user/chialogs/chia9_2_.log'
screen -d -m -S chia10 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 9h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp10 -2 /mnt/ssd2 -d /mnt/hdd4 |tee /home/user/chialogs/chia10_2_.log'
screen -d -m -S chia11 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 10h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp11 -2 /mnt/ssd2 -d /mnt/hdd4 |tee /home/user/chialogs/chia12_3_.log'
screen -d -m -S chia12 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 11h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp12 -2 /mnt/ssd2 -d /mnt/hdd4 |tee /home/user/chialogs/chia13_3_.log'
screen -d -m -S chia13 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 12h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp13 -2 /mnt/ssd2 -d /mnt/hdd5 |tee /home/user/chialogs/chia14_3_.log'
screen -d -m -S chia14 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 13h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp14 -2 /mnt/ssd2 -d /mnt/hdd5 |tee /home/user/chialogs/chia14_3_.log'
screen -d -m -S chia15 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 14h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp15 -2 /mnt/ssd2 -d /mnt/hdd6 |tee /home/user/chialogs/chia15_3_.log'
screen -d -m -S chia16 bash -c 'cd /home/user/chia-blockchain && . ./activate && sleep 15h && chia plots create -k 32 -b 3800 -e -r 8 -u 128 -n 16 -t /mnt/ssd2/temp16 -2 /mnt/ssd2 -d /mnt/hdd6 |tee /home/user/chialogs/chia16_4_.log'

But if you are doing this kind of massive plotting on linux, maybe you should take a look at this tool:

The -n options is the number of plots you want to create in sequence. So with the -n 16 it will create 16 plots on each command.
So the total number of plots generated by this script will be 256 which is around 27TB so you are good to go with your current set up.

Thanks man! Ill give this a try! Ill look into the tool as well.

Make sure y’all post code as code blocks … see the editor toolbar or use Markdown, bbcode, or even HTML.

2 Likes

Thanks for the help. I was actually searching for the code block icon and couldn’t find it. Then I realized I can just use BBCode markup but I was already too late :slight_smile:

Cheers!

Hi all

For now I created 3 plots in pararell via gui. Now I’m learning CLI and trying understand this script.

I have only this part of code:

bash -c ‘cd /home/user/chia-blockchain && . ./activate && sleep 0h && chia plots create -k 32 -b 3408 -r 4 -u 128 -n 6 -t "my drive name " -d “my drive nam” |tee /home/user/chialogs/chia1_1_.log’
bash -c ‘cd /home/user/chia-blockchain && . ./activate && sleep 2h && chia plots create -k 32 -b 3408 -r 4 -u 128 -n 6 -t "my drive name " -d “my drive nam” |tee /home/user/chialogs/chia1_1_.log’
bash -c ‘cd /home/user/chia-blockchain && . ./activate && sleep 4h && chia plots create -k 32 -b 3408 -r 4 -u 128 -n 6 -t "my drive name " -d “my drive nam” |tee /home/user/chialogs/chia1_1_.log’

and i understand that after 2h my second plot will start in another terminal ?

`

@Jesion you need to use screen tool to run the plotting on the background. Check the script above.

And yes, that will delay the start of the next plot by 2h.
Cheers!

thanks @eresende I remove screen parameter, because when I have in script after launch i have error screen not found.

Ok I will try use google to resolve this problem :slight_smile:

Yep, you need to install it. Should be available through the package manage assuming that you’re using Linux.