Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo as a NAS?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Mar 30, 2018 12:00 pm    Post subject: Gentoo as a NAS? Reply with quote

Morning all!

Hopefully I'm asking this in the right place. I am curious to know if anyone is using Gentoo as a NAS? I just installed Open Media Vault on a workstation I purchased recently (very cheap) and to say the least, I am not happy at all with OMV. I've only been playing with it for a few hours, but I'd love to have a LOT more control over the system, and decide what is and what is not installed (it honestly seems like I'm back to using Windows). It also seems that it would be a lot easier to install Gentoo, fuse the drives together with mhddfs, share the folder and you're up and running. I've done a few google searches and I haven't had much luck trying to find someone who is using Gentoo as a NAS, besides someone talking about hardware in the forums here. Anyhow, if there's someone using Gentoo in this way, first am I right? Is it an easier, more enjoyable experience using Gentoo than the out of the box FreeNAS or OMV? What software did you use? What have been your biggest issues? etc.

Thanks in advance for any input to this thread!
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Fri Mar 30, 2018 1:15 pm    Post subject: Reply with quote

I do, I have a little VIA box that has Gentoo on it. Primarily as a NAS but also acting as a git server, redmine, irc etc...
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Mar 30, 2018 2:19 pm    Post subject: Reply with quote

Nice! If you don't mind me asking, what packages are you using for your NAS, what issues have you run into, do you have any recommendations for someone who is COMPLETELY new to network mapping, etc?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Sat Mar 31, 2018 3:50 am    Post subject: Reply with quote

I have three of these. Two are old Athlon 64x2 systems with 4GB each, and four 1TB disks each. I use BTRFS RAID10 on them. Samba hosts shares for Windows clients. No desktop, shell only, tiny install. I also have a new one with a Xeon and 8GB in it, but the same BTRFS RAID10 setup. Works wonderfully. I create a subvolume for each share so they can individually be snapped and such.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Gatak
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 174

PostPosted: Sat Nov 17, 2018 9:31 pm    Post subject: Reply with quote

Gentoo is great as NAS. But then it boils down to what your needs are.

I use Gentoo as NAS with

* Samba as file share. With automatic snapshots exported as 'previous versions' to Windows clients.
* Nextcloud as front end and mobile sync (files, contacts, calendar).
* Btrfs filesystem. RAID 1 for critical and RAID 0 for other stuff.
* External backup with btrbk

Run a few other stuff too like xmpp (prosody), dhcpd, nsd, unbound etc..

The automatic btrfs snapshot guide: https://wiki.gentoo.org/wiki/Samba_shadow_copies (but I would use btrbk instead of the supplied script as it has more features)
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Sat Nov 17, 2018 10:10 pm    Post subject: Reply with quote

I think I've perfected the simplicity of turning a Gentoo box into a darn good NAS. My current set up is an A10(?) With a 2 mediafire pro boxes (32TB of storage), fuse and sshfs. I use Kodi as my media player and run it with my phone (Yatze). I honestly can't see a need for OMV or FreeNAS.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Sun Nov 18, 2018 4:28 am    Post subject: Reply with quote

I don't have recent experience building a NAS. But I've built several over the years.

I stopped building them a few years back because, for a work environment, you simply can't build one for what you can buy one for. A commercially built NAS has fine-tuned hardware, possibly even a custom motherboard. They buy the parts in bulk to drive the cost down, they build them on an assembly line and the software is fine-tuned and configured right on the image they burn to the disk. If you actually pay yourself to build the NAS then you are better off buying one off the shelf.

BUT...

If you want something very specific, a commercially built NAS can be a massive pain in the ass.

IMO the only 3 reasons you might try anymore, as far as I can think of, are:


  1. You have extremely specific needs which can't be met by commercially available hardware
  2. You're building one for your home, or a small non-profit, or similar, and simply can't afford to buy a good NAS and so you're using a 10-year-old desktop.
  3. You're educating yourself on how to build a NAS and don't care about cost or performance.


It seems to me like you might be in the first group, except for the mhddfs comment which IMO is insanely risky if you intend to actually store valuable information on it. Either you don't care about the integrity of your data, or you haven't been screwed over by disk failures yet.
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Sun Nov 18, 2018 6:51 pm    Post subject: Reply with quote

I did have a drive fail on me recently, and losing the data on it 'kinda' sucked. I built my NAS simply to share media on all my HTPC's, instead of loading a movie or TV show on an external drive or transfer it between pooters. There's nothing overly important, or at least nothing that can't be replaced (TV shows and movies) that's on my NAS. The videos & photos of my son/wife are backed up on all of my pooters and their secondary drives, I would never leave that to chance. Even using raid I still would not use only my NAS to house files of such importance.

As for the hardware, I do not need much. I bought a cheap server (second hand) and I have 3 additional boxes that were put together with very inexpensive hardware because all they really do is play video files and MP3's. I considered using a binary distro when I realized how much I disliked OMV/FreeNAS, but this would eventually demand upgraded hardware long before Gentoo would. Gentoo coupled with Fluxbox & i3 gives me the continued stability and speed on old hardware. I'm not launching a submarine and I'm definitely not making a NAS so I can (or others can) connect outside of my network.

In conclusion, building my NAS is/was as enjoyable as being able to watch and listen to what I've archived in almost every room in our house. If anyone else would love to share their experiences with a NAS that they've built I would LOVE to hear about it. I'm sure a lot more people would as well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum