ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Building NAS Box With SoftNAS

By Vladan SEGET | Last Updated: February 17, 2017

Shares

I've recently bought some parts to replace my old NAS build to get more power and more IOPS. This NAS box will be used for lab only. I also recovered some parts from the old box, but added some SSD's. The Mini-NAS will be used also as an ESXi box. While the Mini-ITX boards are limited in expansion cards, I priviledge speed over redundancy and run Raid 0 (no redundancy).  This is certainly not to do in production, where usually don't have that space limit as I have and so you'd rather use RAID 10 for best performance.

There are many software distributions which can be run on bare metal or as a VSA appliances out there (FreeNAS, OpenFiler, Nexenta….) but there is many blog posts already about those. One of the new ones, which is very interesting is SoftNAS.

Based on hardened CentOS linux distribution and on ZFS filesystem, the product can take advantage of using of the available RAM as a cache, but also SSD's for read and write cache, completed with cheap SATA storage. Easily get super fast multi tiered storage solution. The SoftNAS VM consumes about 1Gig of RAM itself, so for example if you configure the VM with 16 Gigs of RAM, about 15 Gb of RAM is used for caching. In my case I'll configure the VM with 8Gb of RAM and use the rest of the RAM (8gb) for some other VMs of that management cluster. For homelabs the 1Tb Free offer is sufficient to run my small cloud VMware lab with now third, very compact ESXi host… -:)

It's very popular between the community to use Single box with VMware ESXi installed on an USB stick, and some other VMs running out from the local storage together with some VSA (virtual storage appliance) VM configured with passthrough (VMDirect Path) to a mix of SSDs/SATA drives. While this is certainly the solution to get the most speed, it's quite difficult to pick a consumer board (with mini-ITX format with this capability) . Not only the motherboard needs to support VT-D, but also your CPU. You can configure VMDirectPath I/O pass-through devices in VMware vSphere client, when you click Advanced Settings, you can select the devices that are dedicated to the VMDirectPath I/O.

SoftNAS

If your motherboard does not support VMDirectPath I/O, it's still possible to use other methods for using local storage to be presented as a shared storage for the existing infrastructure.

If I manage to and will have passthrough  which will work with the Mini-ITX board and I'll be able to pass directly the local SSDs and SATA drives to my SoftNAS VM and at the same time I can run my management VMs for the whole lab on the same box (vCenter, DC ….). I can built fully functional hybrid storage box which is at the same time an ESXi installed on bare metal.

The goal of the setup:

  • Get a shared storage for my lab that has an acceptable performance for 40-50 VMs, learn some magic that ZFS can do with data tiering between the RAM, the local SSDs and SATA drives.
  • To build a box, that will run VMware ESXi and run SoftNAS VM with VMDirectPath I/O pass-through configuration for local disks and SSDs. The SSD's will be used for L2ARC and ZIL caching. The rest will use usual 7200rpm SATA II drives configured in RAID0 for best performance (no redundancy).

My Limitations:

caseAs I wanted to keep my existing compact case which has been used in my previous built – Lian-Li PC-Q8B) – I needed to find a Mini-ITX board which supports VT-D/IOMMU, and also CPU that supports VT-D. I found one Mini-ITX Asus board that do that and in addition it has 6 SATA controllers ( Two SATA III and Four SATA II).

There is a single PCI-Express expansion card present on that board as well, so I reserved that for an additional NIC so I can reserve it for storage traffic. The NIC present on the board – Realtek® 8111E – works with VMware vSphere 5.

I recommend if you're not have limitations like I did, go for a mobo with full ATX which has more expansion slots. Get 1155 socket based board which can hold up to 32Gb of RAM, or if you have the budget, get a newer 2011 socket based board which can held 64 or 128Gb of RAM.

SoftNAS Homebuilt

My parts I bought:

  • SSD OCZ Vertex 4 Series 2,5″ – 256 Go 163,87 €
  • ASUS P8H77-I – Socket 1155 – Chipset H77 – Mini-ITX 1 77,68 €
  • KINGSTON Memory PC HyperX blu Black Series – 2 x 8 Go DDR3-1600 PC3-12800 74,41 €
  • INTEL Core i5 3470S – 2,9 GHz – Cache L3 6 Mo – Socket LGA 1155 (VT-D is supported)
  • COOLER MASTER Ventirad GeminII M4 (RR-GMM4-16PK-R1)  22,57 €

Total Cost – around €586

Parts that I recovered from my previous NAS built:

  • Lian-Li PC-Q8B  (Mini-ITX case)
  • PowerSupply Antec HCG 400
  • SSDs with respectively 64 and 256 Gb of capacity

Before we follow the write up I'd like to introduce SoftNAS to my readers, what uses SoftNAS as a technology and how it works. SoftNAS uses CentOS linux based distribution which is built around ZFS storage file system, and it's a truly business-class network attached storage (NAS).

