madMAx43v3r / chia-gigahorse

220 stars 32 forks source link

plotter crashing upon unmounting one of the destinations #266

Open romka1977 opened 5 months ago

romka1977 commented 5 months ago

Have a setup where plotter (2.1.3.giga26) does RAM plotting into -t and then distributing to multiple -d. Once one of the destinations became full, i did unmount it hoping to mount to the same mount point another drive, however the plotter crashed:

terminate called after throwing an instance of 'std::experimental::filesystem::v1::__cxx11::filesystem_error'
  what():  filesystem error: cannot get free space: No such file or directory [/usb1/chia/plots_comp/]
Failed to write to directory: '/usb1/chia/plots_comp/'

/usb1 is the mountpoint in question.

Expected behavior:

It's possible to unmount and remount new drives onto the same mount points, the plotter will automatically recover and resume operation.

Ubuntu 22.04.3 (5.15.0-91-generic)

Jacek-ghub commented 5 months ago

GH plotter has a nice feature to suppress it from writing to the destination. If it sees _chia_plot_sinkdisable file it will back off.

What I do is I create the same structure on the local fs that will be on the HD and put that file on there. This way, when you unmount your HD, the local path (assuming identical to what the mounted HD was) will have that file and GH plotter will back off. Once you mount a new HD GH will detect that the file is not there and will immediately start using that HD. This lets me change HDs on the fly.

romka1977 commented 5 months ago

Thanks @Jacek-ghub , there are workarounds for sure. The intent of this issue is to report non-working feature.

madMAx43v3r commented 5 months ago

Try creating a dummy folder in the unmounted path, with chia_plot_sink_disable in it.

romka1977 commented 5 months ago

Thanks for suggestion @madMAx43v3r . Unfortunately i don't have that setup anymore so cannot test.