Questions tagged [zfsonlinux]

zfsonlinux provides a native Linux kernel port of the ZFS filesystem so that ZFS may run natively on Linux. It is very different from ZFS-fuse which provides ZFS on top of a userspace-filesystem layer. The ZFS On Linux project is hosted on zfsonlinux.org.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Samba shadow copies not appearing for nested directories

I have a bunch of zfs datasets, each with its own snapshot being taken using zfs-auto-snapshot: /library /library/user /library/user/Originals /library/user/Originals/2020 However, when exported with ...
1
vote
1answer
70 views

ZFS configuration for Ubuntu 20.04

TL;DR I have three 2 TB drives and one 500 GB drive in a machine running Ubuntu 20.04 with a default ZFS install on the small drive. My plan is to partition the larger drives into two partitions each, ...
0
votes
1answer
16 views

Remove a ZFS attribute instead of setting its value to default?

I added a ZFS property which was not included by default. Instead of setting it back to true (default value), is there a way to "remove" the attribute I created? root@library:~# zfs get all |...
2
votes
1answer
50 views

Could `zpool status` be showing two different drives with same device name?

Is it possible that zpool status is reporting the status for two physically different drives while printing the same name for both? Specifically, I had a drive sdq listed in the spares list as FAULTED....
0
votes
0answers
30 views

restore zsys history in grub for ubuntu 20.04 (or revert to a previous state in command line)

