ericaltendorf / plotman

Chia plotting manager
Apache License 2.0
911 stars 280 forks source link

archiving round robin or priority #528

Open syadnom opened 3 years ago

syadnom commented 3 years ago

please add either the ability to have the archive do a round robin, or favor the larges free space, or some way to set priority.

What's happening is that I'll end up with 4-5 archive writes to a single drive while I have 8 drives in the archive pool. This causes HDD thrashing and is super super slow.

syadnom commented 3 years ago

For anyone who's searched for this or is interested in this feature, I have a work around.

I'm using aufs to create a mount point in the archive directory with the mount option 'create=rr'.

I initially put all of my plot directories in as read/write (=rw) and let aufs spread them around. When one get's full, aufs will generally handle that in the rr write cycle but I change the mount options for the path to =ro to take it out of the write loop.

You can use aufs tools, or fstab mount. I use fstab just because I'm comfortable with that and it survives reboots. mount -o remount will update the mount point for changes.