Feedback Requested: Should I Build A Dedicated or Virtual ZFS-based Storage Server

JPS

2[H]4U
Joined
May 2, 2001
Messages
2,082
I have decided to do some serious consolidation and upgrading at the same time. Right now I have multiple E8400-based systems that are getting a bit long in the tooth. What I am looking to do is both upgrade to a newer system, at a minimum a Lynnfield core, or possibly a Sandy Bridge core, and consolidate the multiple systems into a series of virtual machines using VirtualBox. At the same time, I want to build a centralized storage server that will likely be 12TB to start

Here is where I need the most feedback. Consolidating the multiple systems into multiple VMs is cake and straightforward. I will have anywhere from 4 to 10 at any one time, but they will not be run 24/7, just when needed for testing and development purposes. However, the system I build for storage, using ZFS, will be run 24/7. Does it make sense to make the ZFS storage server a VM running 24/7 within my primary workstation, or should it be a dedicated box - essentially a NAS on my LAN?. The new primary workstation that I am considering will have a minimum of 16GB of RAM and will either be based upon an X3440 Xeon CPU or a newer i7-2600(K) CPU so it should have plenty of horsepower for my day-to-day work as well as powering a storage VM if needed. I also have plenty of storage space with the case I am intending to use - an early gen CoolerMaster Stacker.

What I am unclear about are the potential downfalls of running a storage server as a VM versus as a dedicated box? Are there serious limitations with this kind of setup?
 
I think it is not a good idea to have a ZFS fileserver inside a VM on a Windows host. Windows likes to be rebooted now and then because of updates and your fileserver would have to be restarted every time.

Further, ZFS somewhat relies on having control of cache and buffer flushes to guarantee data integrity which will not be the case if you use it inside a VM. The only way to give complete control of drive caches to ZFS is to use hardware passthrough for the controller, which is only supported by ESXi, KVM and Xen but not by Windows based solutions at the moment as far as I know.

I would use ESXi or Linux KVM to host all your VMs and use a different computer for your workstation.
 
Virtualbox can be configured raw access to the disk, but the controller would still be emulated. While by default it does not honor buffer flush commands, it can be configured to do so.

But is this wise? Why are you chosing ZFS, for its reliability? Then do not introduce an extra layer that can fail your data, unless you really can't avoid using it. The less factors that can 'screw up' your data, the better, is my general thought here. Virtualization might work great for alot of things, but if you want your data to be really well protected, i would prefer ZFS having direct control over everything, no emulation in between. Since ZFS and FreeBSD are highly threaded, the overhead of virtualization might also increase, though this is an assumption from my part.

Building a ZFS box from scratch also means you can use your RAM on your workstation and CPU cycles exclusively to your own local work, and not be hindered by a heavy VM pulling away resources at the moment when your PC needs it the most. With the ZFS box being dedicated, you offload this 'burden' as it were, and cause you to have full system resources; like having a hardware RAID, kind of.

That said, i'm not an advocate of Virtualization, and i'm sure other people can provide insightful advice as well.
 
Thanks to both omniscence and sub.mesa - your replies were spot on. Having read your replies, I completely agree with everything you both pointed out. I am new to ZFS, though not that new to *nix, and my intention in having a ZFS-based storage server is for the reliability, integrity, check-summing, etc. I want a solid place to store data plain and simple. The server will be serving my home and home/office networks (I am a consultant who works remotely from home) so taking it out of a VM and putting it on bare-metal as you both suggested makes sense for the reasons pointed out.

One of the systems I am 'retiring' is built around an Asus P5 WS Supercomputer motherboard, an Intel E8400, and 4GB of ECC RAM. If I upped the RAM to 8GB would this be a solid platform for such a server, despite the fact that it is only dual-core?
 
If you do virtualize ZFS, you *really* want to:
1. Run bare metal hyper-visor. Base OS -> Hypervisor -> Guest OS = asking for trouble
2. Pass through controller(s) directly to the VM. That means you need VT-d (so i5-2500 and i7-2600 but not K variants). I still haven't put ESXi on a Sandy Bridge rig, but I may do that this weekend. VT-d support on LGA 1155 motherboards is not super at the moment and the Intel 82579V included on a lot of Sandy Bridge boards was not on the ESXi HCL as of a few days ago. A Xeon X3440 and an Intel 3420 based board will make you good to go.
3. 8GB of RAM minimum.
4. Main workstation, either X58 or P67. Server wise LGA 1156 and LGA 1366 are much more mature than the P67/H67 for the time being.
 