It takes advantage of Solid State Drives (SSDs) for multi tiering of data. Basically, the hot data which are stored first in RAM, then when RAM is fully used, on SSD's, and then only moved to slower spinning SATA drives.

SoftNAS uses ZFS filesystem, which is very robust, scalable file system which enables you to use RAM, SSDs and spinning hard drives in single pool with very good performances. Very popular in VMware communities, because VMs are IOPS hungry…

How the ZFS filesystem works:

ZFSARC – Adaptive Replacement Cache (ARC) – This is a place where data are placed first when they're written to the ZFS pool. It's the fastest access. That's why is important to get As much RAM as you can. The RAM is still relatively cheap, compared to few years back.

L2ARC – Level-Two ARC (L2ARC) – It's an extension of the ARC, since you never get enough RAM. The L2ARC uses SSD's which are slower than RAM, but thousands time faster than spinning disks.

ZIL – ZFS Intent Log (ZIL) – used for write operations. ZFS places the ZIL on SSD to have a persistent location with fast access. ZFS writes the recent changes in the ARC into the spinning disks, so the data in the ZIL can be replaced by new writes to match the new data which are stored in the spinning disks (which are persistant and non-volatile).

Cheap (and slow) SATA storage – used for cold data, which are data that does not change a lot over time.

While this setup is for my homelab, you can easily imagine that it's possible to build a cheap and performant storage system with commodity server hardware. SoftNAS pricing is subscription based model (per TB of used storage), which makes the initial costs even lower.

It's a subscription basis paid for annually or “pay as you go” on a monthly basis. Subscriptions include software maintenance and business day support, and automatically renew for continued, uninterrupted service (cancel anytime). You can choose monthly or yearly subscription where you get 7/7 support.

SoftNAS may be installed on any supported hardware platform, including an Amazon EC2 instance for a “Cloud Only” solution. The licensing for SoftNAS is the same no matter how you deploy the solution.

SoftNAS enables you to use replication between two nodes and the setup is very simple to do. We could imagine as a DR solution to have one node running on premises, at your company's primary site, and second instance at Amazon and having your VMs being replicated between those two. They just published video showing how-to setup replication between two SoftNAS Nodes:

SoftNAS runs as a VM on VMware vSphere but also on Hyper-V or directly at Amazon as as a EC2 instance.  Here is a screenshot from their website, where you can see the solution running locally and at Amazon. The replication between those two is block level, and the replication runs every minute.

SoftNAS

You can also have SoftNAS installed on your primary site and replicate to Remote branch office site.  Get a Free 1TB of Storage or download Free 60 days trial.

Update: I've encountered a trouble to configure the SoftNAS VM with passthrough (VMDirect Path) on my whitebox, so there has been a possibility to use RDMs (which I tried and it worked). Nevertheless, I wasn't able (in the Free version) to specify which disk I wanted to use for what function. Ex. I wanted to use my Vertex 4 for L2ARC and the other 60 Gb SSD for ZIL,  but I wasn't able to to that….  So the follow up will be with other OS … Probbably Nexenta.

  • Building NAS Box With SoftNAS (This post)
  • Homelab Nexenta on ESXi – as a VM
  • Fix 3 Warning Messages when deploying ESXi hosts in a lab
  • Performance Tests of my Mini-ITX Hybrid ESXi Whitebox and Storage with Nexenta VSA

Feel free to subscribe via RSS as this article will have a follow-up on the setup.

Shares
Vote !

| Filed Under: How To Tagged With: SoftNAS

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Andrzej Tobola says

    April 2, 2013 at 11:14 pm

    I am using FreeNAS under ESXi (RDM) from two years on ~3TBs.
    0$ cost and full command line support compatible with GUI.
    You can assign your disks as you want.

    • Vladan SEGET says

      April 2, 2013 at 11:32 pm

      I’ve been using FreeNAS in the past 3 years. Good and does evolves over time. Not really the case of Openfiler for example. Nexenta is looking good for my homelabbing… -:)

  2. Ray Cheng says

    August 11, 2015 at 11:04 am

    Hi, I have an ITX NAS with ASUS P8H77-I and i3 3220T,I want to install ESXi on it as a home server. I wonder if th MOBO support VT-d, so I will upgrade the processor to i7 3770T to enable VMDirectPath function.
    Thanks a lot!

  3. Dennis says

    March 3, 2016 at 12:14 am

    Hi

    Would you today still recommend building your own NAS ? Or do you think its better to buy a finished one ? IT seems like a lot of work and very little benefit ?

    • Vladan SEGET says

      March 3, 2016 at 6:55 am

      It depends if you want flexibility or not. Sure those days there is tons of NAS boxes including those accepting SSDs as a cache tier… Also, NAS whitebox can easily be “converted” to a PC or for other usage….

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in