-3

I started looking at - Is FreeNAS reliable? I would have taken issue with TV10's comment : "longer than a UPS would handle it" (but I don't yet have a rating high enough to do so).

I am running a trial for this with a laptop (with 2GB mem) running FreeNAS with a USB powered 500GB drive - the laptop gives me some UPS type support, but I lost my zfs disk when FreeNAS hung on a shutdown - the fora all say I need 8GB memory to run ZFS reliably, so I am now using UFS for now.

I am looking to buy a small FSP UPS and add memory to my office sever PC (running Ubuntu), but run FreeNAS in a Virtualbox VM - with scripts triggered by the UPS (via "Network UPS Tools" (NUT)) to shutdown FreeNAS and then the host PC. So the UPS just needs to keep it all up long enough for a clean shutdown... FreeNAS will give me the NAS function, which will synced overnight with disk on the host server, and backed up from there. I want to run some other functions on the host, and would rather not have to go that in jails on a host FreeNAS.

I plan on committing 8GB mem to the VM, with about 2TB zfs disk/s (maybe with raid-1).

Has anyone advice setting this up?


  • I accept that VirtualBox is an overhead, and complexity, that I do not need to add.
    • I do not fully accept that VirtualBox iself is a problem though, as I have used it for some time without issue (even recovering a Windows VM from a backup VDI file, when Windows caused a corruption...) - but that was not my main question here.
  • I also accept that I can add Network UPS Tools (NUT) and Samba to my base Ubuntu system to acheive the NAS results I desire.
  • An ext4 filesystem may be ok, but ZFS on Ubuntu is work me looking at for snapshots and software RAID options.

Thank you all for your input, Ian .

irdroid3
  • 82
  • 1
  • 5
  • 4
    VirtualBox? Are you serious? – Michael Hampton Mar 02 '14 at 18:17
  • Whilst Oracle declares VB to be Enterprise ready I wouldn't be using it for anything like this. We're also [not convinced about it's topicality here](http://meta.serverfault.com/questions/5529/in-what-circumstances-should-virtualbox-questions-be-on-topic). – user9517 Mar 02 '14 at 18:23
  • 6
    FreeNAS...inside virtualbox...using a USB drive for storage? Yeah...that's not likely to work so great. What functionality are you trying to get from FreeNAS that you can't do with the ubuntu host? Depending on what you are trying to do there are probably better ways to achieve it. – Grant Mar 02 '14 at 18:41
  • The USB drive was just a prototype - that lasted a few minutes... – irdroid3 Mar 02 '14 at 18:46
  • I wanted to use FreeNAS because I did not want to have to setup (and maintain) all my own NAS functions under Ubuntu. – irdroid3 Mar 02 '14 at 18:48
  • I have had as many problems with VMWare as VirtualBox - IE very few. This question is more about running FreeNAS in a VM and passing the UPS power status to the VM, than which VM tool is used. If the definition of "server" on this forum does not scale small enough then I will bail out here. – irdroid3 Mar 02 '14 at 19:01
  • Define what "reliable" means for you. What kind of uptime or downtime is tolerable in your scenario? Also - what is the problem you are trying to solve? – Matthew Ife Mar 02 '14 at 22:45
  • Matthew, my "problem / requirement" is to setup a shared disk for various team members, who may be using a variety of device types. – irdroid3 Mar 02 '14 at 23:13
  • This only has to be accessible on the internal network. As to reliability - I think could be measured by 1)%-stability and 2)%-admin-time. The odd admin intervention of it fails would be acceptible, so long as it does not involve long recovery of disks/data. My experience with ZFS on the prototype was worrying - that was a total data loss and unrecoverable - other than from backups. The UPS is inteneded as protection from power outages - which from experience do corrupt disks/data. The NSA is for availability of data to the users, I can backup data from the NAS via another connected server – irdroid3 Mar 02 '14 at 23:21
  • 3
    The point is, desktop-grade Type 2 virtualization (which VirtualBox is even in its supposedly enterprise "headless" mode) is not well suited for running services meant to be even halfway reliable. Sure you can use it for prototyping, development, etc., but it's absolutely not what you want to run in production, unless you _like_ data loss for some reason... – Michael Hampton Mar 03 '14 at 00:27
  • ["Absolutely must virtualize FreeNAS!" ... a guide to not completely losing your data.](http://forums.freenas.org/index.php?threads/absolutely-must-virtualize-freenas-a-guide-to-not-completely-losing-your-data.12714/) is worth reading regarding FreeNAS and virtualization. – Håkan Lindqvist Apr 05 '14 at 20:27
  • Thank you Hakan, I had a quick look, but was happy to stick with the first paragraph of this : "You need to read ["Please do not run FreeNAS in production as a Virtual Machine!"](http://forums.freenas.org/showthread.php?12484-Please-do-not-run-FreeNAS-in-production-as-a-Virtual-Machine!&p=58364&viewfull=1#post58364) ... and then not read the remainder of this. You will be saner and safer for having stopped." – irdroid3 Apr 07 '14 at 19:02

1 Answers1

5

Adding a layer of FreeNAS inside of VirtualBox will not make your configuration more reliable, given your reason for not wanting to use Ubuntu.

With regard to UPS functions, I prefer to keep them as close to bare-metal as possible. In this case, your Ubuntu host system should handle that. In reality, I don't bother with UPS integration much anymore, since it's easy to plan for the requisite runtime with today's batteries (plenty of opportunity to manually halt systems).

  • Does your area have a history of unstable power?
  • How much runtime do you need?
  • Are other things in the network battery-protected?

The rest of the configuration sounds unnecessarily complex. If you have RAID on your local server's disks, it makes sense to just use those without the overhead of virtualization and the complications of ZFS (doing ZFS the right way requires planning). The proposed plan sounds less stable/reliable and will perform worse than just extending the functions on Ubuntu.

ewwhite
  • 194,921
  • 91
  • 434
  • 799
  • I agree with the UPS near bare metal. No, nothing else is UPSed at the moment. I will look at what to add to Ubuntu to do the NAS work. Cheers, Ian – irdroid3 Mar 02 '14 at 23:24
  • @irdroid3 I'll add that [ZFS can run on Ubuntu now...](https://wiki.ubuntu.com/ZFS). That could be an option as well. – ewwhite Mar 02 '14 at 23:27
  • @ewwwhite - thank you - I will prob stick with ext4 on Ubuntu, but there ARE loads of items on "ext4 V zfs" here, and on http://www.phoronix.com/forums/ – irdroid3 Mar 03 '14 at 11:20
  • I am now inclined to look at Ubuntu with Samba, and maybe zfs (for snapshots and software raid). – irdroid3 Mar 03 '14 at 12:00
  • one last point : I want the UPS setup to run 24x7 (ok, I don't expect that amount of uptime in reality) - and to be able to auto-shutdown safely in the case of a power loss. I am quite happy to re-start it manually though. – irdroid3 Mar 03 '14 at 12:35
  • I have installed Samba on my Ubuntu server - that was faily easy, but not as easy as a FreeNAS setup, which does a lot of it for you. No one tutorial had all the answers to get it working - firewall, userids and permissions... – irdroid3 Mar 13 '14 at 11:41
  • Next to get the UPS talking to NUT on there... – irdroid3 Mar 13 '14 at 11:42