LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-15-2018, 02:49 PM   #1
katana9988
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
Question Can I use ZFS instead of RAID 1 for home use?


Hi guys. Before anything, this is my server:-

Core i5 (2011 model)
4 GB RAM
120 GB SSD
2 X 4TB HDD

I used to have this with CentOS 7 and RAID 1 for both the 4TB. With about 1TB media in the raid. And plex running.

Now I am with Ubuntu and I want to ZFS instead of RAID 1. So, is it possible for my setup? should I get more hard drives? Will my data take more space under ZFS than it used to be with RAID 1? And what happens with one drive if it goes bad?

Please advice me. I have some what read about ZFS as it is the future and much better than RAID. But still I am not sure with my current setup.

Thanks,
 
Old 02-15-2018, 04:49 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Are you using the 2 disks for redundancy? Do you expect it to still boot when 1 drive is dead? If the 1st drive dies will your BIOS automatically go to the 2nd drive? Have you installed a bootloader on both drives?
 
Old 02-15-2018, 05:03 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I can't say what is better but it you wish to learn this and use it, it will work.

ZFS has many features. I'd think it likely to take up a bit more space to a lot of space if you don't manage it correctly.

It has raid levels.

It has an ability to somewhat predict failure and ways to mitigate loss.

Only you can decide if it is right for your use.

Last edited by jefro; 02-15-2018 at 05:11 PM.
 
Old 02-15-2018, 05:09 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You'll want to have a look at this site / page https://github.com/zfsonlinux/zfs/wiki/RHEL-and-CentOS
 
Old 02-16-2018, 12:48 PM   #5
katana9988
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I didnt mention this before. But I am using 120 GB for the OS. The other 2 drives where previously in raid 1 (using the mootherbaord feature and I tired it in mdadm).

I want to use both these drives again as the RAID 1 idea but in ZFS with mirroring.

Any ideas?
 
Old 02-16-2018, 04:03 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
You may not need raid under zfs. You can create a zraid if you wish.

You need to set up a test computer or re-do what you have and play with it to see if it fits what you want.

ZFS has a number of advanced features. Read up on them and decide if it will help you.
 
Old 02-16-2018, 05:33 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Last I looked zraid required more than 2 drives. Seems to be adding a lot of uncertainty and complexity for very little gain.
I looked at zfs early on, but the licensing issues were problematic, and the early ports were pretty crude, so I avoided it on Linux. There are suggestions people are simply "looking the other way" when licensing is mentioned these days, but I no longer bother.
 
Old 02-16-2018, 06:00 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
zpool create tank mirror c4t5d0 c4t6d0 example should work.
http://www.zfsbuild.com/2010/06/03/h...ed-vdev-zpool/


A raid10 equ will require more drives.

It is possible to use the sata controller's hardware raid but that usually isn't recommended in ZFS.

Last edited by jefro; 02-16-2018 at 06:02 PM.
 
  


Reply



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
ZFS RAID levels on Centos 7.2 jmuckley Linux - Server 2 03-27-2016 09:36 PM
create disks for zfs raid rdkellerman CentOS 3 10-10-2014 12:57 PM
Home with zfs isra Solaris / OpenSolaris 3 08-07-2007 09:17 PM
Why is ZFS raid so slow???? kebabbert Solaris / OpenSolaris 4 07-16-2007 05:01 PM
External eSata ZFS raid possible? kebabbert Solaris / OpenSolaris 5 06-06-2007 02:32 AM

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

All times are GMT -5. The time now is 10:17 AM.

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