Modern BDB has the ability to add additional directories using either DB_CONFIG (recommended) or API calls.
See if these directives (and the corresponding API calls) help: add_data_dir set_create_dir set_data_dir set_lg_dir set_tmp_dir
Please note that adding these directives is unlikely to be transparent to βJust Workβ, but it should not be too difficult to use db_dump / db_load to recreate the database files configured with these directives.
source share