Knowledge Base

Knowledge Base / XFilesharing Pro

Using multiple hard disk drives on the same file server

01/11/2021 12:03 PM
I have 2 or more hard disk drives in my file server setup. I have chosen not to use RAID or any RAID-like technology due to poor performance on a massive multi-threaded kind of load. How can I use all available disk space without installing a separate copy of XFileSharingPro file server scripts on each of my hard disk drives?


Applicable version: v.3.2 or newer

1. Mount each of your hard disk drives into the operating system.

Note: we suggest you using "/pool/storageXX" as a mount point naming convention

2. Create the uploads and temp directories on each of your HDD mount points:

mkdir /pool/storage01/uploads
mkdir /pool/storage01/temp
mkdir /pool/storage02/uploads
mkdir /pool/storage02/temp
... and so on

3. Ensure that each of created folders is writable by your web user. If you don't know your web user name and unless your server is accessible by anybody else, you can set the 0777 UNIX permissions alternatively.

4. Create symlinks into your cgi-bin directory accordingly to the following naming convention:

ln -s /pool/storage01/temp/ /var/www/cgi-bin/temp/01
ln -s /pool/storage01/uploads/ /var/www/cgi-bin/uploads/01
ln -s /pool/storage02/temp/ /var/www/cgi-bin/temp/02
ln -s /pool/storage02/uploads/ /var/www/cgi-bin/uploads/02
...and so on

(Note: you may have to change '/var/www/cgi-bin/' accordingly to your configuration)

If you did everything right, newcoming uploads should be already being stored accordingly to created symlink locations instead of being written into your uploads/ directory directly. We still, however, suggest to trigger that file server's testing procedures by navigating to that server's tab in your Admin Servers area and pressing "Save".