olliraa
(Olli Raatikainen)
November 11, 2016, 5:26am
1
Hi.
Just installed 6.8 Final on a separate ssd (sda) Then I created a Raid-1 array consisting of 2 “normal” hdds (sdb, sdc) with mdadm and mounted it in /media/data.
I cannot find a way to change the path of the shared folders/ftp/owncloud anywhere in the gui, so I guess it’s somewhere else Could someone please tell me how can I configure my system to use the mounted raid-1 array to be the place where all my stuff actually goes?
Thanks
m.traeumner
(Michael Träumner)
November 11, 2016, 8:15am
2
Hi Olli,
I think the second answer in this chat could be your solution too.
From what I understand the data from the shared folders and data from owncloud are saved in two different places on the server. Is there any way to make this one place? So that every change in the ownCloud also changes in the shared folder? I guess this is not possible but I just wanted to ask anyways.
Thanks!
enzoturri
(Vincenzo Turri)
November 11, 2016, 7:12pm
3
Hi @olliraa
Try reading this
NethServer Version: NethServer release 7.2.1511 (rc1)
I’ve installed NS on a PC with a 1TB hard drive. NS has taken 50GB as the root partition. How do I make the rest of the drive available for Samba shares etc?
You can act in fstab or use symlinks
olliraa
(Olli Raatikainen)
November 12, 2016, 7:36pm
4
Thanks for the replies I have some understanding regarding symlinks, but now I’m stuck
This is what I want to do:
Make the symlinks in a way that:
All the files originally saved in /var/lib/nethserver/ibay
end up to
/media/data/ibay (this is located on my md0 raid-1 array)
Could someone please point me to the right direction here?
This is not a complicated task (I guess), but I need help here
1 Like
enzoturri
(Vincenzo Turri)
November 13, 2016, 4:51pm
5
Try this:
Copy the original ibay folder to the destination
cp -Rf /var/lib/nethserver/ibay /media/data/
Rename the original ibay folder
mv /var/lib/nethserver/ibay /var/lib/nethserver/ibay.original
Create a symbolic link
ln -s /media/data/ibay /var/lib/nethserver/ibay
assign rights to the folder ibay
If you use OpenLDAP:
chmod 775 /media/data/ibay
chmod 777/media/data/ibay/* -R
chown nobody:nobody /media/data/ibay/* -R
if you are using Samba AD check original rights
ll /var/lib/nethserver/ibay.original
Remember to add folder /media/data/ibay in backup (from WebGui)
1 Like