Author Topic: How to do NAS?  (Read 37517 times)

0 Members and 1 Guest are viewing this topic.

Offline BrumbyTopic starter

  • Supporter
  • ****
  • Posts: 12622
  • Country: au
How to do NAS?
« on: November 01, 2016, 01:03:41 pm »
The household network is in need of some community accessible storage.

Currently one of the computers on the network is holding a lot of media files and these are shared to other machines on the network - but it relies on this computer being switched on.  This (and a couple of other developments) has brought the idea of a NAS solution to the discussion table - but the question is ... which way to go?

Current requirements are pointing to 8TB capacity, half of which can be filled up immediately.  Gigabit transfer speeds are nice, but not really necessary.  Obviously, I don't want anything too slow or it will take forever to get anything onto the storage.  The NAS solution will ideally need to handle 24x7 availability, but the occasional reboot would not be a problem.  Hot swap drive capability is not necessary.

Current solutions include the classic NAS box with plug in drives - but this can get expensive.  Next in line is the 'personal cloud' option, but the ones I've seen are a fixed capacity.  To do 8TB, you could be looking at a couple of units, but even these are getting pricey, especially when they're not much more than an external HDD with an ethernet port.

I was then wondering about barebone computers - or even a Raspberry Pi setup....


So, my question is: What can you suggest?
Why Clippy?  --> https://www.youtube.com/watch?v=2_Dtmpe9qaQ
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: How to do NAS?
« Reply #1 on: November 01, 2016, 01:12:05 pm »
I'd say a little miniATX board inside a little PC cabinet
in this way you have all the space and comfort that you need
e.g. AMD Geode miniATX, they are very cheap and they work fine
with x86 you can also choose freeBSD, which is a superb OS

here I don't like SAMBA, so it's not installed
I prefer NFSv3, it has troubles with IRIX in diskless configuration
some work is needed in this case (hack and fine tuning)
but it's ok out of the box for sharing thing along PC network

sometimes I also use sshfs which makes possible to mount things
but it requires "kernel.fuse" and it works only on linux,
the downside: it has some troubles e.g. if you want to share
a repository through sshfs then inotify doesn't work properly

 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 803
  • Country: lt
Re: How to do NAS?
« Reply #2 on: November 01, 2016, 01:14:05 pm »
I would highly suggest a company, that knows what they do. QNAP, Synology or some others NAS suppliers. They know what's needed for performance and how to get things done properly. Most of the RPi systems or "I will use my old PC for that" ended up being painfully slow, difficult to maintain and wasted more time than expected. Especially spending days and weeks setting it up. You want this device to be plugged in and forgotten.
 

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 8910
  • Country: hr
Re: How to do NAS?
« Reply #3 on: November 01, 2016, 01:16:47 pm »
FreeNas or NAS4Free on a PC platform will give you performance and features... If you want to make it yourself..

Or look into small NAS, they are not that expensive..
"Just hard work is not enough - it must be applied sensibly."
Dr. Richard W. Hamming
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2178
  • Country: fi
  • Embedded SW/HW.
Re: How to do NAS?
« Reply #4 on: November 01, 2016, 01:20:00 pm »
Banana Pi vs Raspberry Pi:

http://www.htpcguides.com/raspberry-vs-banana-pi-benchmarks-sata-gigabit-matter/

The Banana Pi has a Sata interface and a Gigabit Ethernet port which are clear advantage.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2178
  • Country: fi
  • Embedded SW/HW.
Re: How to do NAS?
« Reply #5 on: November 01, 2016, 01:24:58 pm »
If you have a Gigabit Ethernet network, you can build a physically distributed, physically redundant system using two cheap servers. The first one is the primary server and the second one is the backup server mirroring the primary server.
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4612
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: How to do NAS?
« Reply #6 on: November 01, 2016, 01:28:24 pm »
I would highly suggest a company, that knows what they do. QNAP, Synology or some others NAS suppliers.

I agree with this. I have a couple of QNAP boxes which have been as close to 'fit-and-forget' as any modern computing equipment, and that's exactly what they need to be.

Please remember to factor a reliable strategy for taking and checking regular backups into whatever solution you end up with.

Offline 1design

  • Regular Contributor
  • *
  • Posts: 166
Re: How to do NAS?
« Reply #7 on: November 01, 2016, 01:57:58 pm »
I use this but the 2015 model and I am very happy with it.
No noise, very reliable, runs 24/7, has a very intuitive interface and works right out of the box with a huge amount of features.
Inside, 2x3TB WD Red drives in Raid 1, no issues in the first year of use. Hope it helps.

BR
 

Offline BrumbyTopic starter

  • Supporter
  • ****
  • Posts: 12622
  • Country: au
