Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How are people using ZFS?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 112
Location: above the flames and the ashes

PostPosted: Wed Oct 16, 2013 8:34 pm    Post subject: How are people using ZFS? Reply with quote

I made the switch from an mdadm controlled RAID5 to ZFS. I am curious how others are using ZFS. I watch Ben Rockwell's talk on ZFS[1,2] and am finding that I am not using most of the advanced features it offers. It got me wondering how others are using it.

My setup: 3 HDDs in a RAIDZ1 in a dedicated box. I am not using snapshots, or other advanced features. I literally have all 3 drives mounted to /mnt/zpool and that's it.
How I use it: I boot up the NAS once or twice a week and run shell script that uses rsync to move over pics, videos, files, etc.

I guess I could create a vdev under my zpool specifically for documents, and enable snapshots for just that part of the zpool. The majority of my content is user generated images which will not change.

1. http://www.youtube.com/watch?v=3-KesLwobps
2. http://www.youtube.com/watch?v=jDLJJ2-ZTq8

Note - I edited my post which originally asked about RAID5 or RAIDZ1 so consider that when you read frostschutz's post.


Last edited by graysky on Fri Oct 18, 2013 3:37 pm; edited 2 times in total
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2447
Location: Germany

PostPosted: Thu Oct 17, 2013 3:47 am    Post subject: Reply with quote

You can do whatever you want. As long as you're aware that RAID (regardless which flavour) is not a backup. As long as you do have a backup of your important data.

mdadm RAID 5 is probably easier to achieve with what you already have (a RAID 1 that simply needs to grow) than revamping your setup completely. But if you want to go with ZFS, why not?
_________________
Linux-User @ VServer (Debian), Desktop (Gentoo), Netbook (Ubuntu), Router (OpenWRT), PDA (Cacko), Smartphone (Android)
Back to top
View user's profile Send private message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 112
Location: above the flames and the ashes

PostPosted: Thu Oct 17, 2013 6:27 pm    Post subject: Reply with quote

frostschutz wrote:
...if you want to go with ZFS, why not?


Good point, it seems like a more contemporary solution.
Back to top
View user's profile Send private message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 112
Location: above the flames and the ashes

PostPosted: Fri Oct 18, 2013 3:39 pm    Post subject: Reply with quote

Picked up a 3rd HDD and destroyed the original mdadm array. Just finished syncing up a new RAIDZ1 and edited my original post.
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Sun Oct 27, 2013 9:03 pm    Post subject: Reply with quote

I use a raidz1 pool with 4x500GB 2.5" SATA HDDs as archive, is part of a always on "low power" AT5NM10T-I-ASUS headless home router, SMART notify enabled on all HDDs, they are spinned down when array is not accessed.
Compression enabled, dedup disabled.
Some folders are shared in LAN with Samba, other are used for daily incremental backup of the Gentoo root.
The zfs mount point is periodically backed up on an ext4 external USB disk.
ZFS is great for self healing, waiting to see it in action...
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Tue Oct 29, 2013 12:29 pm    Post subject: Reply with quote

Tender wrote:
I use a raidz1 pool with 4x500GB 2.5" SATA HDDs as archive, is part of a always on "low power" AT5NM10T-I-ASUS headless home router, SMART notify enabled on all HDDs, they are spinned down when array is not accessed.
Compression enabled, dedup disabled.
Some folders are shared in LAN with Samba, other are used for daily incremental backup of the Gentoo root.
The zfs mount point is periodically backed up on an ext4 external USB disk.
ZFS is great for self healing, waiting to see it in action...


Can it be use to have a subvolume as raw device like LVM, to run VMs? Btrfs lacks this feature saddly.
Back to top
View user's profile Send private message
amospalla
n00b
n00b


Joined: 08 Mar 2013
Posts: 23

PostPosted: Tue Oct 29, 2013 2:11 pm    Post subject: Reply with quote

_______0 wrote:
Can it be use to have a subvolume as raw device like LVM, to run VMs? Btrfs lacks this feature saddly.


Yes, it has raw volumes, altough if you want to use these as vm disk backend, there is no reason to put lvm on top of it, zfs is a volume manager also, and can snapshot those raw volumes, for example.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Tue Oct 29, 2013 10:39 pm    Post subject: Reply with quote

amospalla wrote:
Yes, it has raw volumes, altough if you want to use these as vm disk backend, there is no reason to put lvm on top of it, zfs is a volume manager also, and can snapshot those raw volumes, for example.


mm... compelling. I know that, plain zfs raw volume, that's what I meant. Btrfs doesn't have that. Current workaround is to use qemu's raw disk inside a subvolume, which isn't very elegant.

How to install zfs? zfs-kmod?
Back to top
View user's profile Send private message
amospalla
n00b
n00b


Joined: 08 Mar 2013
Posts: 23

PostPosted: Wed Oct 30, 2013 6:26 pm    Post subject: Reply with quote

_______0 wrote:
How to install zfs? zfs-kmod?


Unmask spl, zfs and zfs-kmod, and emerge zfs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum