Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2017 19:51:16 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: New User, new server
Message-ID:  <b3aa7350-9528-25dd-9c88-67604928699f@holgerdanske.com>
In-Reply-To: <800e15b2-d7f5-d339-bd77-862e9d0cab5b@ludikovsky.name>
References:  <800e15b2-d7f5-d339-bd77-862e9d0cab5b@ludikovsky.name>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/20/17 07:33, Peter Ludikovsky wrote:
> I recently acquired a former office tower to replace my old home server
> (Debian 8), itself an even older office tower. As it's my primary
> storage location for images and documents I want something stable, and I
> want to try something besides Linux, so I'm going for FreeBSD
> 11-RELEASE. Which brings a few questions:
>
> 1) The new machine comes with a 128G SSD, in addition to the 2 4T HDDs
> from the older server. I'd like to set up ZFS root, with a slice of the
> SSD as ZIL and L2ARC, and the root mirrored across the SSD and the 2
> HDDs. Does this make sense, and if so what would be the ideal slice
> layout? Or should I just use the whole SSD as ZIL/L2ARC?
>
> 1.1) Can I start this setup with just the SSD an one HDD, as to keep the
> old server alive until everything is migrated?

I have several computers in my SOHO network, Pentium 4 and newer, 
running various versions of Windows, Debian, and FreeBSD.  I use mobile 
racks and put one OS on each system disk (using MBR partitioning) to 
facilitate migration and imaging.  My preferred system disk size is 16 
GB; SSD's when available, but Debian will run off USB flash drives. 
Once a system is installed, updated, configured, and operating, I 
sometimes move the image to another device (SSD, HDD, USB flash drive; 
16 GB or larger).


I would put FreeBSD on the 128 GB SSD using the FreeBSD 11.0 RELEASE 
installer, select "Auto (ZFS)" for partitioning, and navigate the 
options to end up with a ZFS boot partition, an encrypted swap 
partition, and an encrypted ZFS root partition.  (The installer will use 
100% of the drive.  If you are savvy enough, you can shell out during 
installation and label, slice, partition, create GEOM devices, create 
ZFS pools, etc., of whatever size and configuration you desire.)


I would leave the existing HDD's in your old server and get new drives 
for the new server.  Two large SATA NAS drives in a ZFS mirror should be 
ideal for a SOHO file server.  Make sure you have "enough" RAM, and a 
CPU with AES-NI if you use encryption.


(At one point, my Intel Core i7-2600S machine had 8 GB RAM, ZFS on 
Linux, and two mirrored encrypted 3 TB 7200 RPM desktop SATA drives.  It 
was very fast locally, and could easily saturate it's Gigabit network 
connection.)


> 2) Moving data from the old machine. Can I run zfs send/receive to get
> the ZFS on Linux datasets onto FreeBSD, or do I need to (r)sync?

As others have said: likely so, but test.


> 3) Firewalling: PF, IPFW, or IPFilter? The machine will be behind an ISP
> provided router, but I'm paranoid enough to want an additional firewall
> on that machine, and one that plays nice with fail2ban at that.

I use an old P4 machine with IPCop between my AT&T residential gateway 
an my LAN:

http://www.ipcop.org/


For host firewalling, I use Firewall Builder:

http://fwbuilder.sourceforge.net/


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b3aa7350-9528-25dd-9c88-67604928699f>