Knowledge Base

Knowledge Base / XFilesharing Pro / How to ...

Adding additional disk to the system

09/15/2016 07:00 AM
I have recently purchased an additional disk for my file server. How can I make XFileSharing to store files on it?


The best way is to use the program named 'mhddfs' in order to join the several UNIX mount points in a single one. In example below we consider that you have 1 system disk and 7 additional disks that are already formatted in ext4 file system.

1. Mount your additional disks in the following way:

$ df -h
/dev/sdb 2.7T  600G  2.0T  23% /pool/storage02
/dev/sdc 2.7T  601G  2.0T  23% /pool/storage03
/dev/sdd 2.7T  599G  2.0T  23% /pool/storage04
/dev/sde 2.7T  597G  2.0T  23% /pool/storage05
/dev/sdf 2.7T  576G  2.0T  23% /pool/storage06
/dev/sdg 2.7T  576G  2.0T  23% /pool/storage07
/dev/sdh 2.7T  576G  2.0T  23% /pool/storage08

2. Create the "/pool/storage01" directory which will be located on your system disk

3. Install mhddfs on your server

4. Use the following /etc/fstab rule for mhddfs mount:

mhddfs#/pool/storage01,/pool/storage02/,/pool/storage03,/pool/storage04,/pool/storage05,/pool/storage06,/pool/storage07,/pool/storage08 /storage fuse default_permissions,allow_other,mlimit=99 0 0

5. Create the /storage directory and mount it

6. Move cgi-bin/uploads/ and cgi-bin/temp/ directories in /storage/, and either alter paths in or symlink them back.