Emma2
(Ralf Pichocki)
January 17, 2019, 12:32pm
1
I’d like to use nethserver as a file server, but I want to store the data “somewhere else” - and not in /var/lib/nethserver/ibay .
Is it ok (and possibly supported?) if I do the following
cd /home
mkdir /myexternaldata (in reality, I want to use an iSCSI-NAS here)
cd /var/lib/nethserver/ibay
mkdir myNASshare
mount -B /home/myexternaldata /var/lib/nethserver/ibay/myNASshare
then I go to nethserver’s web interface and “create” a share named “myNASshare”.
At first sight, this seems to work - but I want to rule out that this procedure can collide with anything running invisibly,
Emma2
(Ralf Pichocki)
January 17, 2019, 2:25pm
3
Thanks, Alessio, and I had found these two before, too.
As I am quite new to Unix (including CentOS, of course), I am a bit weary still.
But I guess that I may take your links as a “Yes” to my main question?
This means, the way I described is “quite ok”, is it?
giacomo
(Giacomo Sanchietti)
January 17, 2019, 5:35pm
4
Almost Just invert the 2 last steps:
go to nethserver’s web interface and “create” a share named “myNASshare”.
mount -B /home/myexternaldata /var/lib/nethserver/ibay/myNASshare (you can it to the fstab also)
This is not the best solution. but should work for most scenarios.
Emma2
(Ralf Pichocki)
January 18, 2019, 8:32am
5
Why so? (Of course, I’d like to learn how things work …)
“My way” did work apparently, so why should I do it the other way around?
Can it be a problem if I create a share with the GUI if the directory already exists?
Or, why do you recommend “your way”?
giacomo
(Giacomo Sanchietti)
January 18, 2019, 9:38am
6
Because the system takes care to correctly set all permissions.
“Your way” doesn’t break anything right now, but it may change in the future