efnats/chiagarden

Question about plot_over

Mathis436 opened this issue · 8 comments

Im trying to configure plot_over. My setup for the mounted drives in /mnt/bay#/serial#/.
when I configure plot_over with

##Chiagarden plot_over config file

#Dry run is enabled by default, to ease your mind. set to false, to actually use plot_over
dry_run=true

minimum free space in GB

min_free_space="200"

desired amount of disks with min_free_space

amount_free_disks="44"

comma-separated list of Plot Compressions levels that you would like to replot. Those will be (gradually) removed.

this example would replot to C18

replot_levels="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,19,20"

Default parameter for your label. Can also be set in commandline.

label="CHIA"

If you didnt label your drives with chiainit, you can set a parent mount dir where your your chia disks are mounted in.

mount_dir and "label" cannot be used at the same time.

mount_dir="/mnt/"

Default parameter for your first subdirectory for plots in Disk. Can also be set in commandline.

subdir=""

maximum search depth for plot files - how many subdir levels should we iterate?

search_depth="10"

rescan every xx seconds. this is AFTER removal of plot files in one iteration is finished. it is okay to set this relatively low (30s)

interval="30"

set to a valid path or leave empty to disable logging. Ignored (set empty) when plot_over is run from systemd

logfile="./plot_over.log"

set to true to display the paths that are searched for plot files

display_search_paths="true"

This is the output
image

If i change the config to use

If you didnt label your drives with chiainit, you can set a parent mount dir where your your chia disks are mounted in.

mount_dir and "label" cannot be used at the same time.

mount_dir="/mnt/bay8/"

The out put is
image

Working as expected.

I have approximately 44 drives that are filled with c8 compressed plots that I want to replot
they are located in /mnt/bay8/ & /mnt/bay9-11/

how can I configure plot-over to read the list of directories past the first set of bay# folders that are under /mnt ?

sorry for the large fonts.

efnats commented

I'm not sure I fully understand the question. If you use your /mnt/ directory and set the search_depth variable to 1 it'll go through all directories mounted from there. If you set it to 2, it'll iterate through one level deeper etc...
Is that what you mean?

Yes. But on my machine the script only sees the /mnt/bay# directorys as shown in the first image I uploaded. If I set the mount directory to /mnt/bay8/ the script will look in all sub folders within /mnt/bay8/. This is the expected behavior. the problem is that with the mount dir set at /mnt/ the script doesnt look past the /mnt/bay# dir.
Each /mnt/bay# has multiple folders that are the actual mount points for each hdd
for example:
/mnt/bay8/ZA14VGT3/
/mnt/bay8/ZA14VGWW/
/mnt/bay8/ZA14VW26/
/mnt/bay9-11/ZCH01XNQ/
/mnt/bay9-11/ZCH045PT/
/mnt/bay9-11/ZCH05NZ1/
/mnt/bay9-11/ZCH06DB4/
/mnt/bay9-11/ZCH079K4/
/mnt/bay9-11/ZCH07J85/
/mnt/bay9-11/ZCH07PZR/
/mnt/bay9-11/ZCH08445/
/mnt/bay9-11/ZCH0B3PG/
/mnt/bay9-11/ZCH0G3XX/
/mnt/bay9-11/ZCH0GHRP/
/mnt/bay9-11/ZJV024FR/
/mnt/bay9-11/ZJV02F7N/
/mnt/bay9-11/ZJV0648W/
/mnt/bay9-11/ZJV06YVY/
/mnt/bay9-11/ZJV07AHY/
/mnt/bay9-11/ZJV0AMXH/
/mnt/bay9-11/ZJV0AR44/
/mnt/bay9-11/ZJV0BFPT/
/mnt/bay9-11/ZJV0BT2A/
/mnt/bay9-11/ZJV0CQ5K/
/mnt/bay9-11/ZJV0EHXT/
/mnt/bay9-11/ZJV0J03X/
/mnt/bay9-11/ZJV0JSM1/
/mnt/bay9-11/ZJV0K9EY/
/mnt/bay9-11/ZJV0LRZW/
/mnt/bay9-11/ZJV0MG5B/
/mnt/bay9-11/ZJV0MHVT/
/mnt/bay9-11/ZJV0MKZJ/
/mnt/bay9-11/ZJV0NKA6/
/mnt/bay9-11/ZJV0NVFA/
/mnt/bay9-11/ZJV0NW2Y/
/mnt/bay9-11/ZJV0PP0M/
/mnt/bay9-11/ZJV0RYJH/
/mnt/bay9-11/ZJV0S6JT/
/mnt/bay9-11/ZJV0SCQX/
/mnt/bay9-11/ZJV0V5GD/
/mnt/bay9-11/ZJV1FYDF/
/mnt/bay9-11/ZJV1HD52/
/mnt/bay9-11/ZJV3CJ2P/
/mnt/bay9-11/ZJV3RCEN/

these are the specific folders that have the c8 plots that i want to replot to c18.
the script will not search past /mnt/bay# folders if i use just /mnt/ as the base directory.

efnats commented

Ah okay, so subfolder processing doesn't work on folder based operation opposed to label based operation.

I won't be able to look at this within the next couple if days unfortunately.

Would it be an option for you to use chiainit to (re)label the drives and mount them using the gardenmount script?
In know that subfolders work in label based operation mode.

efnats commented

I have made some changes to plot_over that has impact on how the mount_dir option is handled:

[main d9e2639] plot_over: introduce detection of fully replotted disks. auto adapt min_free_disks to never be bigger than all_disks minus disks_replotted. mount_dir option now detects actual mounted disks (doesnt assume dirs are disks). some refactoring

Could you try again with this version?

Sorry for the late reply, I tried the new version and although it now reads all of the folders under /mnt/bay9-11/ is only shows
1 drives meet the requirements

image

My config looks like this

image

Not sure what i'm doing wrong

Just did a test I think all is working as expected. Doing a real run now and plots are being removed from drives as expected!

Thanks for your hard work!