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.

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

For a server grade workstation, if I want raid1/mirror on root, is ZFS or mdadm better? [closed]

Two questions in regards to read/write speed, reliability, security, and ease of access: What would be better for a server grade desktop, with ECC memory, for a raid 1 mirror on root, Linux software ...
30 votes
4 answers
35k views

Should I create ZFS zpools with whole disks or partitions?

I am making zpools on FreeBSD machine. While creating zpools I observe these two cases: If I take raw disks and create zpool then I am able to form zpools and they are working perfectly. If I format ...
0 votes
0 answers
40 views

Restore ZFS Pool after a broken HDD

i lost my ZFS Pool on a trueNAS System due to a failed / broken disk The Pool was a non mirrored Pool with 4 HDD (6-10 TB each) I am working on a new trueNAS for backup all the files to a mirrored ...
2 votes
2 answers
80 views

XFS / ZFS - Unable to mount filesystem - I/O Error

We have a server with Ubuntu 20.04.6 LTS. It is the secondary storage for our backup, with 12x8TB HDDs in a RAIDZ3, with an XFS filesystem on top. A couple of days ago, one drive failed. I thought, &...
46 votes
11 answers
76k views

How to delete all but last [n] ZFS snapshots?

I'm currently snapshotting my ZFS-based NAS nightly and weekly, a process that has saved my ass a few times. However, while the creation of the snapshot is automatic (from cron), the deletion of old ...
5 votes
5 answers
8k views

MongoDB and ZFS bad performance: disk always busy with reads while doing only writes

I have huge performance issues using MongoDB (i believe it is mmapped DB) with ZFSonlinux. Our Mongodb is almost only writes. On replicas without ZFS, disk is completely busy for ~5s spikes, when app ...
18 votes
3 answers
41k views

Increase the ZFS partition to use the entire disk

I have a ZFS pool that currently occupies 100Gb. I increased the disk size to 150Gb, but I can't seem to get the ZFS use the entire disk. I have a the same exact issue yesterday with another server, ...
4 votes
1 answer
414 views

zfs not using full disk I/O

I have setup zfs on a fresh Ubuntu 20.04. But speed seems awfully slow. The disks can deliver 140 MB/s if run in parallel: $ parallel -j0 dd if={} of=/dev/null bs=1M count=1000 ::: /dev/disk/by-id/...
0 votes
0 answers
33 views

Access to ZFS pool when one drive has failed is incredibly slow

I have a ZFS box that I inherited that is having a lot of issues. Checking the status I see there are a few drives with issues: ganymede $ zpool status -x pool: dpool state: DEGRADED status: One or ...
0 votes
0 answers
40 views

ZFS silently overwrites the later mirrored devs, without any logs?

Given two mirrored drives: /dev/loop1 of zfs1.img /dev/loop2 of zfs2.img If the drives contain different data, even if the copies in zfs2.img are newer, or zfs2.img contains extra files, ZFS always ...
1 vote
0 answers
56 views

zfs errors on hetzner cloud ubuntu 22.04

I have an ubuntu 22.04 system on hetzner cloud arm machines that keeps experiencing zfs errors, and I am a bit stumped as to what is the problem. zpool status -v pool: encpool state: ONLINE status: ...
0 votes
0 answers
190 views

Zpool Import, one or more devices is currently unavailable

I know this is a pretty common question, but I haven't found a situation quite like mine. To cut it short, I had a ZFS pool on my home server on bare metal of proxmox, wanted to move it to an open ...
0 votes
0 answers
678 views

Samba Windows ACL not working

I want to configure Samba to manage Windows ACL and manage them from Windows via the security tab. The Samba server is standalone and not part of an AD tree; i already followed various offical and ...
7 votes
1 answer
433 views

Upgrade OS on ZFS file server

I need to upgrade the OS of my ZFS disk server from CentOS 7 to Rocky Linux 9. I am currently running ZFS 2.0.7, and if I'm correct Rocky Linux 9 uses 2.3. My tentative plan is to use the AlmaLinux ...
0 votes
0 answers
60 views

FreeBSD ZFS raidz1 Started a (da59) drive replacement. During resilver, second drive (da60) failed

Our system started slowing down... Found a couple of drives in the same raid that looked scary. Replaced the drive that S.M.A.R.T. marked as failure eminent. (da59) Then da60 started to error. Finally ...
8 votes
1 answer
11k views

ZFS inside a virtual machine