Re: How to do NAS?
« Reply #8 on: November 01, 2016, 02:54:25 pm »
All suggestions are welcome.  I like to see what other people have done and/or recommend ... and why.

I will admit I've looked at QNAP gear which seems quite functional and reasonably priced - but there's always that little voice that likes to nudge me into a bit of DIY.  A Banana Pi with ethernet and SATA on board is interesting - but the information I found only shows 1 SATA port available and with a 4TB limit.

The low-end computer box is an idea I've also thought about - but when I look at that option, ideas of a fully fledged server keep muddying up the thinking.  I've not finalised my thoughts on whether the things I might like to throw on a server are actually worth the effort, let alone whether it would be on a local server or from a hosted service.
Why Clippy?  --> https://www.youtube.com/watch?v=2_Dtmpe9qaQ
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8891
  • Country: gb
Re: How to do NAS?
« Reply #9 on: November 01, 2016, 02:59:44 pm »
Even with modern drives, the idea of using a Raspberry Pi or the like for 8TB+ is sheer lunacy.

Have you considered something like a Microserver? £120 after cashback, just add drives: http://www.ebuyer.com/722189-hpe-proliant-gen8-4gb-ram-microserver-ebuyer-com-819185-421

Only takes four, but you can add an eSATA controller and external enclosure if needed, it also has USB3. Fits the bill for 'real server', too, run the OS of your choice. Replace the optical drive with a 2.5" SSD ideally. There's also an internal USB port and microSD slot you can boot from.
« Last Edit: November 01, 2016, 03:03:30 pm by Monkeh »
 
The following users thanked this post: newbrain, 3db

