Questions tagged [zfs]

ZFS is a combined file system and logical volume manager designed by Sun Microsystems The features of ZFS include protection against data corruption, support for high storage capacities, efficient data compression, integration of the concepts of filesystem and volume management, snapshots and copy-on-write clones, continuous integrity checking and automatic repair, RAID-Z and native NFSv4 ACLs.. -Wikipedia

570 questions
40
votes
7 answers

ZFS under Linux, does it work?

Could I get ZFS to work properly in Linux? Are there any caveats / limitations?
Sam Saffron
  • 887
  • 10
  • 16
39
votes
1 answer

How do I change the mount point for a ZFS pool?

example: When I created the pool, I set it to mount to /mystorage zpool create -m /mystorage mypool raidz /dev/ada0 dev/ada1 /dev/ada2 But now I want the pool to mount to /myspecialfolder. Any ideas how it can be done? I've searched the net and…
mrjayviper
  • 1,971
  • 3
  • 25
  • 41
27
votes
3 answers

Forcing zpool to use /dev/disk/by-id in Ubuntu Xenial

I'm giving the bundled OpenZFS on Ubuntu 16.04 Xenial a try. When creating pools, I always reference drives by their serials in /dev/disk/by-id/ (or /dev/disk/gpt on FreeBSD) for resiliency. Drives aren't always in the same order in /dev when a…
Ruben Schade
  • 501
  • 1
  • 5
  • 12
27
votes
6 answers

how to one-way mirror an entire zfs pool to another zfs pool

I have one zfs pool containing several zvols and datasets of which some are also nested. All datasets and zvols are periodically snapshotted by zfs-auto-snapshot. All datasets and zvols also have some manually created snapshots. I have setup a…
Costin Gușă
  • 574
  • 1
  • 5
  • 14
25
votes
1 answer

How to move files from one zfs filesystem to a different zfs filesystem in the same pool?

I have two filesystems in the same zfs pool, /mnt/fs_a and /mnt/fs_b. I want to move about 1TB of data from fs_a to fs_b. But when I: mv /mnt/fs_a/mythtv_recordings /mnt/fs_b/ to my surprise it starts copying the files block-by-block. Given the…
Fred Hamilton
  • 445
  • 2
  • 5
  • 8
24
votes
0 answers

Why does ZFS scrub not complete?

First off let's start with what I'm running. This is a home media server running Ubuntu 16.10. I have one pool of mirrored 6 terabyte drives that are about half full. I built the system about a month ago, and it's running great. It uses an SSD as a…
Thumper33
  • 341
  • 1
  • 4
23
votes
3 answers

Adding disks to ZFS pool

I am planning a storage server where users will store up to 20 TB of data. Since I have made some good experiences with ZFS on Linux, I would like to use that. However, I know that the amount of data will grow by several 100 GB per year, so at some…
T. Pluess
  • 470
  • 1
  • 5
  • 16
20
votes
1 answer

How to mount external ZFS file system without clobbering/altering current or external filesystem

I am using FreeBSD 10.2 using ZFS on root as the file system (zroot01). I have an external hard disk with a ZFS file system from another FreeBSD 10.2 system (zroot02) that I want to temporarily mount, read only, so I can get some files off of it,…
Will B
  • 337
  • 1
  • 3
  • 9
19
votes
2 answers

Is there a way to create cow-copies in ZFS?

I am trying to make cow-copies of some files/directories, but of the several ways I know of, all seem sub-optimal. For example, btrfs can, with the use of cp --reflink=auto quickly generate cow-copies of files. What I have tried: Symlinks: No…
killermist
  • 1,591
  • 13
  • 24
18
votes
1 answer

What is the sense behind ZFS's limits?

According to Wikipedia, ZFS has the following limits: Max. volume size: 256 trillion yobibytes (2128 bytes) Max. file size: 16 exbibytes (264 bytes) Max. number of files: Per directory: 248 Per file system: unlimited Max. filename length: 255…
esote
  • 427
  • 1
  • 5
  • 10
16
votes
1 answer

State of ZFS xattr support in FreeBSD

I'm trying to work out whether or not, or rather to what extend, xattrs are supported in FreeBSD using ZFS. I've read some conflicting information. zfs get xattr lists it as on (default) for /, /usr and /var, but as off (temporary) for all other…
MvG
  • 4,361
  • 2
  • 28
  • 42
16
votes
1 answer

ZFS Snapshot to file as Backup with rotation

I have a local FreeNAS system and want to use ZFS snapshots for backups. FreeNAS has the built-in Replication Tasks which use zfs send snapshot_name to send a snapshot to a remote system. But this needs a system with ZFS on the other end. I want…
Martin Grohmann
  • 263
  • 1
  • 2
  • 5
15
votes
4 answers

Bulk remove a large directory on a ZFS without traversing it recursively

I want to remove the contents of a zfs datasets subdir. It's a large amount of data. For the pool "nas", the path is /nas/dataset/certainFolder $ du -h -d 1 certainFolder/ 1.2T certainFolder/ Rather than me have to wait for rm -rf…
Brian Thomas
  • 716
  • 6
  • 18
14
votes
1 answer

With ZFS on Linux, how do I list device (vdev) specific properties?

I am using ZFS since a while now without problems. I am still excited about it, and I highly trust it. But from time to time, new questions come to my mind (in particular after having read some documentation, which sometimes increases the number of…
Binarus
  • 3,160
  • 1
  • 15
  • 31
13
votes
1 answer

How are files/dirs hidden from ls -a while still being accessible otherwise in a POSIX compliant system?

For example, in ZFS under FreeBSD and ZoL, there is a magic .zfs dir inside of each zpool mountpoint and you can use zfs set snapdir=visible to make that .zfs dir visible. What makes me curious is: if that setting is set to "hidden", how is the .zfs…
s1lv3r
  • 399
  • 3
  • 11
1
2 3
37 38