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.

ZFS is supported out of the box on a number of operating systems:

  • Solaris 10
  • Oracle Solaris 11 Express
  • FreeBSD
  • NexentaStor
  • illumos - specifically, illumos-based distributions, like:
    • Nexenta's illumian
    • Joyent's SmartOS (server OS with strong focus on virtualization)
    • OmniTI's OmniOS (general purpose server OS)
    • OpenIndiana (general purpose desktop/server OS)

Due to license incompatibilities, the CDDL licensed ZFS code cannot be distributed as part of the GPL licensed Linux kernel. Other alternatives methods are available for running ZFS on Linux:

1391 questions
1
vote
1 answer

Forcefully forget / unmount ZFS pool after drives disconnected

First off, I made a mistake & I acknowledge that, but now I'm stuck with a "broken" ZFS driver and want to restore it without rebooting my machine. How I can say ZFS on Linux to just forget the existence of a pool (forcefully unmount & "export" it)…
Felix Stupp
  • 93
  • 1
  • 2
  • 6
1
vote
1 answer

Connecting from windows to debian Samba share

I have a proxmox installation with a few ZFS shares. The shares are created using zfs create storage/photos sudo zfs set acltype=posixacl storage/photos The user is created using sudo adduser --system --no-create-home samba-peter sudo smbpasswd -a…
Peter
  • 376
  • 2
  • 3
  • 12
1
vote
2 answers

Will disk compression impact the performance of a MySQL database?

I've recently setup a TrueNAS storage server and hosted on it is a MySQL database. It's about 3GB; I'm not too concerned with how much space it's utilising. By default, TrueNAS enables LZ4 compression on the ZFS filesystem. There's nothing else on…
Baa
  • 113
  • 3
1
vote
1 answer

zfs zpool dedup stat seems very wrong - how to interpret these values?

I run a fileserver receiving backups of user containers. Two containers are poorly run docker systems with hundreds of near-identical directories not using overlayfs nor zfs clones. (I cannot touch the user's containers to remedy their use nor seem…
math
  • 230
  • 2
  • 9
1
vote
0 answers

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 no difference in files between the dataset…
1
vote
1 answer

prevent zfs storage driver in docker rootless mode

I'm trying to use rootless docker, but when pulling and image, docker is trying to use zfs as the storage driver. I can confirm that docker info shows the zfs driver. I didn't intend or configure that anywhere. My OS isn't defaulted to zfs (btrfs…
beauk
  • 43
  • 5
1
vote
1 answer

Recreate Dataset Without Any Data?

I have some datasets that are frequently written to, but whose data is non critical (caches etc.). Is it possible to "send" these to another pool without copying any of their data? I realised too late of course that I should have just done this when…
Haravikk
  • 267
  • 4
  • 12
1
vote
1 answer

ZFS size discrepency between 2 very similar configurations

I have 20X sata 12TB disks in a file server with a Broadcom/LSI MegaRAID SAS39xx raid controller. It’s running ubuntu. For an performance experiment, I created two storage pools: -A single hardware RAID6 array of 10 disks = 8 data disks+ 2 parity…
Thingomy
  • 33
  • 7
1
vote
0 answers

ZFS checksum error: how to recover from a replica?

ZFS can automatically repair checksum errors if the drive with the error is part of a pool set up with redundancy. What about the case when the checksum error is on a pool without redundancy, but there is a replicated snapshot elsewhere? Can the…
Adam
  • 605
  • 1
  • 7
  • 15
1
vote
0 answers

On Linux ZFS Server - What is eating my memory?

Our monitoring tool regularly reports low memory for one of our servers running ZFS. # free -g total used free shared buff/cache available Mem: 125 84 39 0 2 …
1
vote
0 answers

Does trim need to be enabled inside a VM on a zvol?

zfs and virtio both have trim support, which means, that trim operations can be forwarded by VMs using zvols to the physical underlaying disks. (Please excuse my usage of the word "physical zpool". I use it to distinguish the zpool on the physical…
John Smith
  • 111
  • 2
1
vote
0 answers

ZFS : how to replace a faulted drive with hotspare

I'm new to ZFS and I've one simple and quick question. Here is my zpool : NAME STATE READ WRITE CKSUM vmstore DEGRADED 0 0 0 raidz2-0 DEGRADED 0 0 0 sdd ONLINE 0 0 …
Arcturus
  • 11
  • 1
1
vote
1 answer

Can I remove a disk from a ZFS stripe?

I have a large pool on a system. The system is a storage node in a Hadoop cluster, so a stripe is fine because if we lose the local pool we can reconstruct the data at the cluster level. A disk is going bad: can I tell ZFS to try and move the…
dannyman
  • 358
  • 5
  • 15
1
vote
1 answer

zfs does not recognize its own physical disks

I have repeating problem with the zfs pool where zfs stops recognizing its own, properly labeled (or so it appears) physical devices. Ubuntu 20.04.2 LTS 5.11.0-44-generic #48~20.04.2-Ubuntu SMP Tue Dec 14 15:36:44 UTC 2021 x86_64 x86_64 x86_64…
agatek
  • 31
  • 5
1
vote
0 answers

How to remove a device from a ZFS pool?

I wanted to add ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H into the raidz1-0. Running zpool add tank ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H unfortunately it becomes: $ zpool status pool: tank state: ONLINE config: NAME …
ロジャー
  • 223
  • 1
  • 3
  • 8