r/chia•
-dev_null-

chia-plotmover-rs: Replaces legacy Chia plots with newly created (NFT) plots, while you are plotting

Plotting

https://github.com/neuronull/chia-plotmover-rs

There are probably dozens of these already, but I took the opportunity to write a Rust program to aid in re-plotting for official pools.

Tested on Ubuntu using madmax plotter to create the new plots. Though should work just fine with the standard chia plotter.

Basically, it incrementally removes legacy plots when new pool plots are created (see the README for more details). Thus optimizing your space. a n d . t i m e. omg.

Posted Jul 28, 2021, 11:02 PM UTC

79
openchia•

Thats pretty neat. Will definitely help people migrate over. Thanks for doing this.

3

My friend made one of these in TS, thank you for sharing!

2
Temporary-Map-4844•

Hello, thank you very much for the tools, I am wanting to use it, I have some doubts.

/ mnt / hddx / legacy_plotsr

/ mnt / hddx / pool_plots

Does that mean that inside my hdds, should I create a folder called 'legacy_plots' and place the plots there?

How do I activate the system, do I use the main.rs file found in the src folder?

Thanks a lot

2
-dev_null-OP•

Hi and thanks for checking the utility out!

Does that mean that inside my hdds, should I create a folder called 'legacy_plots' and place the plots there?

Correct.
The legacy_plots and pool_plots folders should have write permissions as your user:

sudo mkdir /mnt/hdd1/legacy_plots
sudo mkdir /mnt/hdd1/pool_plots
sudo chmod +w /mnt/hdd1/legacy_plots
sudo chmod +w /mnt/hdd1/legacy_plots

How do I activate the system, do I use the main.rs file found in the src folder?

Ah, this is a Rust program so if you have the build tools for Rust installed already, its just:

cd plotmover-rs
cargo build
cargo run

If you don't however, there is a RELEASES page: https://github.com/neuronull/chia-plotmover-rs/releases

, where you can download the three files that are required to execute the program (plotmover-rs (binary) and the two configuration files. Place all files in a folder, modify the configuration file to your needs, and execute the plotmover-rs.

I will add instructions to the README for both of these items later today.

Thanks much for your comments. If you have any doubt about the execution of the program, before you move your plots there, run the program and add some "dummy" files to the legacy_plots directory. "touch /mnt/hdd1/legacy_plots/foo.plot" , this will trigger the program to move that file to the pool_plots directory.

2
[deleted]•

[deleted]

1
-dev_null-OP•

Hi, you can see my other message and additionally I've updated the README with instructions on BUILDING and additional instructions in the USAGE section, for an example of creating the required directories. Let me know if anything is unclear.

2
Temporary-Map-4844•

Thanks for your help, I managed to get the script to work, my only problem is that the legacy_plots are not being deleted,

For example:

- I have my hdd1/ (with 100 plots.)

- in hdd1/legacy_plots (put 10 plots to test if they were deleted.)

- in hdd1/pool_plots (the new NFT plots are being placed correctly.)

The cfg.toml file:

[dirs]
ssds = ["/media/toti/2TB1", "/media/toti/2TB2"]
hdds = [
"/hdd1",
]

It is not deleting plots in / hdd1 and not in / hdd1 / legacy_plots

Maybe I configured something wrong, what could it be?

Thanks

2
-dev_null-OP•

What is the output from the console running the program?

The directories in the "ssds" , should be where your madmax plotter is leaving the new plots. ie, use the -d option to madmax , and specify /media/toti/2TB1.I have a script which is running madmax for a single plot each, and alternating between /mnt/ssd1/plots and /mnt/ssd2/plots , -d option.

(that was part of the motivation to create this tool, because madmax only allows you to specify one destination -d option but I wanted to utilize both of my ssds equally)

Do you have write permissions configured for the hdd1/legacy_plots and hdd1/pool_plots?

For example, on my system I just made it accessible to everyone:

$ ls -lh /mnt/hdd1/
drwxrwxrwx 2 root root 4.0K Jul 29 19:27 legacy_plots
drwxrwxrwx 2 root root 28K Aug 3 02:12 pool_plots

Though you should only need write permissions, as mentioned in the README section USAGE.

1
Temporary-Map-4844•

Hi, thanks for your help,

I share what you see on the console, when Plotmover is activated:

2021-08-08 21:10:05 {INFO} checking for plot files in path /media/toti/2TB2021-08-08 21:10:08 {INFO} checking for plot files in path /media/toti/2TB2021-08-08 21:10:08 {INFO} hdd "/media/toti/chia2" has space, using that2021-08-08 21:10:08 {INFO} copy plot "/media/toti/2TB/plot-k32-2021-08-08-20-16-c776bebb60efc501dfd215d1906c82f8b832a3c867f02c5f0933bd69851b16a9.plot" to "/media/toti/chia2/pool_plots/plot-k32-2021-08-08-20-16-c776bebb60efc501dfd215d1906c82f8b832a3c867f02c5f0933bd69851b16a9.plot" ...2021-08-08 21:17:37 {INFO} ... completed2021-08-08 21:17:40 {INFO} checking for plot files in path /media/toti/2TB2021-08-08 21:17:40 {INFO} checking for plot files in path /media/toti/2TB

The only thing that I am not achieving, is that I eliminate the old pairs automatically, plots are accumulating in chia1 and chia2, but the old ones are not eliminated.

My madmax setting in -d is: -t /media/toti/2TB2/ -d /media/toti/2TB/

PloterMover Cfg.toml :

[dirs]ssds = ["/media/toti/2TB"]hdds = ["/media/toti/chia1","/media/toti/chia2",]

The directories and plots inside the hdds are the following:

/media/toti/chia1/ : Contiene plots antiguos./media/toti/chia1/legacy_plots: Contiene plots antiguos./media/toti/chia1/pool_plots: Contiene los nuevos plots colocados por el soft Plotmover.

The write permissions on the / pool_plots and / legacy_plots folders is:

Owner/ Me: Create and delete files.
Group/ Toti: Create and delete files.
Others: Create and delete files.

I will continue doing tests with the permissions of the folders and files
It seems to be all well configured, following the steps of the Readme file, if you could help me to eliminate the old plots it would be of great help, greetings!

2