With the lack of Apple server hardware I’ve started moving clients onto Synology box’s. They are simple to use (knock on wood) never go wrong, yes the odd hard drive failure, but thats inevitable. The only issue I have run into is a lot of people I do work for run on premise Kerio Connect servers which the Synology can’t run.
So my options have been the MacMini server which no longer exists (so just a mac mini now) or a Branded server from Dell, HP, Lenovo and the likes. I’ve found the MacMinis to be reliable enough for this task so I’ve just stuck with them. The only issue is the lack of raided hard disk support.
So I decided to setup an NFS share on a Synology and set the NFS share as a system volume. This way Kerio’s mailstore, Archives & Backups are kept on the Synology which I have more than enough faith in.
This was done on OS X Yosemite Server (10.10.3)
Edit the /etc/autofs.conf file
sudo nano /etc/autofs.conf
Locate the AUTOMOUNTD_MNTOPTS section and add resvport to the end of the line.
Next edit the /etc/auto_master
sudo nano /etc/auto_master
You should be presented with the following:
# # # Automounter master map # /mnr/Resources auto_resources +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid /home auto_home -nobrowse,hidefromfinder /Network/Servers -fstab /- -static
Add the following to the end of the file:
### The above information is default ### /- /etc/automounts/nfs
Next create the automounts folder and the nfs file that you added to the /etc/auto_master
sudo mkdir /etc/automounts sudo nano /etc/automounts/nfs
Add the following to your /etc/automounts/nfs file
/Network/demo -fstype=nfs,rw,bg,hard,intr,tcp ipaddress:/nfsvolume
/Network/demo being the name of the mount point or share. So if you wanted yours to be called mailstore you would use /Network/mailstore. The ipaddress should be the IP address or DNS name of your Synology and the nfsvolume should be the NFS volume on the Synology.
Now restart your machine and you will notice the NFS volume is attached at start up.