Replies: 2 comments 5 replies
-
If I remember correctly the disk space script returns the list of drives with available space and plotman filters for those with free space and then uses the Note that you can create your own target definitions in your config file so that you don't have to "edit the source" and deal with upgrades overwriting your custom script. If you need one... The archiving:
target: local_rsync
index: 0
env:
# me
site_root: /farm/sites
path_suffix: pool.xch1ph3flzr053eswzjc72gjvxjes6fcdamvl9kq5yqw6dnmwtpmlzkq8lzjmn In summary, I think that plotman comes close to what you want in that it focuses on filling "the first drive" before moving on. Though yes, that isn't exactly "fill the fullest drive". Let me know what questions remain after this explanation. |
Beta Was this translation helpful? Give feedback.
-
I solved it by adding sort to target_definitions, like this: However, you also need to remove sorted function from archive.py so it left available[index] only |
Beta Was this translation helpful? Give feedback.
-
I am using the local archiving functionality of plotman. I would like to the
plotman archive
to pick the disk that is closest to be full.That would not be
disk_space_script:
right? I feel it would betransfer_script:
, but I don't understand how"${destination}"
is selected.Any idea anyone?
And in case anyone wonders why:
the idea is to not evenly fill my disks, but instead fill one as fast as possible so I can move it away. This would be useful for replotting hpool plots to portable ones. One could begin with two drives in the
site_root:
archiving location for plotman to fill one then fallback to the other when full. Then one could add disks one by one and maximize farming the old hpool plots and new portable plots while keeping hpool hardware separated from the rest (better safe then sorry).Edit-------------------------
Mmm, I just noticed the plotman-transfer-script that
plotman interactive
produces when it starts archiving. It says:Where does
path_suffix
come from?Out of
disk_space_script:
somehow?Beta Was this translation helpful? Give feedback.
All reactions