Hi!
I have enabled multiple-backend storage like that:
– seafile.conf
[fileserver]
port = 8082
[storage]
enable_storage_classes = true
storage_classes_file = /opt/seafile_storage_classes.json
[database]
type = mysql
host = db
port = 3306
user = [usrnm]
password = [psswd]
db_name = seafile_db
connection_charset = utf8
In the seahub settings.py I set that:
ENABLE_STORAGE_CLASSES = True
STORAGE_CLASS_MAPPING_POLICY = 'USER_SELECT'
My json file:
[
{
“storage_id”:“SSD”,
“name”:“SSD”,
“fore_new_library”: false,
“is_default”:true,
“fs”: { “backend”: “fs”, “dir”: “/shared” },
“commits”: { “backend”: “fs”, “dir”: “/shared” },
“blocks”: { “backend”: “fs”, “dir”: “/shared” }
},{
“storage_id”:“HDD”,
“name”:“HDD”,
“for_new_library”:true,
“is_default”:false,
“fs”: { “backend”: “fs”, “dir”: “/storage/HDD/seafile-data” },
“commits”: { “backend”: “fs”, “dir”: “/storage/HDD/seafile-data” },
“blocks”: { “backend”: “fs”, “dir”: “/storage/HDD/seafile-data” }
}
]
And after restarting server, I don’t have any option on creating new library to select backend. Even when I am setting the type of mapping policy to storageID and set for_new_library to true, it still creates everything on ‘is_default = true’ backend.
When I am setting default backend as HDD, I can’t read my SSD’s libraries. When I am setting both as default, server cannot load any library and setting to no default backend results in error creating a new library. Paths are valid, I am sure of that (new folders like blocks
are created right there where I want).
If it’s important, I am using WebDav as HDD space (Hetzner’s StorageBox).
What can I do to fix that?
Regards!