ThomasHall
Dabbler
- Joined
- Jun 5, 2019
- Messages
- 14
I just got myself a HP MicroServer Gen10 and have been experimenting with FreeNAS a bit in preparation for turning it into a NAS/file server for home use. Since this is the first time I've worked with network sharing at all, I could use some help with setting it all up.
My situation is as follows. I've got the FreeNAS box which will have 2x4TB mirrored disks and 1xSSD as scratch drive. I have a W10 desktop, a RPi that will be used as a smart-TV with openELEC or similar, and an Android phone. I also plan on using an Ubuntu server VM on FreeNAS.
The two must-haves here is that the desktop and the VM needs to have access to both the storage and the scratch drives. The VM will be running torrents occasionally, using the SSD for downloads and then moving them to the storage on completion. I may also be using the SSD for other temporary stuff, like unpacking files etc. For the desktop, I'm hoping to use it as a replacement for internal drives I currently use, and to give it access to both storage and scratch drives as if they were local drives.
The RPi and phone is of lesser importance, but I'd very much like for both of them to be able to access the store as well, and for the phone, from outside my network if possible (I have a public IP and can forward whatever ports are necessary).
My thinking is that I'll be using NFS for greater compatibility over different devices since I'm not sure how well SMB is supported on non-Windows and W10 now has a NFS client. I also hear it's a lot quicker. What I've done so far is basically install FreeNAS on the server and created a mirrored pool with 2 dataset ("store" and "VMs") on it. I've installed a clean Ubuntu server 16.04 (newer versions had issues) VM with a disk under the VMs dataset. I've also created an NFS share pointing to the store dataset and created a couple of text files on the share from the FreeNAS shell. I can mount the share in W10 on my computer, but trying to do anything with it just gives me the error that the files are locked. I haven't tried on the VM yet, nor on any other device.
So that's the background, which brings me to my questions:
My situation is as follows. I've got the FreeNAS box which will have 2x4TB mirrored disks and 1xSSD as scratch drive. I have a W10 desktop, a RPi that will be used as a smart-TV with openELEC or similar, and an Android phone. I also plan on using an Ubuntu server VM on FreeNAS.
The two must-haves here is that the desktop and the VM needs to have access to both the storage and the scratch drives. The VM will be running torrents occasionally, using the SSD for downloads and then moving them to the storage on completion. I may also be using the SSD for other temporary stuff, like unpacking files etc. For the desktop, I'm hoping to use it as a replacement for internal drives I currently use, and to give it access to both storage and scratch drives as if they were local drives.
The RPi and phone is of lesser importance, but I'd very much like for both of them to be able to access the store as well, and for the phone, from outside my network if possible (I have a public IP and can forward whatever ports are necessary).
My thinking is that I'll be using NFS for greater compatibility over different devices since I'm not sure how well SMB is supported on non-Windows and W10 now has a NFS client. I also hear it's a lot quicker. What I've done so far is basically install FreeNAS on the server and created a mirrored pool with 2 dataset ("store" and "VMs") on it. I've installed a clean Ubuntu server 16.04 (newer versions had issues) VM with a disk under the VMs dataset. I've also created an NFS share pointing to the store dataset and created a couple of text files on the share from the FreeNAS shell. I can mount the share in W10 on my computer, but trying to do anything with it just gives me the error that the files are locked. I haven't tried on the VM yet, nor on any other device.
So that's the background, which brings me to my questions:
- Is this a workable setup in theory, i.e. can I do what I want based on what I described above?
- Ideally I'd want certain devices on my network (i.e. desktop and RPi) to not have to authenticate when connecting to the share every time, while unknown devices and devices from outside the network would have to use a password. Can this be solved by using multiple shares pointing to the same store, with one being restricted by IPs and the other by password?
- How should I set up permissions for the share for it to work? I realize this is a very broad question, but I simply don't have the experience with this kind of thing to be able to ask something more specific, and I'm somewhat confused in general by how the cross-platform permissions work. Allowing external devices to access the data is obviously the weak point in this, so worst-case scenario, I can drop that requirement and only allow known devices on my network access. I'll probably be back for more on this one as I go.