I have installed Ubuntu 20.04 with ZFS on my Dell XPS-L702X. Is it possible with zsys to revert the machine to a previous state (I mean a complete state, of course, like the ones you can find on the ...
1
vote
1answer
49 views

cheap, commodity hardware based, highly available distributed filesystem [closed]

I have two PCs running linux, a 2 TB disk each and one small gigabit switch. To build a highly available system on the cheap, I resorted to this stack: custom 5.6 kernel with ZFS and DRBD9 on both ...
0
votes
0answers
32 views

ZFS Datasets appear as empty when shared through NFS

I was trying to create a couple of NFS shares on my file server and failing miserably. After hours of trial and error I noticed that if I share a zfs dataset directly it appears as an empty folder on ...
0
votes
1answer
54 views

With a ZFS root install, which partitions need to be `canmount=noauto` and why?

With a ZFS root install, which partitions need to be canmount=noauto and why? I am looking at a fresh installation of Ubuntu 20.04 with ZFS on root. I am using these instructions on the openzfs site, ...
2
votes
1answer
29 views

zfs miror with 2 TB drives of slightly different size

I have an old 2TB Seagate Barracuda drive and I want to build a zfs mirror. I don't think I can buy a 2TB drive with exactly the same size (identical number of bytes), but on the other hand the old ...
0
votes
1answer
22 views

Why ZFS snapshot reports zero size?

I have a Centos7 system with zfs pool that I took a snapshot with sudo zfs snapshot -r data-pool/Samba@backup_r. After taking the snapshot I copied few gigabytes of files from my Windows pc to that ...
2
votes
1answer
16 views

Mounting a ZFS backup in a different root directory

I did a backup of the entire zfs root (zroot) dataset from my laptop to my workstation. The backup dataset got all the mountpoints from the laptop. tank/backup 91....
1
vote
0answers
53 views

Pool gone with upgrade to Ubuntu 20.04

I upgraded my server (SuperMicro X11-SSM-F, LSI SAS 9211-8i) from Ubuntu 18.04 to 20.04. The server had 2 zpools, one composed of a single WD Red 10 TB (downloadpool), and the other composed of 8 WD ...
3
votes
1answer
43 views

Expand existing RAID1 zpool into RAID10 zpool

I'd like to expand/convert my existing RAID1 (2x 3TB mirror) zpool to RAID10 zpool by adding 2 more 3TB HDDs without losing (or moving) data stored on my existing pool. The final result will look ...
1
vote
1answer
73 views

ZFS compression on sparce zvol - space difference

I'm compressing a dd img of a 3TB drive onto a zvol in ZFS for Linux. I enabled compression (lz4) and let it transfer. The pool just consists of one 3TB drive (for now). I am expecting to have 86Gigs ...
0
votes
0answers
118 views

Shrink ZFS Zvol

I have a ZFS ZVOL: zfs get volsize pool1/vm/isp-master NAME PROPERTY VALUE SOURCE pool1/vm/isp-master volsize 1T local It contains those partitions filling less than ...
0
votes
0answers
101 views

ZFS-mount.service failing on boot

Fresh ZFS install, compiled from source with make and make install. ZFS runs fine except the pools are not mounted on boot. zfs-mount.service - Mount ZFS filesystems Loaded: loaded (/usr/lib/...
1
vote
0answers
112 views

Replace zfs pool member after reboot reordered disk paths

I created a raidz1-0 pool with three devices. Two where added by their /dev/disk/by-id ID and somehow I decided to use /dev/sdg1 for the third one. After a reboot years later, I can't get all three ...
2
votes
1answer
351 views

zpool fails to import raidz3 pool despite sufficient replicas available

Some users were having issues connecting to this server's share on the pool, while other's who were already on seemed to be fine. After arranging a reboot the pool failed to import once the system ...
2
votes
0answers
101 views

Recovering/importing ZFS Linux pool with duplicate pool name

I did something very stupid today in attempting to add a third mirror to an existing Linux zpool named backup. Suffice it to say that I made a couple errors because I don't really do much admin with ...
2
votes
1answer
142 views

How does zfs raidz-2 recover from 3 drives down?

Im wondering what happened, how ZFS was able to recover completely, or if my data is still truly in tact. When i came in last-night i saw this to my dismay, then confusion. zpool status pool: san ...
0
votes
0answers
72 views

Recover/move ZFS pool to a new server

I have a Ubuntu server set up with a 14-disk ZFS raidz2 pool. My boot device has become corrupted and I'm not able to mount its file system from a recovery live CD, so I will need to reinstall Ubuntu ...
0
votes
1answer
67 views

ZFS 3-drive setup on Debian

I have a machine with 3 2TB SSD drives, I want to configure openzfs at least on two of them. The root partition has ext4 and if possible I would like to avoid reinstalling everything, so I am ...
3
votes
1answer
110 views

When does “zpool scrub” delete files automatically?

Background is a general discussion about ZFS and the claim that in case of permanent errors to files, it automatically deletes files unless a correct copy is available. That sounded pretty wrong to me ...
0
votes
0answers
102 views

Full-disk encryption with dm-crypt requiring key-file AND password?

I am currently installing Arch Linux on ZFS on a dm-crypt (completely) encrypted drive, using the very helpful Arch Linux wiki pages regarding the subject: Encrypting an entire disk: plain dm-crypt ...
4
votes
1answer
105 views

Creating ZFS pool from liveCD with ashift=9 becomes ashift=12 when rebooted into new OS

I have created a zpool while booted on a Linux Mint liveCD (with all the ZFS packages temp apt-installed) and created a zpool with command line containing ashift=9 because my ST4000NM0033 drives (8 ...
1
vote
1answer
553 views

zpool stuck in resilvering loop

I have the following zpool: NAME STATE READ WRITE CKSUM zfspool ONLINE 0 0 0 mirror-0 ONLINE 0 0 ...
1
vote
0answers
93 views

Run ZFS as non-root

I'm running Debian 10 in a VM (using KVM) and I want to use ZFS as a non-root user. Here is what I did. I added this line to my sources.list file deb http://deb.debian.org/debian buster-backports ...
2
votes
1answer
63 views

Find ZFS metadata from raw disk/partiton

So, I've come across a lone disk with a ZFS partition on it. Clearly this is out of place. How can I pull some metadata off it (like the GUID or what zpool it belongs to), so I can figure out where ...
0
votes
0answers
37 views

ZFS import does not find any pools after a reboot

On my Debian/sid system, I have a ZFS pool that is secondary (the system does not boot off it). It is called "originals". I last successfully mounted it at the beginning of November. Now, after a ...
2
votes
1answer
67 views

zpool status shows drives are defaulted, but they seem okay. Can I add them back?

zpool status is reporting defaulted drives. But they actually appear to be okay. Is it possible to add them back? $ dev/disk# zpool status -v pool: darkpool state: DEGRADED status: One or more ...
4
votes
2answers
177 views

Create a backup of a ZFS volume

I am unable to create a replica of an existing ZFS volume and snapshots. For my other volumes, I am synchronizing the backups nightly via zfs send / zfs receive and that works okay. That said, I ...
0
votes
0answers
14 views

ZFS Pool Comes and Goes

I have a ZFS pool defined on top of LUKS-encrypted disks. I've been using it successfully. I shut-down my server, reconnected a drive which had been unplugged to diagnose a problem, and I booted. ...
3
votes
1answer
168 views

ZFS capacity usage discrepancy

I’m trying to understand why there is a large discrepancy with the used space of a production ZFS dataset and a backup dataset that is being populated with a nightly zfs send (I keep 30 daily ...
2
votes
1answer
127 views

zpool replace ran successfully, but still recommends zpool replace. What is it telling me?

A drive failed in a raidz3 (pci-0000:03:00.0-scsi-0:0:10:0), and I replaced it with an available spare (wwn-0x5000c500858252ef): pool: darkpool state: DEGRADED status: One or more devices are ...
0
votes
1answer
141 views

ZOL vs zfs-FUSE

I run a server using 5 drives in a raidz2 through zfs-fuse, but sometimes encounter an issue where the pool becomes unavailable. The issue seems to co-inside with high levels of activity on the pool, ...
0
votes
2answers
99 views

Cannot re-add cache device to zpool

I have a cache device that fell out of the zfs array because of errors. Im pretty sure it was something i did - messing with cabling or something. It checks out fine, plus its just a cache device. ...
10
votes
1answer
1k views

Slow sequential speeds on 9x7-drive raidz2 (ZFS ZoL 0.8.1)

I'm running a large ZFS pool built for 256K+ request size sequential reads and writes via iSCSI (for backups) on Ubuntu 18.04. Given the need for high throughput and space efficiency, and less need ...
5
votes
3answers
643 views

ZFS on Linux: Which mountpoint option when mounting manually per script?

I want to create a zpool with ZFS on Linux (7.13) on Debian Buster. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted ...
0
votes
0answers
40 views

error: failure reading sector 0x74706da0 / 0x74706d00

I´m using my server machine as an KVM host. Since i have switched my Filesystem to zfsonlinux i getting the following errors on boot. The operating system is installed on an seperate ssd with using ...
2
votes
1answer
494 views

Is it safe to send ZFS-snapshots incrementally ignoring some intermediate snapshots?

Some background. I'm using ZREP to replicate two servers with each other and each server contains one ZFS-pool containing two datasets as replication master and two sets as replication target. The ...
1
vote
2answers
431 views

How to create a ZFS-On-Linux pool replication (main -> backup)

I am currently running two identical servers with same harddisks. Both have a zfs pool on sda and sdb (raidz) named /pool both run ubuntu linux server Both supposed to operate on vanilla toolset (no ...
2
votes
1answer
117 views

zfs remove device from a raid

I had a raid5 setup of three disks working up until a couple days ago, when a SATA cable acted up and left the pool on a degraded state. The disk is there, it's fine now but the system refuses to use ...
2
votes
1answer
125 views

ZFS auto-import using cache file failing

One of my systems has recently had its data-disks recreated on a new pool. However, after a reboot the system hangs on trying to import pools from the cache file. I'm puzzled by this, since I ...
2
votes
1answer
1k views

Upgrade ZFS from 0.7.13 to 0.8.0 on CentOS Linux

I have an CentOS 7.6 machine with zfsonlinux kABI-tracking kmod v.0.7.13 installed. How can I upgrade ZFS to the newest version? yum update says that i´m up-to-date. Thanks
1
vote
1answer
74 views

How do ZFS snapshots work and how would I implement a retention policy similar to OpenSolaris'?

I've been using ZFS for a while and have snapshots piling up. I believe I can start deleting the old snapshots, but want to be doubly sure. A ZFS snapshot would be essentially similar to a git tag ...
1
vote
1answer
247 views

Can FreeNAS zfs send to a Linux machine?

I have a FreeNAS 11.2 box. I'd like to use zfs send to send snapshots to another box. Can that receiving box be a Linux machine or does it need to be FreeBSD? What if the FS is encrypted using ...
2
votes
1answer
2k views

ZFS Send and ZFS receive dataset without -RI incremental replication sync

Is there a way I can send ONLY the latest snapshots to the backup zfs system even though it has previous snapshots? When I try I keep getting error: "cannot receive new filesystem stream: ...
2
votes
1answer
135 views

Unable to remove drive in ZFS raidZ2

I believe I messed up in replacing a failed drive in my ZFS RaidZ2 pool. I think I forgot to offline the failed drive first and ran the replace command and now it seems to have created a temporary ...
1
vote
1answer
552 views

How to mount a ZFS dataset with given uid/gid?

I feel like I am missing something very simple / basic here, but I wasn't able to figure out how to mount a ZFS dataset such that the mount point (root directory) has a given uid/gid ownership? ...
6
votes
1answer
2k views

ZFS Heavy Write Amplification due to Free Space Fragmentation

I have setup ZFS RAID0 for PostgreSQL database. The Storage and Instances are in AWS EC2 and EBS volumes. NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT pgpool 479G ...

1
2 3 4 5