Boot disk and raid-1 configuration regarding ftp/samba/cloud?

Hi.

Just installed 6.8 Final on a separate ssd (sda) :slight_smile: 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 :slight_smile: 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 :slight_smile:

Hi Olli,
I think the second answer in this chat could be your solution too.

Hi @olliraa

Try reading this

You can act in fstab or use symlinks

Thanks for the replies :slight_smile: I have some understanding regarding symlinks, but now I’m stuck :confused:

This is what I want to do:

Make the symlinks in a way that:

  1. All the files originally saved in /var/lib/nethserver/ibay

end up to

  1. /media/data/ibay (this is located on my md0 raid-1 array)

Could someone please point me to the right direction here? :smiley:

This is not a complicated task (I guess), but I need help here :slight_smile:

1 Like

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