Forum archive
Common Shared folders for all appliances?
Hi,
I'm a new user (of Turnkey and of server environments in general) so I apologize if my questions are very stupid and have very obvious answers. I wasn't able to find relevant information in the documentation, though. The question is this: how can I get different appliances to communicate with each other and share common data folders? If there are instructions or tutorials on how to do this, please just point me to them.
Here's why I want to do that. I have two TKL appliances (and I'm planning to install more) running within the Proxmox VE. One is the Torrent Server Appliance and the other one is the File Server Appliance. The purpose of the Torrent Server Appliance is obvious. With the File Server what I want to do is to manage the backup copies from all the computers connected to my network. What I want, though, is to be able to gather all those files (the downloads from the torrent server and the folders with all the backup files) in a single folder so that I can make periodical backup copies of this folder on to an external drive or NAS.
I imagine that this shared folder would have to be within the Proxmox VE since now this is the only thing I have installed on the server hard disk. I'm planning to add some more hard disks to the server, though, so the shared folders could also be (perhaps preferrably?) in an independent hard disk or partition. How does one go about doing this, though? How about saving or synchronizing this folder with a NAS in my network.
I was thinking that one possibility was to have File Server appliance copy the completed files from the Torrent server appliance and then backup all the files on to the external hard drive or NAS but how can one appliance communicate with the other to do that?
Again, I think this is very simple but I guess I'm not using the right keywords to do the searches and I can't find the relevant information in the available documentation. Thanks in advance for your help.
JM
So in effect the Torrent server appliance is the Fileserver apliance but with the torrent stuff on top (although I don't recall whether it still has eXtplorer as well?).
Anyway there are many different ways to skin this cat. As both the Fileserver and Torrent server have Samba installed SMB/CIFS is one option (Samba shares can be mounted on boot if you so desire). As it is a common fileshare protocol/filesystem (Windows native filesharing) it may be a good option in that regard. Personally I try to avoid SMB when doing Linux to Linux transfers although I don't have a really good reason (I have read stuff but never actually checked for myself).
If you run both appliances as OVZ then you can actually use symlinks on the Host OS (ie in PVE). I'm not sure whether this is actually a good thing or not, but I have done it and it seems to work, although it screws with the disk quota that the VMs report and may not be 'best pratice'.
NFS (native Linux file sharing) is another option but personally I have not been able to get the PVE host to load the NFS kernel module successfully (so it won't work for me in OVZ containers - they don't have their own kernel). Should be fine under KVM though.
SFTP is installed & configure by default in all TKL appliances so is a great option IMO. My personal favourite ATM is SSHFS. Instead of connecting to the remote server, it allows you to mount a folder on a remote SFTP server as a local filesystem. The beauty of that is that you can configure it to mount on boot. I've had zero issue with it (It's how my Linux XBMC HTPC connects to my TKL Fileserve).