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.

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.

268 questions
5
votes
5 answers

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 writes into DB every 30s, and no disk activity in…
Alex F
  • 859
  • 1
  • 10
  • 17
5
votes
2 answers

ZFS Reporting (on FreeBSD and Linux via ZoL)

As a longtime mdadm user is was just experiencing a disk error and remembered that I configured a Auto Mail reporting for mdadm on disk errors. Therefore i just had to insert my Mail address inside /etc/mdadm/mdadm.conf MAILADDR…
Daywalker
  • 495
  • 5
  • 25
5
votes
2 answers

Does it make sense to create a zpool with lots of mirror vdevs?

To prefix, I am rather new to ZFS. My goal is to create an internal NAS system, with minimal chance of losing all my data. I've currently acquired four 4TB disks, and I plan to run them in a single zpool with two mirrored vdevs, like so: pool:…
MechMK1
  • 346
  • 2
  • 9
5
votes
0 answers

What is the easiest way to encrypt an existing ZFS dataset?

I would like to convert a lot of ZFS datasets I have on a (Ubuntu 20.04) server (about 3 TB of data). I've already tested this a bit, and what I've been doing so far is: Create a new encrypted dataset with zfs create -o encryption=on -o…
Oleg
  • 373
  • 1
  • 7
  • 17
4
votes
1 answer

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 and has since been reduced to that this happens…
4
votes
1 answer

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 each) have 512B sectors. Also created some ZFS…
4
votes
2 answers

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 thought the process to create a replica of an…
Walter
  • 243
  • 2
  • 6
4
votes
1 answer

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? Something along the lines of: root# zfs mount -o…
Saurabh Nanda
  • 489
  • 1
  • 8
  • 20
4
votes
2 answers

How to change default zfs options of a zpool?

How do I change the default options for zfs filesystems on an existing zpool? That is, ZFS stored for each zpool pool the default values for new zfs filesystems. Those are then used by zfs create as default values if they aren't explicitly…
vog
  • 558
  • 6
  • 11
4
votes
0 answers

Are the in-built sharesmb / sharensfs options in ZFS on Linux special/better?

While reading through the man page of zfs I noticed the sharesmb and sharenfs options. Are they thin wrappers over samba/smb/cifs/nfs provided by the underlying Linux system, or special/optimised code baked right into ZFS? Is there anything peculiar…
Saurabh Nanda
  • 489
  • 1
  • 8
  • 20
4
votes
1 answer

ZFS test rollback doesn't work as expected

I am confused about how ZFS snapshots and rollback are supposed to work. I have a zpool containing a couple zvols (each made from partitions of a mirrorvdev). I make a snapshot like this: ~$ sudo zfs snapshot nvme-tank@roll_test Then I boot a VM…
Stonecraft
  • 313
  • 3
  • 4
  • 18
4
votes
1 answer

Grow ZFS mirror

I have a ZFS pool with 6 disks in a RAID 10 configuration. I would like to upgrade the drives in one of the mirrors, from 1TB to 3TB drives. I have all the drives installed in the system. I would prefer not to do it by replacing one drive, resilver,…
wmantly
  • 43
  • 1
  • 4
4
votes
2 answers

ZFS snapshot zd0 block device

I'm trying to make use of the ability of zfs snapshots. To explain a little how it's configured on my end: zpool create vol0 mirror /dev/sda /dev/sdb zfs create -o volblocksize=128K -V 15T vol0/pprovol I got my ZFS volumes: NAME USED …
g00gle
  • 343
  • 1
  • 3
  • 5
4
votes
0 answers

ZFS: usedbydataset value unusually large on one zpool

I have a 500T ZFS server with 8 zpools. The usage overall is pretty moderate. However, I noticed that on one of the zpools the usedbydataset value is as large as 24.2T. The actual user data on this zpool is just about 4T. The other zpools have…
Ketan Maheshwari
  • 333
  • 1
  • 3
  • 8
4
votes
1 answer

ZFS - Zpool disk replace results in restarting resilver process that never ends

I replaced a broken drive with a type already used in my pool for some time. The problem I face is that the resilver process seems to be stuck in a restart-loop. Whenever I check the zpool status I see that the resilver process started a couple of…
straumli
  • 61
  • 3