Offline technix

  • Super Contributor
  • ***
  • Posts: 3508
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: How to do NAS?
« Reply #10 on: November 01, 2016, 03:10:47 pm »
You can find mini-ITX chassis with 4 hot-swappable SATA drive bays.You can get mini-ITX server motherboards from ASRock or Supermicro, put a lower-end Xeon and some ECC RAM on it, and a RAID card if you want hardware-based redundency. As of the software side, stock Ubuntu Server always worked for me.
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: How to do NAS?
« Reply #11 on: November 01, 2016, 03:40:54 pm »
(This isn't the right forum)

I've got a QNAP TS-453A, with 4*4GB WD Reds and expanded to 16GB of RAM. The QNAP software is pretty clunky, but I like the ability to easily set up VMs and containers. Before buying I did consider setting up a FreeNAS system, but in the end I decided I didn't have the time or energy to hunt down suitable parts or learn how to configure everything from scratch.

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 803
  • Country: lt
Re: How to do NAS?
« Reply #12 on: November 01, 2016, 06:26:19 pm »
(This isn't the right forum)

I've got a QNAP TS-453A, with 4*4GB WD Reds and expanded to 16GB of RAM. The QNAP software is pretty clunky, but I like the ability to easily set up VMs and containers. Before buying I did consider setting up a FreeNAS system, but in the end I decided I didn't have the time or energy to hunt down suitable parts or learn how to configure everything from scratch.

And I bet that QNAP can update its software with one button click on the web interface? Good luck updating your DIY system every time... I remember the days when a major linux update ended up in crashed system and half to full day bringing it up again. No data lost, but lots of time wasted.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8891
  • Country: gb
Re: How to do NAS?
« Reply #13 on: November 01, 2016, 06:38:05 pm »
(This isn't the right forum)

I've got a QNAP TS-453A, with 4*4GB WD Reds and expanded to 16GB of RAM. The QNAP software is pretty clunky, but I like the ability to easily set up VMs and containers. Before buying I did consider setting up a FreeNAS system, but in the end I decided I didn't have the time or energy to hunt down suitable parts or learn how to configure everything from scratch.

And I bet that QNAP can update its software with one button click on the web interface? Good luck updating your DIY system every time... I remember the days when a major linux update ended up in crashed system and half to full day bringing it up again. No data lost, but lots of time wasted.

Don't need luck, have experience and knowledge..
 

Offline f1rmb

  • Regular Contributor
  • *
  • Posts: 180
  • Country: fr
Re: How to do NAS?
« Reply #14 on: November 01, 2016, 07:08:08 pm »
Hi,

  As @2N3055 mentionned, FreeNAS is a really nice solution. It also permit to create many jails, running various services/systems, just check the website.
I personnaly running that on an old Gateway GR320F1 server blade, with 4*1Tb in RAID-Z1. Soon I will upgrade the array to 4*3Tb.

Cheers.
---
Daniel
 
 

Offline julianhigginson

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: au
Re: How to do NAS?
« Reply #15 on: November 01, 2016, 07:56:04 pm »
gosh, that's a lot of bytes!

first question is, how much of this storage is for critical data that needs to have redundant copies? and do you have other solutions (like, say, offsite/cloud backup) for the critical data?



 

Offline f1rmb

  • Regular Contributor
  • *
  • Posts: 180
  • Country: fr
Re: How to do NAS?
« Reply #16 on: November 01, 2016, 08:23:21 pm »
gosh, that's a lot of bytes!

first question is, how much of this storage is for critical data that needs to have redundant copies? and do you have other solutions (like, say, offsite/cloud backup) for the critical data?

Well, I'm running an ownCloud jails which holds all the familly accounts (7 souls), source code repository, tons of friends data, local Hamradio club library, and *lot* of media (in an Emby jail).
At the moment, I'm getting short in storage (~500Gb free on 3Tb space) ;-)

Cheers.
---
Daniel
 

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: How to do NAS?
« Reply #17 on: November 01, 2016, 08:33:50 pm »
Think of the basics here. Do you want to just have a common storage area or do you want more.
If you have a Raid 1 mirrored drives, is your data safe?
If the Raid controller dies will a different controller work with the data?
At the basics a drive is a block device, how does a Raid controller know that this block is good and that block is bad?
A disk drive is a computer, an error in the program could easily cause the wrong block to be changed. You have a mirrored file with a block with different data on the two drives, which is correct?
Note here that no error from drive is sent to the computer.
If you have a 3 drive mirror, is the matching two the good block or the one.
These and other problems is what file systems like ZFS is there to try to prevent. ZFS adds a checksum to add protection from ram to drive and back to find these errors and correct them.

Current FreeNAS & FreeBSD use ZFS as the file system. As every time, when you add more, more computing power is needed to maintain the same speed.

Need to think of the foundation you are building on. An error at foundation level can remove safe from higher levels.

     
 
The following users thanked this post: 3db

Offline rsjsouza

  • Super Contributor
  • ***
  • Posts: 6202
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Re: How to do NAS?
« Reply #18 on: November 01, 2016, 09:09:46 pm »
I have a Netgear NAS RN10400 with 4x 3TB Western Digital Green HDDs in RAID 5 and it has been working like a charm for quite a few years. It is not the top performer out there, but it is pretty power savvy and I did not have a hiccup in many years of use.

I thought about using a true embedded solution (RPi, BBone, Hawkboard, etc.) but I couldn't be at peace in trusting my data with them.

I also thought about building a larger PC with a bunch of drives on it, but at the time I couldn't find something as low power as the NAS.
Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 

Offline Dielectric

  • Regular Contributor
  • *
  • Posts: 127
  • Country: 00
Re: How to do NAS?
« Reply #19 on: November 01, 2016, 09:19:30 pm »
I've been happy with my Synology DS212j, two drives, mirrored.  It will serve all kinds of media and they provide an IP redirecting service if you want to fool with that.  Quiet, small, basically just does its thing over there all day long.  You can set up any number of auto-sync methods, pretty flexible overall.  I don't feel like admin-ing that kind of stuff anymore so the appliance route was most attractive.
 

Offline julianhigginson

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: au
Re: How to do NAS?
« Reply #20 on: November 01, 2016, 10:37:58 pm »
Well, I'm running an ownCloud jails which holds all the familly accounts (7 souls), source code repository, tons of friends data, local Hamradio club library, and *lot* of media (in an Emby jail).
At the moment, I'm getting short in storage (~500Gb free on 3Tb space) ;-)

Hmm.. OK sounds like this storage needs to be protected.
so you want redundant RAID at the very least.

And for everything that's not easily replaceable, you probably want offsite backup, because a RAID NAS is no good if someone steals it, or if the house burns down.

I don't think you're going to do much better than a dedicated Qnap or Netgear NAS in terms of power efficiency and ease of setup. you should only need 1 extra drive over the base requirement here (so 5x2T drives, or 4x3T drives, etc..) Just make sure if you do have a disk error, that you get the replacement in fast. My sister's partner had a big NAS setup with redundant storage, and after a year, one drive failed... he figured he should replace it someday.. unfortunately after about a month another drive failed (he got a bunch of HDDs from a not so great batch, apparently) and the data recovery process was expensive.

The real question becomes - how are you going to back all the critical info up offsite?
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3810
  • Country: au
Re: How to do NAS?
« Reply #21 on: November 01, 2016, 10:48:08 pm »
I have a Netgear NAS RN10400 with 4x 3TB Western Digital Green HDDs in RAID 5 and it has been working like a charm for quite a few years. It is not the top performer out there, but it is pretty power savvy and I did not have a hiccup in many years of use.

I am a fan of the Netgear ReadNAS. Instead of ZFS, it uses btrfs (pronounced ButterFS) which is now very solid and is directly integrated into linux. Under the hood, it is running Debian or Ubuntu linux, so you can do all the normal linux commands or load new linux programs with apt-get.

Both ZFS and btrfs allow snapshots and the ReadNAS allows you to have all the snapshot folders mounted and you can browse back to any date any time you want. The snapshots take no time or noticeable disk space so you can snapshot daily or hourly if you want. Old automatic snapshots automatically expire when the drive needs to make new space for new data, so the snapshot from a year ago may vanish if the drive needs to free up space. Manual snapshots never are deleted unless you delete them manually.

I do not have the Windows share (SMB) enabled at all. One of the clients I look after got a cryptovirus and it found the NAS box SMB shares and started encrypting the files there, even though the infected PC did not even have the share mapped. Recovery was no problem, as I only had to recover from yesterdays snapshot.

I sync data from the PC using cygwin rsync (very fast and efficient) and use something like WinSCP to access the files on the NAS box. I also use rsync to daily sync things like websites and mail on the website. Daily synching a 2.2G wordpress site takes about 1 minute on an ADSL connection.

The thing about NAS boxes is you really want two in different locations, and I use daily rsync to sync the 2 NAS boxes. Again, it only has to sync the compressed file differences between yesterday and today, so even ADSL is often good enough to sync terabytes. Once the sync is set up, it is very reliable so you can even put the second NAS at your mother-in-laws.

You can run Owncloud from the readyNAS if you want.

One of the reasons I have gone with btrfs instead of ZFS is ZFS should have 1G or ram per terabyte of physical disk space. So if you want 8T in a raid, that is at least 10T of disks and so you need 16G ram. btrfs will happily work with 500M of ram.

With long term storage and raid, bit-rot is really important to consider as the backup data on a second disk may not even be tested until the first disk fails. With the ReadyNas, you can schedule the drive to do a background SCRUB weekly that checks all the data on all drives, and this will also allow the drive to swap a failing sector to a replacement sector before there is a problem.

I also have a NAS running at home as a virtual machine on a old 4G Ram PC running Proxmox VM server. I have about 5 other servers running on the same free Proxmox. There is no need to use NAS specific software - I am just using a btrfs system running on Archlinux. I have the Arch-btrfs VM directly accessing the physical NAS drives. Works great. Don't really need any of the other NAS bells and whistles. Add OpenSSH and rsync (perhaps OpenVPN) and you are set.
« Last Edit: November 01, 2016, 11:11:22 pm by amspire »
 

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 3957
  • Country: gb
Re: How to do NAS?
« Reply #22 on: November 02, 2016, 10:06:05 am »
... it uses btrfs (pronounced ButterFS) which is now very solid...

Well, almost. BTRFS will be great but some RAID modes are broken at the moment:

https://btrfs.wiki.kernel.org/index.php/Status
https://btrfs.wiki.kernel.org/index.php/RAID56

Edit:
Apparently the above BTRFS problems don't affect ReadyNAS:
https://community.netgear.com/t5/Using-your-ReadyNAS/btrfs-unsafe-news/m-p/1123549#U1123549
« Last Edit: November 02, 2016, 02:24:04 pm by voltsandjolts »
 

Offline Kilrah

  • Supporter
  • ****
  • Posts: 2057
  • Country: ch
Re: How to do NAS?
« Reply #23 on: November 02, 2016, 11:25:49 am »
The only NAS I've used was a Synology and was really nice, quick and easy setup (nearely too much, not challenging enough!) and I was surprised by the features/flexibility. It can also act as full fledged server for most common services with either built-in or downloadable apps.
I used to use it with only one of the drives fitted, with the 2nd bay usually empty unless once a week or so to make a backup (using the built-in backup system).

Ended up selling it since in my use case a NAS is actually pretty pointless, I had gotten it mostly for experimentation and to see how much of my previous server (netbook-based) I could reproduce on it, ended up being pretty much everything. I'm much better off with just internal storage in my main PC (2x 6TB in RAID0), and have migrated my web stuff to commercial hosting.

But yes as usual thinking of an appropriate backup method may be more complicated than the choice of the main storage solution, and may influence it as well. How will you backup your NAS?
« Last Edit: November 02, 2016, 11:27:45 am by Kilrah »
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8891
  • Country: gb
Re: How to do NAS?
« Reply #24 on: November 02, 2016, 12:08:01 pm »
... it uses btrfs (pronounced ButterFS) which is now very solid...

Well, almost. BTRFS will be great but some RAID modes are broken at the moment:

https://btrfs.wiki.kernel.org/index.php/Status
https://btrfs.wiki.kernel.org/index.php/RAID56

The use of btrfs in a commercial product at this stage is.. well, just what I'd expect of Netgear: Stupid.

Don't get me wrong, I like btrfs, but.. it's not ready for that sort of application.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->