Should I use ZFS inside a virtual machine? According to existing information (in particular this thread, which I will quote below) it is not a good idea, unless certain measures are provided (such as ...
0 votes
0 answers
69 views

Backing up a MySQL/MariaDB database via ZFS snapshots without errors

So I am using zrepl to take snapshots of my production machine and replicate them to a backup server. This also includes MariaDB, it's in it's own dataset with recordsize=16k I've been testing the ...
1 vote
1 answer
166 views

change disk cache settings on Samsung PM9A3 via nvme-cli

I will be running Proxmox guests on a ZFS volume consisting of Samsungs PM9A3 NVME drives. I read here for ex. it might be an advantage in performance to keep the cache of those drives active. So I ...
9 votes
4 answers
13k views

zfs: scrub vs resilver (are they equivalent?)

Is a resilver as good as a scrub? If not, why? Use case: during a scrub checksum errors come up. Instead of continuing with the scrub, stop it, replace drive and resilver. Did the resilver do some/...
5 votes
3 answers
5k views

ZFS performance: Extreme low write speed

I am running a small home server. The specs are: CPU: AMD Ryzen 5 2600 RAM: 32 GB ECC System drive: 128GB NVMe SSD Data drives: 3x 4 TB Seagate Barracuda HDD The server runs some applications like ...
-1 votes
1 answer
38 views

ZFS Rollback not including all files

I messed up and accidentally deleted a everything in a dataset of many subdirectories. Luckily I have daily snapshots and nothing had changed so I did a rollback to the most recent snapshot. After the ...
2 votes
1 answer
380 views

dRAID, Parity 1 + 1 Distributed Spare Better than basic RAIDz2 for 5x12TB HDDs?

Stumbled on dRAID recently and was grokking the docs for OpenZFS on linux and I came away with a conclusion from the chart that I wanted to double check. This is a brand new system that I'm currently ...
0 votes
1 answer
76 views

df reports zfs used space as 128K, not the actual used space

I have a ZFS mirror pool in my Proxmox instance. I am trying to get it to mount to an LXC container read-only (preferably not giving full filesystem access) so I can have Homepage detect the used and ...
-1 votes
1 answer
233 views

ZFS requested features not enabled

I am running a TrueNAS (formerly FreeNAS) based server for about six years now. It is currently running TrueNAS 13.0-U6.1. There is a "boot pool" and a "data pool", both installed ...
-1 votes
1 answer
100 views

Is it possible to backup across multiple hard drives?

I'm going to be setting up an 8x20TB ZFS RaidZ2 with no spare. This will give me roughly 100TB of storage for large 3D model files. I want to purchase some extra HDDs so I can periodically backup and ...
1 vote
1 answer
208 views

ZFS permission error 'cannot set property' when receiving snapshot from remote machine despite delegated permission

Context I'm setting up ZFS autobackup on my home server for offsite backups. All commands printed below are run as non-root. Problem A 'permission denied' error arises originating from the target ...
1 vote
1 answer
393 views

ZFS send/recv full snapshot

I have been backing up my ZFS pool in Server A to Server B (backup server) via zfs send/recv, and using daily incremental snapshots. Due to hardware issues, the ZFS pool in Server A is now gone - and ...
2 votes
2 answers
7k views

zfs module not found on centos after restart

After I rebooted a CentOS server, ZFS does not work: $ sudo zfs list The ZFS modules are not loaded. Try running '/sbin/modprobe zfs' as root to load them. $ sudo modprobe zfs modprobe: FATAL: ...
16 votes
3 answers
14k views

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 ...
1 vote
1 answer
64 views

zpool mismatched replication level

I have accidentally added a mismatched raidz1 to an existing pool. Yes, I specified the '-f' to do it, but I was expecting to use the '-f' for a different reason and wasn't paying attention. Anyhoo......
0 votes
2 answers
122 views

How does zfs know which snapshots to send with the `-I` flag?

From the manual: A group of incremental snapshots can be combined into one snapshot by using the zfs send -I option. For example: # zfs send -I pool/fs@snapA pool/fs@snapD > /snaps/fs@all-I How ...
0 votes
0 answers
74 views

ZFS still writes to HDDs vdev while dataset is configure to store special for Docker

I'm facing a strange behaviour when using Docker together with ZFS. I have one pool with 2x10TB HDDs as mirror vdev and 2x250GB NVMEs as mirror for special vdev (to store metadata and datasets with ...
8 votes
1 answer
777 views

Change ZFS mountpoint property without remounting

I want to replace one ZFS filesystem (volume in a pool) with another ZFS filesystem (another volume in the same pool). Rebooting is okay, but I'd like to avoid single user mode. When I try to set ...
0 votes
0 answers
44 views

ZFS scrubbing keeps reparing disks

I've got two SSDs in a RAID 1 (mirroring) configuration on ZFS. They are quite old (~10 years I guess) but have never been used much in these years. That's my configuration pool: tank state: ONLINE ...
1 vote
1 answer
186 views

Recover ZFS mirror from pool with unavailable device

I tried to expand my two-way mirror to a three-way mirror. The new drive had some filesystem issues (ext4) so I tried to force zpool add -f the drive for ZFS to handle for me. This led to a weird ...
3 votes
3 answers
347 views

FreeBSD - Is it possible to create a clone of a snapshot in a different disk for improved performance?

I am a new to FreeBSD and want to make a virtual disk service via iSCSI. I create snapshots of a dataset on the same disks, however I would like to create clones on a different disk like a NVMe drive ...
0 votes
0 answers
32 views

/dev/zvol/pool/group/srv points to partition zd0p16 not volume zd0 - bug or feature?

I am only starting to get familiar with openzfs 2.2.0 on Linux (Ubuntu kernel 6.5) and immediately ran into something strange. A symlink I was expecting to point to a zvol block device.. was pointing ...
1 vote
1 answer
72 views

ZFS list - root mounted twice?

I've followed this guide to install ubuntu with root on zfs. I've skipped creating all the dedicated (sub) datasets in step 3.3. Now "zfs list" looks like: NAME USED ...
10 votes
1 answer
21k views

How do I expand the root's volume size?

I have Ubuntu Server 18.04 LTS running off a 16GB SanDisk USB pendrive in my server. From what I can remember, when I installed Ubuntu on there I had enabled LVM support. For some reason, when I ssh ...
13 votes
4 answers
2k views

ZFS: Is there a way to find out where the blocks for a file are stored?

Is there a way in zfs to find out where blocks for a particular file are stored? I'd like to be able to ask for the locations of all the blocks for a file, including ditto blocks. (Yes, I understand ...
2 votes
1 answer
405 views

Snaphot sizes in ZFS and syncoid backups of them

I got a question about ZFS snapshotting: So, as far as I understand, when I take a snaphot of a ZFS dataset, the snapshot will be initially 0 bytes in size, because at the moment of creation, there is ...
0 votes
0 answers
40 views

Bash script error when trying to create a snapshot

I am trying to create a snapshot using Bash script as below but error occurred. Environment: FreeBSD, Version: 13.2, Script: Bash #!/usr/local/bin/bash name="17102023_1234" zfs snapshot data/...
1 vote
1 answer
489 views

Why are files copied over usb to be 0 bytes?

This is a recurrent topic and I have read some answers on serverfault amongst them: Folder sizes differ within two copied NTFS file trees (using ntfs-3g) We have a ubuntu client from which researchers ...
5 votes
2 answers
202 views

Can ZFS send/receive help me recover from partial pool loss after upgrade to Ubuntu 22?

I have a long-running ZFS pool under Ubuntu, which has been through many upgrades. After upgrade from Ubuntu 20 to 22, the encrypted filesystems refuse to mount, though the rest seem OK. zpool ...
0 votes
0 answers
89 views

Enlarged my TrueNAS boot pool instead of mirroring. How can I fix it?

In Problems trying to replace disk in truenas mirrored boot, I was trying to fix a failed drive on my mirrored TrueNAS boot pool. I flailed around and eventually got it booted with just one drive of ...
0 votes
1 answer
166 views

Problems trying to replace disk in truenas mirrored boot

I have a TrueNAS box (TrueNAS-13.0-U5.3) and my boot pool is mirrored 32GB flash drives. One of the drives, da2, is getting errors, so I want to replace it. I already have a new drive plugged in, da1, ...
3 votes
2 answers
199 views

ZFS mismatched replication level

I have a RAIDZ1 running 6x 3TB drives, and I want to expand my pool by adding 5x 2TB drives to it. But when I tell it to add to the pool I get this: $ zpool add zpool1 raidz1 /dev/sda /dev/sdb /dev/...
0 votes
1 answer
300 views

ZFS I/O Error, Kernel Panic during import

I'm running a raidz1-0 (RAID5) setup with 4 data 2TB SSDs. During midnight, somehow 2 of my data disks experience some I/O error (from /var/log/messages). When I investigated in the morning, the zpool ...
14 votes
5 answers
12k views

How to run a command once a ZFS scrub *completes*?

I would like to use cron to schedule periodic scrubs of my ZFS pool, and at some reasonably short time after the scrub finishes, email a status report to myself. The purpose of this is to catch any ...
0 votes
1 answer
106 views

Scheduling SMART, scrub, resilvering considerations, conflicting?

I have set up regular scrub on my ZFS pools and am beginning to look at setting up smart check every now and then, but I have a distinct memory of an entry I am unable to find that one should not ...

1
2 3 4 5
29