Preparing FileStore
Prepare a FileStore (it holds Open-Xchange Contexts' files).
Calculating FileStore Size
To calculate the required Open-Xchange FileStore size, use the following formula:
Planned Number of Open-Xchange Contexts * Planned Average Size of Open-Xchange Context, where:
- Planned Number of Open-Xchange Contexts – planned number of the subscriptions with the Open-Xchange application.
- Planned Average Size of Open-Xchange Context – planned average size of the Open-Xchange Context on the FileStore.
Make sure the planned average size of the Open-Xchange Context is not less then a value of the AVERAGE_CONTEXT_SIZE parameter (in MB), which is specified in the /opt/open-xchange/etc/admindaemon/plugin/hosting.properties
file. Open-Xchange allows a creation of a Context when (Current Number of Contexts + 1) * AVERAGE_CONTEXT_SIZE is less then a FileStore size. The default value of the AVERAGE_CONTEXT_SIZE parameter is 200MB.
If a value of the AVERAGE_CONTEXT_SIZE parameter is modified, restart the Open-Xchange services using the following commands:
service open-xchange-admin stop
service open-xchange-admin start
service open-xchange-groupware stop
service open-xchange-groupware start
Examples of the Open-Xchange FileStore size calculation:
- It is planned to provision 1,000 Contexts 200MB in size. The Open-Xchange FileStore size is 1,000 * 200MB or 200,000MB in total. The planned average size of the Open-Xchange Context is (1,000 * 200MB) / 1,000 or 200MB in total. Thus, the default value 200MB of the AVERAGE_CONTEXT_SIZE parameter may be used.
- It is planned to provision 1,000 Contexts 150MB in size, 500 Contexts 300MB in size, and 250 Contexts 600MB in size. The Open-Xchange FileStore size is 1,000 * 150MB + 500 * 300MB + 250 * 600MB or 450,000MB in total. The planned average size of the Open-Xchange Context is (1,000 * 150MB + 500 * 300MB + 250 * 600MB) / (1,000 + 500 + 250) or 257MB in total. Thus, a value of the AVERAGE_CONTEXT_SIZE parameter should be set to 257MB.
Registering FileStore
To register a FileStore, use the /opt/open-xchange/sbin/registerfilestore
command:
/opt/open-xchange/sbin/registerfilestore -A <Open-Xchange Admin Master Login> -P <Open-Xchange Admin Master Password> -t file://<Path to the directory> -s <FileStore size in Megabytes>.
For example:
/opt/open-xchange/sbin/registerfilestore -A oxadminmaster -P admin_master_password -t file:///largestorage -s 100000