Questions tagged [zfs]

ZFS is an integrated filesystem and volume manager, originally designed by Sun. Use this tag for all questions related to ZFS commands and features, including Zpool creation, import and export, ZFS volume and filesystem management, and Ubuntu "Root on ZFS" (using ZFS as the root filesystem).

ZFS (originally dubbed the Zettabyte File System) is an integrated filesystem and volume manager designed by Sun Microsystems. Since 2013, the open source versions of ZFS for FreeBSD and Linux has been coordinated by OpenZFS under the CDDL license.

ZFS is an advanced filesystem and volume manager, with a number of advanced features, such as:

  • Pooled storage with hot-spares, cache disks etc.
  • Copy-on-write operation
  • Data integrity verification and automatic repair
  • Native handling of standard RAID levels, in addition to RAID-Z, RAID-Z2 and RAID-Z3
  • Native handling of snapshots and backup/replication
  • Native data compression, encryption and deduplication
  • Maximum 16 Exabyte file size
  • Maximum 256 Quadrillion Zettabytes Zpool size
553 questions
55
votes
2 answers

How do I mount a ZFS pool?

Sorry for asking an Ubuntu concerning question, but I hope that someone here has some experience with that. I have to mount the zfs pool I created with freenas8 on Ubuntu. I tried as it was described in this archived Link. I was able to run this…
btzs
  • 653
38
votes
4 answers

Replacing a dead disk in a zpool

I'm running Ubuntu Server 13.04 64-bit using native ZFS. I have a zpool consisting of 4 hard drives of which one died yesterday and now is not being recognized by the OS or the BIOS anymore. Unfortunately I saw the problem only after the next…
Marcus
  • 971
  • 1
  • 8
  • 11
36
votes
2 answers

Ubuntu: How to mount zfs snapshot?

I'm trying to mount zfs snapshot. It should to be so easy...but I can't do that. I'm using Ubuntu Server 11.10 Oneric, kernel 3.0.0-15-server. Installed ZFS from ppa also I'm using zfs-auto-snapshot. With manually created snapshots the same…
BBK
  • 2,119
22
votes
8 answers

zpools doesn't automatically mount after boot

Running Ubuntu 13.10 server. Installed and setup zfs from the Ubuntu ppa. All appears to work fine after a reboot if I manually do a 'sudo zfs mount -a', but reading the FAQ on zfsonlinux.org it appears I should expect it to automatically mount. …
21
votes
3 answers

How to use ZFS on Ubuntu 16.04?

It seem that Ubuntu 16.04 LTS supports the ZFS filesystem. But how do I use it? I'm sorry, I don't know very much about ZFS, but it sounds good. I want it.
吴志权
  • 221
17
votes
3 answers

ZFS partition as swap

I'm using native-zfs and was wondering if there is a way to use a ZFS partition for SWAP. I'm running my server off of a thumbdrive and thought that would be a good way to speed it up a little bit.
Dan
  • 171
14
votes
2 answers

Activate ZFS Snapshots

I accidentally delete some files from my zfs pool and tried to mount the latest snapshots but i just figured out that i have no snapshots. How to activate the snapshots, how to configure it? I am using Ubuntu 12.04.1 server and zfs 0.6.1, pool…
Misu Egri
  • 167
14
votes
1 answer

Should I turn on zfs-trim on my pools or should I trim on a schedule using systemd timers or cron?

I run Ubuntu 19.10 installed on ZFS through the new ZFS install option on 19.10. This is on a Thinkpad X1 Carbon 7th which is in heavy daily use. No dualboot so it's Ubuntu all the time. The laptop has a SSD, and as I understand it fstrim doesn't…
Christian
  • 1,789
  • 2
  • 22
  • 38
12
votes
2 answers

How do I remove a pool from ZFS?

My Ubuntu 12.04 system has two zpools: rpool (containing the root filesystem) and rdata (containing all other data). rdata was originally 2 x 1TB disks mirrored. Because I couldn't upgrade rdata to 3TB disks (wrong ashift) I had to create a new…
Gareth
  • 173
12
votes
3 answers

Can not use Swap file on ZFS: Files with holes

I'm trying to add a new swapfile to increase Swap Space by following this tutorial. The swapfile creates successfully but, the swapon command won't accept it: says "skipping - it appears to have holes.". I'm running Xubuntu 19.10 with ZFS on…
slashsbin
  • 261
11
votes
2 answers

Disable automatic ZSys snapshots - ZFS on root

How can I disable the automatic ZFS snapshots on Ubuntu 20.04 with ZFS on root? zsys seems to create snapshots but doesn't seem to remove them, which causes my system to run out of disk space.
Tom Dörr
  • 330
11
votes
1 answer

rsync giving "file name too long" errors with ecryptfs

I'm trying to use rsync to make an archival copy of a file system. Most of the files are being copied OK. However, some files are failing to be copied with errors such as the following: rsync: recv_generator: failed to stat…
10
votes
2 answers

Enable ZFS ZED Email Notifications on 16.04

As ZFS is now officially supported in Ubuntu 16.04, I would like to enable email notifications for my ZFS pool. Below are the steps I have taken so far, however I am now currently stuck: Installed msmtp and set it up to work with an external gmail…
10
votes
1 answer

Extend existing Single Disk ZFS with a mirror without formating the existing HDD

I have one HDD formatted as single disc zfs system on my server. It looks like the following: Now I want to convert this to a zfs mirror without formatting the original disk. Any ideas? Result should be something like: hdd0 mirror0 …
kaulex
  • 255
10
votes
4 answers

Is ZFS on Ubuntu 20.04 using a ton of memory?

I have 64GB installed but htop shows 20GB in use: Running ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -n gives me the largest processes using only a few 100 megabytes and adding up the whole output only gets me to 2.8GB (ps aux | awk…
Thomas Browne
  • 376
  • 3
  • 8
  • 26
1
2 3
36 37