Let directadmin users acces files on other disk

Tigl

Verified User
Joined
Dec 4, 2015
Messages
5
Hello,

I have a DirectAdmin server with a external mounted disk. This disk is mounted on /mnt/bigstorage. Now I have a user who is going to use the external disk for storing their files.

The path to the user (as in every DA user) is /home/username/domains/domain.nl/. We tried a link from the external drive to the folder above public_html but with a server on a 300GB harddisk and the external drive being over 2TB the files count for the system disk as well. This made the server crash after we moved all the files to the external drive.

So now my question is it possible for a DA user to store files on another disk, and if so what is the trick for doing so?

Thank you!
 
Hello,

Not too sure what issue did you face with it. What kind of links did you use? Did you try to mount --bind ?
 
To be honest I have no idea how to make this work. We currently have a symlink linking from the external drive to a folder in the DA user directory.

The current symlink way makes the VPS see the files see it as part of our main disk which is just 300GB, the external disk is 2TB.
 
Let's say you have user1:

Code:
mkdir [COLOR=#333333]/mnt/bigstorage/user1
[/COLOR]mkdir [COLOR=#333333]/home/user1/[/COLOR][COLOR=#333333]bigstorage[/COLOR][COLOR=#333333]
mount --bind [/COLOR][COLOR=#333333]/mnt/bigstorage/user1[/COLOR] [COLOR=#333333]/home/user1/[/COLOR][COLOR=#333333]bigstorage
chown user1:user1 [/COLOR][COLOR=#333333]/home/user1/[/COLOR][COLOR=#333333]bigstorage[/COLOR]

something like that.

p.s. Update /etc/fstab to keep the changes permanent. Use post/pre scripts to automate the process.

If it's something too complicated, feel free to contact me for a private help.
 
Back
Top