LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2017, 11:18 AM   #1
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
ZFS or XFS on home server, plus other considerations


All

I'm planning a rebuild of my home server and currently thinking about storage, filesystems, general disk utilisation, backups etc, and thought I'd run it past people to see if I'm making sense or not. I use this server as a file server/ media server, a virtualisation host, and for various applications including munin, Crashplan, smokeping, bind etc. I used Btrfs for a couple of years and it worked well for me, but I'm now leaning heavily towards ZFS.

So, my current thinking is two USB sticks for root, using ZFS RAID1. I like to have redundancy on the root filesystem, largely as I don't currently have a UPS so a power outage is always possible. For storage, a JBOD setup, trying to make best use of what I already have. I'm not interested in RAID here really, uptime gains are just not worth it to me in unutilised disk space and cost for additional disks. So the plan is:

1: A 1TB 'fast' disk (WD black; already owned) for VMs/containerised apps etc. (LVM & XFS|ZFS).
2: A 2TB 'NAS' disk (new, WD red maybe) for media. (LVM & XFS|ZFS)
3: A 2TB WD green (already owned) as a backup disk. ZFS.
4: empty.

I currently have about 1.2TB of data in total so enough room on the backup disk for a while yet. When I do fill it up I'll buy another disk for bay 4. My plan is to run nightly backups of everything from the first two disks as well as laptops etc onto the backup disk, snapshotting VMs etc and compressing everything as much as possible, then back up from here to an offsite location; Crashplan in the short term but probably a remote colo server at some point. I'd run regular scrubs on the ZFS disk(s) to check for bad data and notify me of any failures, allowing me to restore from one or other backup.

Qs:

1) Does this broadly make sense or am I missing something?

2) Any experience with ZFS on Linux that would point to one distro over another?

3) On my first two drives, what would people's preferences be between XFS and ZFS? It seems to me I'd get better performance from XFS, and as it would all be backed up onto a ZFS volume anyway before shipping offsite, is there any reason to use ZFS here too?

4) I like the idea of having a separate faster disk in bay 1 for VMs etc by using XFS on the WD black in bay 1 and ZFS for bay 2. Is there any point to this though really or am I just losing the advantages of pooling the storage on the two disks for no real benefit?

5) I wouldn't be able to pool the storage using ZFS as the disks are different sizes am I correct? And if I added another backup disk later, I wouldn't be able to pool this with the existing ZFS backup disk, correct?

Thanks in advance

Last edited by spoovy; 08-23-2017 at 11:28 AM.
 
Old 08-23-2017, 03:42 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
You will have to decide on this but I'll give you my thoughts.

I like XFS under lvm if you need to manage drives. I'd prefer XFS alone if you have no desire to manage. A lot of work has been done to XFS but I feel it still lacks tools that may be needed in a crash setting.

Raid of some kind is useful, zfsraid may include some unique features but as far as I can tell you may suffer speed a bit and use some overhead. I think it is pretty stable on linux. Last time I ran ZFS under linux was a long time ago and not well liked then. Used it on Solaris without a problem.

You almost need to look at your kernel choice and see if you can find performance metrics and other reports. Each kernel has it's features for better or worse.

Hopefully others will share some ideas here too.
 
Old 08-25-2017, 10:24 AM   #3
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
I like ZFS very much. It is hungry for memory, but have a lot of good features.
See mine ZFS recepies memo.
 
1 members found this post helpful.
  


Reply

Tags
btrfs, disks, storage, xfs, zfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to move Linux Home to ZFS LXer Syndicated Linux News 0 04-18-2017 06:30 AM
RaidZ2 or mdadm + Fedora22 + hot-swappable drives + ZFS vs XFS vs EXT4 JoseCuervo Linux - Software 12 11-18-2015 09:21 PM
NAS on btrfs (possibly zfs/xfs) advice/help needed (software-getting started) rmk0610 Linux - Server 3 07-06-2010 05:06 AM
what disk configuration do you use with your ZFS pools at home? crisostomo_enrico Solaris / OpenSolaris 10 09-02-2007 08:29 AM
Home with zfs isra Solaris / OpenSolaris 3 08-07-2007 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration