Questions tagged [zfs]

ZFS is a modern file system and volume manager originally developed by Sun Microsystems and licensed under the CDDL. It is a copy-on-write file system with support for large storage arrays, protection against corruption, snapshots, clones, compression, deduplication and NFSv4 ACLs. An open-source fork of ZFS can be found at http://open-zfs.org/ , which is supported by ZFSonlinux.org, illumos.org and ZFS developers in the FreeBSD & Mac OS X communities.

ZFS is supported out of the box on a number of operating systems:

  • Solaris 10
  • Oracle Solaris 11 Express
  • FreeBSD
  • NexentaStor
  • illumos - specifically, illumos-based distributions, like:
    • Nexenta's illumian
    • Joyent's SmartOS (server OS with strong focus on virtualization)
    • OmniTI's OmniOS (general purpose server OS)
    • OpenIndiana (general purpose desktop/server OS)

Due to license incompatibilities, the CDDL licensed ZFS code cannot be distributed as part of the GPL licensed Linux kernel. Other alternatives methods are available for running ZFS on Linux:

1391 questions
16
votes
2 answers

How to 're-balance' data in zfs? (Make sure the data is spread amongst all striped mirrors)

Using a striped mirror (Raid 10) as an example, if two disks are expanded to four, how can the data from the two disks be 're-balanced' (spread out) amongst the two mirrors? That is, how can the files which were written to one mirror be written to…
Greg
  • 1,657
  • 5
  • 27
  • 38
16
votes
2 answers

ZFS checksum errors, when do I replace the drive?

I'm fairly new to ZFS and I have a simple mirrored storage pool setup with 8 drives. After a few weeks of running, one drive seemed to generate a lot of errors, so I replaced it. A few more weeks go by and now I'm seeing small errors crop up all…
Dominic P
  • 457
  • 1
  • 4
  • 18
16
votes
2 answers

Why isn't my ZFS pool expanding using ZFS on Linux?

I have a ZFS zpool on linux under kernel 2.6.32-431.11.2.el6.x86_64 which has a single vdev. The vdev is a SAN device. I expanded the size of the SAN, and despite the zpool having autoexpand set to on, even after rebooting the machine,…
Josh
  • 9,190
  • 28
  • 80
  • 128
16
votes
3 answers

ZFS: Mirror vs. RAID-Z

I'm planning on building a file server using OpenSolaris and ZFS that will provide two primary services - be an iSCSI target for XenServer virtual machines & be a general home file server. The hardware I'm looking at includes 2x 4-port SATA…
John Clayton
  • 622
  • 1
  • 6
  • 10
16
votes
7 answers

recommendations for efficient offsite remote backup solution of vm's

I am looking for recommendations for backing up my current 6 vm's(and soon to grow to up to 20). Currently I am running a two node proxmox cluster(which is a debian base using kvm for virtualization with a custom web front end to administer). I…
senorsmile
  • 713
  • 8
  • 20
15
votes
1 answer

Why did rebooting cause one side of my ZFS mirror to become UNAVAIL?

I just recently migrated a bulk data storage pool (ZFS On Linux 0.6.2, Debian Wheezy) from a single-device vdev configuration to a two-way mirror vdev configuration. The previous pool configuration was: NAME STATE READ…
user
  • 4,335
  • 4
  • 34
  • 71
15
votes
1 answer

FREENAS: Why isn't mv command instant within a RAIDZ1 volume?

I'm currently 'reorganizing' file structure within a RAIDZ1 volume. Moving directories from one dataset to another, which are both contained on the same volume. SSH'ed into the machine and did a good old fashioned: mv * destination Shouldn't this…
Ryan
  • 282
  • 3
  • 11
15
votes
4 answers

Tuning ZFS scrubbing, 141KB/s running for 15 days

A pretty basic system running mirror+stripe on 7.2k rpm sas disks, not particularly loaded. No dedup, compression on all datasets. Scrub has been running for 15 days at the speed of a dead snail. Is there some optimization that needs be done, or can…
3molo
  • 4,330
  • 5
  • 32
  • 46
15
votes
4 answers

Why are all of my ZFS snapshot directories empty?

I'm running an Oracle 11 box as a ZFS storage appliance, and I'm taking regular snapshots of the ZFS filesystems, via cron. In the past, I know that if I wanted to grab a particular file from a snapshot, a read-only copy was kept in…
growse
  • 8,020
  • 13
  • 74
  • 115
15
votes
2 answers

How to upgrade a ZFS RAID-Z array to larger disks on OpenSolaris?

I'm planning on installing OpenSolaris on my home server (right now it has Linux) and I would like to know how to prepare for upgrading the server to have larger hard drives in the future. Now the server has 4x 400GB SATA drives and I would install…
Esko Luontola
  • 1,293
  • 2
  • 11
  • 10
14
votes
7 answers

ZFS import unable to find any pools

I had a ZFS pool -- a mirror containing 2 vdevs -- running on a FreeBSD server. I now have only one of the disks from the mirror, and I am trying to recover files from it. The ZFS data sits in a GPT partition on the disk. When I try to import the…
squidpickles
  • 791
  • 1
  • 8
  • 12
14
votes
2 answers

Is it possible to change zfs raid-z1 to raid-z2 or raid-z3 on freenas?

I have a running freenas zfs on raid-z1. For safety i though of increasing parity. Enough spare space is available. Is it possible to upgrade a zfs raid-z1 to raid-z2 or raid-z3? thx for your help
Manuel
  • 523
  • 4
  • 9
  • 19
14
votes
1 answer

scsi and ata entries for same hard drive under /dev/disk/by-id

I am trying to set up a ZFS pool using 4 bare drives which I have attached to my Ubuntu system via a SATA hot swap backplane. These are Hitachi SATA drives. When I list the contents of /dev/disk/by-id, I see two entries for each…
John Dibling
  • 283
  • 3
  • 10
14
votes
3 answers

Proper way to create a zfs off an existing directory?

Lets say I have an rpool with etc/ as a regular directory within it and now I want to create a separate zfs rpool/etc, obviously inheriting all the data I had in original /etc. What would be the most proper and safe way to do so?
Yurii Rashkovskii
  • 253
  • 1
  • 2
  • 5
14
votes
3 answers

Is a large RAID-Z array just as bad as a large RAID-5 array?

For a long time I've heard about how bad an idea a large (>5TB?) RAID-5 array is simply because there's a high risk for another drive to fail. Has RAID-Z1 managed to remedy this for an array of any size (if you absolutely need a number consider…
TheLQ
  • 983
  • 4
  • 14
  • 31