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
Questions tagged [zfs]
588 questions
44
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
- 2,051
26
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
- 550
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
12
votes
2 answers
zpool list vs zfs list - why free space is 10x different?
If I use zpool to list the available space, it tells me I have over 270 GB free, yet the actual free space available (and shown by df and zfs list) is only a mere 40 GB, almost ten times less:
$ zpool list
NAME SIZE ALLOC FREE CKPOINT …

Malvineous
- 6,883
8
votes
4 answers
How to stop people disturbing a ZFS dataset which is only used to receive?
I have two machines, "sender" and "receiver".
Sender runs the following command each night:
zfs send -i bpool/backups@2018-09-04 bpool/backups@2018-09-05 | ssh receiver /sbin/zfs receive bpool/backups
The sends the latest of bpool/backups from…

fadedbee
- 887
- 1
- 6
- 27
7
votes
1 answer
Does ZFS deduplicates across datasets or only inside a single dataset?
Does ZFS deduplicates across datasets or only inside a single dataset? In other words if I have two nearly identical volumes will they be deduplicated?

Maja Piechotka
- 16,676
6
votes
4 answers
Recover deleted file from ZFS snapshot (still viewable vith lsof)
I have a ZFS volume on a Linux Debian.
A snapshot is took each night on this volume.
For whatever reason, a big file (virtual disk) was deleted several days ago. This file is still in use (by kvm). lsof shows this file as deleted.
If I pause the…

Gregory MOUSSAT
- 1,138
6
votes
3 answers
ZFS: send / receive with rolling snapshots
My small home server runs on a distribution featuring ZFS.
On that system, I implemented a rolling snapshot scheme:
every hour, a snapshot is created
once a day, the chain is thinned so that I have a set of hourly / daily / weekly / monthly…

BayerSe
- 299
6
votes
2 answers
Why does creating a ZPool result in this error?
When I try to create a ZPool, the following error occurs:
user@arch ~ % sudo zpool create -f -o ashift=12 -m /data media raidz /dev/disk/by-id/ata-ST2000DM001-1CH164_Z2F0TL8V /dev/disk/by-id/ata-ST2000DM001-1ER164_Z4Z030LK…

Ruben
- 161
5
votes
1 answer
ZFS replace disks by id
By accident, I created a zpool using /dev/sda and so on. I knew this was a bad idea; I just wanted to test my setup. It turned out that it worked so well, I forgot about the device names and started to use my zpool as NAS, still with the sda, sdb,…

T. Pluess
- 550
3
votes
1 answer
24 hour crash course in ZFS... some final questions
Due to various circumstances I've given myself a crash course on the ZFS file sytem. I need some help getting comfortable with the unknowns. Whatever those are.
Data:
Running www.zfsonlinux.org on CentOS 6.2
I have an array with 12x2TB sata…

LVLAaron
- 1,735
2
votes
1 answer
Can I mount zfs dataset to another mointpoint?
I am using ZFSBootMenu for multi-zroot.
zpRoot/LINUX/Artix/System mountpoint /
zpRoot/LINUX/eos/SysClone1 mountpoint /
zpRoot/LINUX/eos/System …

Galaxy
- 237
2
votes
0 answers
How would I find the increase in Free Space if I delete a tree on ZFS?
Consider a ZFS Pool with deduplication enabled. Now consider multiple directory trees that contain identical content [D1 thru D10]. The first [D1] takes up TB of "real" disk space. The others [D2-D9]have some bookkeeping overhead, but are basically…

David V. Corbin
- 121
2
votes
1 answer
zfs on Linux: how to import an encrypted pool if you dont' know where key must be mounted?
I'm on a livecd with zfs.
I want to import an encrypted pool which has
a keyfile as "passphrase"
first I mount the usb dongle with keyfile
mkdir /tmpusb
mount /dev/disk/by-uuid/uuidofdongle... /tmpusb
then I import the pool
zpool import -l -d…

elbarna
- 12,695
2
votes
0 answers
Forcing the failover to a hot spare in a degraded ZFS pool
I have a simple 5x1TB RAIDz1 configuration (tank? pool? vdev?), with a global spare assigned to it. One of the 5 drives in the array is listed in a FAULTED state (corrupted data), and the spare is listed as AVAIL. The array lists as DEGRADED.…

J Collins
- 1,155
- 2
- 12
- 25