If you do virtualize ZFS, you *really* want to:
1. Run bare metal hyper-visor. Base OS -> Hypervisor -> Guest OS = asking for trouble
2. Pass through controller(s) directly to the VM. That means you need VT-d (so i5-2500 and i7-2600 but not K variants). I still haven't put ESXi on a Sandy Bridge rig, but I may do that this weekend. VT-d support on LGA 1155 motherboards is not super at the moment and the Intel 82579V included on a lot of Sandy Bridge boards was not on the ESXi HCL as of a few days ago. A Xeon X3440 and an Intel 3420 based board will make you good to go.
3. 8GB of RAM minimum.
4. Main workstation, either X58 or P67. Server wise LGA 1156 and LGA 1366 are much more mature than the P67/H67 for the time being.


Good advice, but I see no reason to go virtualized, unless I was going to run as VM on my primary box, but since that idea has been shot down, then I am going to opt for FreeBSD, or some variant thereof, and just run natively on a dedicated box. In doing so, what kind of access bottlenecks can I expect on an Intel-based 1GB LAN?
 
if you build a Virtual-Server + NAS/SAN traditionally, you need:

- Server for virtualisation
- NAS/SAN for the storage part
- a Network Switch to connect LAN, SAN and other vlans

so you need a lot of hardware with a lot of cabling and a lot of components that may fail.
also your net-performance depends on your network and your switches.

use 1GB, trunk them (does not really help) or use 10Gb or FC


I'm currently on the way (must better say for more than a year) to switch all these installations
to All-In-One (Virtual Server + SAN + network switch) in a box with ESXI + NexentaCore/Solaris*.
Performance of internal transfers is better than 1Gb Networks, especially with vxnet esxi netdriver and i would never go back.

But like pikenned said:
you need i/o virtualization (passthrough of Disk-Controller via vt-d) and a lot of RAM to have performance on the VM-Part and the SAN-Part.
And you need a type-1 barebone virtualizer like ESXi to go this way.


Gea
 
If those 4-10 VM's you were talking about will be run on your workstation, then I think that e8400 will work.

I concur with what's already been said. For something like data storage you want high availability and consistent performance. If you have multiple machines or a media center accessing the box you don't want it going down everytime you reboot your workstation.
 
If those 4-10 VM's you were talking about will be run on your workstation, then I think that e8400 will work.

I concur with what's already been said. For something like data storage you want high availability and consistent performance. If you have multiple machines or a media center accessing the box you don't want it going down everytime you reboot your workstation.

Thanks for the feedback again everyone. The reboot issue is not that great of an issue for me as my workstation and laptop would be the two primary devices accessing the storage server so I can schedule around any possible reboots. Essentially, that is a very minor concern.

I have spent much time thinking about this today as I have been driving and now I am wondering if there is anything close to the performance of a ZFS server that I would run virtually within Windows? Is there anything?

I would really like to find a way, via virtualization, to have all these systems "under one roof" as I would like to get my office town to a single PC and laptop versus the 5 systems and laptops that are here now. But, if my best choice for running a ZFS-based server is a truly a dedicated box, then it is not the end of the world.
 
Some additional notes:

Leaving a PCI-express x8 slot free for a 10GbE NIC in the future would be preferable.

Instead of virtualizing ZFS, perhaps you could install Virtualbox and phpvirtualbox to run some VMs on the ZFS server, regardless of whether you choose Solaris or BSD. That might work quite well, considering the server should just run 24/7 and thus your VMs could too. This might be a good setup if you have some windows-only software you would like to run on the same machine, but still keep the ZFS server itself unvirtualized.

Speaking about performance, you have performance when copying large files (sequential) and you have performance when doing small mixed I/O (random I/O). The sequential stuff is easily bottlenecked by gigabit, but the random I/O is not. So while HDDs usually do 1MB/s of random reads, this leaves alot of margin for improvement even over gigabit. Consider SSDs for L2ARC would greatly enhance the performance of your "VM" images for example. So in this case, the gigabit limits are less important and still lots of margin for improvement.

The E8400 is a 45nm CPU that should have quite low idle power considering its age; much better than the 6xxx series built on 65nm and sold at around the same time. The CPU power should be enough for normal ZFS tasks; i wouldn't go heavy on compression or encryption though that would not be this CPUs strong suit. ZFS is extremely threaded, so you can just multiply your cores times frequency to get your aggregated performance. This is quite accurate if you want to know compression/encryption performance, since these scale linearly with the number of threads/cores that you have. For this reason, your CPU is not particularly good in compression/encryption, but you can still enable it on smaller filesystems where you expect decent compression margins.

I would invest in the memory upgrade from 4GiB to 8GiB; especially FreeBSD would benefit greatly from that upgrade; Solaris already works quite well with 2GiB or 4GiB RAM; something FreeBSD+ZFS by default does not like very much; prefetching would be disabled with only 4GiB RAM.

Before you commit any data on the disks, make sure to tested your solution well. Also make sure you know exactly what to do in case of drive failure; this is something you should simulate, test and experience so that when it actually happens you already know how to recover from such a situation.
 
Back
Top