Questions tagged [zfs]
ZFS is a combined file system and logical volume manager designed by Sun Microsystems The features of ZFS include protection against data corruption, support for high storage capacities, efficient data compression, integration of the concepts of filesystem and volume management, snapshots and copy-on-write clones, continuous integrity checking and automatic repair, RAID-Z and native NFSv4 ACLs.. -Wikipedia
615 questions
0
votes
1
answer
28
views
Openzfs, Linux and nfsv4 acl
On Linux zfs seems to support nfsv4acl
zfs set acltype=nfsv4 rpool/ROOT/nas
echo $?
0
I create a fs
zfs create -o mountpoint=/var/pub rpool/pub
and...nothing works
nfs4_setfacl -e /var/pub
Failed to ...
0
votes
2
answers
56
views
Can I uninstall ZFS if using ext4 for everything?
I have never used ZFS for anything (that I know of).
To my surprise, there are 4 packages installed by default on my new installation of Linux Mint 22 (Cinnamon).
Naturally my question is, if I can ...
0
votes
1
answer
23
views
How to delete multipath (disk) device?
This is on TrueNAS 13.0U6.3 (FreeBSD 13.1-RELEASE-p9)
I had a disk in my ZFS pool die. I replaced it, but I updated TrueNAS (Core) first - I think I was on U6.0 or U6.1 before the update.
When I try ...
0
votes
1
answer
58
views
RHEL8 conditional automatic updates
I was tasked to setup automatic updates on some high-performance RHEL8 workstations & servers.
I don't like it, as a lot of things can go wrong with unattended updates, but well, it seems like ...
0
votes
0
answers
27
views
Zfs on Linux: why my snapshot directory is empty?
I can recover a snapshot single file with this way
mount -t zfs rpool/ROOT/nas@snap1 /media/hd
then cd /media/hd and cp...
But some users said is possible to access snapshot without mount it
I try ...
1
vote
0
answers
50
views
Right way to recursively share a path (like a symlink) and proper way to unmount/remount without messing with other mount points
Bind mounts seem to be hard. I am looking for the right way to use a bind mount to mount a given directory to another one pretty much like a symlink (but I can't use a symlink because my application ...
0
votes
0
answers
45
views
How do I set the ACLs/Folder permissions on a zfs dataset to allow SMB share with Samba?
Background info:
Linux Mint 22
Installed zfs tools
Installed Samba to enable smb sharing
I am new to Linux and I'm sure there is just a missing piece somewhere.
What I have Done So Far:
I created a ...
0
votes
0
answers
20
views
Where is ZFS keeping record of my faulted disks?
I had multiple drives in a ZFS array drop due to read errors yesterday. After powering down the machine to swap in a replacement for one of the drives, I was surprised to find that the drives ...
0
votes
0
answers
16
views
Why did ZFS import drives that were already labeled as FAULTED?
I am in the process of recovering a degraded array. I just finished backing up the array to a RAID1 mirror, powered down the system, and swapped in my spare for one of the FAULTED disks. To my ...
1
vote
0
answers
48
views
All 3 parity drives in my ZFS RAIDZ3 array have failed suddenly in cascade. Would an rsync to my backup array or a rebuild be safer as the next step?
I have an array of 8 drives in a ZFS RAIDZ3. While doing a routine scrub this week I had a sudden and unexpected cascade of 3 drives fail over the course of the operation. This was nearly catastrophic,...
1
vote
0
answers
40
views
lsblk can see all drives attached but udev only shows half of them. Conflicting indentifiers?
I'm trying to make a zfs pool on a terramaster D8 Hybrid DAS connected via USB with 4x HDD and 4x NVME drives using this guide. When i try to build the get the drive ids to build the zpool, not all of ...
4
votes
0
answers
62
views
Can I prevent ZFS writing to HDD by caching write requests during a time period?
Background
I have recently built a NAS/homelab, with one fairly large SSD for system and 3 HDDs in ZFS + RAID-Z1 for data. The setup works great, and I expect it to be on 24/7.
However, some services ...
1
vote
1
answer
51
views
Storing large amount of small files in HDD pool
I have a Z6 HDD pool with 6 x 18T drives and a SLOG, LZ4 compression is enabled by default. Now I need to store large amount of small files and I'm worried about fragmentation.
The files:
70K files ...
1
vote
2
answers
71
views
Installing pot on FreeBSD: no such pool 'zroot'
According to the documentation of pot, the following has to be done to install it:
pkg install -y pot
pot init -v
I tried this, but ended up with the following error:
cannot create 'zroot/pot': no ...
1
vote
1
answer
45
views
How to replicate an entire disk using ZFS
I have 2 x 2TB disks (they are not equal). In the master I have my ZFS pool (rpool, where Proxmox is installed in). I'd like to clone/replicate the entire disk on the slave once a day.
How can I do?
0
votes
1
answer
42
views
zfs: Destroying snapshot frees way more than expected
Before:
$ zfs list -t snapshot -r rpool/DATA
NAME USED AVAIL REFER MOUNTPOINT
rpool/DATA@zfs-auto-snap_monthly-2023-10-01-0452 140G - 22.7T ...
0
votes
1
answer
111
views
ZFS: Keyformat required for new encryption root
I am trying to create a filesystem in ZFS with the following command:
zfs create -o compression=on -o recordsize=1M -o encryption=on pool/dataset
I am unable to do so, since I receive the following ...
1
vote
1
answer
61
views
swap on zfs blocks system
Over the past few years I have had two laptops exhibiting the same behaviour.
One was fixed by re-installation.
The other is currently broken.
The issue is that as soon as the laptop starts swapping ...
0
votes
1
answer
26
views
Adding a fresh zfs sub-dataset pri_zp/Z1/Z99-future to pri_zp/Z1, and resuming recursive replication to sec_zp/Z1
I have set up and replicated the OpenZFS dataset pri_zp/Z1 (with pri_zp/Z1/Z00-initial) to sec_zp/Z1 using a zfs send -R.
But then (months later) when I try to create (and replicate) a newer data set, ...
0
votes
0
answers
17
views
Virtual volume stored on a RAIDZ pool takes twice the amount of space as it should
I have a Proxmox server with 24 4T nvme drives. I have created a RAIDZ pool called Media3 which is about 84T in total usable space. I have setup a virtual host and added a second virtual disk to the ...
2
votes
2
answers
274
views
How to Remove a Large File from ZFS Snapshots and Reclaim Space?
I have a series of daily ZFS 100Mb snapshots of archive_zp/my_zfs, going back 100 days. At day 60 (between @ss59%ss60) I had added a 10 GiB sized archive_zp/my_zfs/BIG.iso file, that 10 GiB now ...
1
vote
0
answers
109
views
ZFS error while mounting an encrypted partition
ZFS errors, I dont know why. Here are the step-by-step actions I took to attempt to mount the encrypted ZFS disk.
$ sudo zfs list
NAME USED AVAIL ...
0
votes
1
answer
158
views
ZFS error for load-key
I've tried everything I know until I'm exhausted. Please, if you can help me, I need to access my project stored on my hard drive.
The command I used:
sudo zfs load-key rpool/ROOT/ubuntu_uy913x
And ...
0
votes
1
answer
451
views
Unable to mount encrypted ZFS filesystem after reboot
Key load error: Failed to open key material file: Input/Output Error.
Command: `mount -o zfsutil -t zfs rpool/ROOT/ubuntu_uy913 /root/`.
Message: `zfs_mount_at() failed: encryption key not loaded`.
`...
4
votes
1
answer
257
views
Rescuing ZFS after Debian upgrade
So I had older Debian system which needed to be upgraded. I did dist-upgrade, but forgot I am running ZFS on a root partition. :/ Result: system won't boot again. Because I would need to manually ...
1
vote
1
answer
35
views
Controller failure on ZFS pool
I am running ZFS on an old Sun Fire X4170M2 connected to Sun StorageTek 6140 expansion shelves (i.e. JBOD). We had a hardware failure this morning.
This is the current state of our pool:
pool: tww
...
0
votes
0
answers
30
views
How to set a quota on Logical Disk Space (logicalused) in ZFS?
I am currently using ZFS and need to set a quota on the logical disk space (logicalused) rather than the physical disk space used after compression. The quota and refquota properties in ZFS set a ...
1
vote
0
answers
41
views
Remove disk from raidz3-0 on zfs
I have a zfs pool that holds my backup. Every disk has only one partition.
~# zpool status backup_pool
pool: backup_pool
state: ONLINE
scan: resilvered 108K in 00:00:00 with 0 errors on Tue Jun ...
0
votes
1
answer
92
views
Not able to use drbd over lustre zfs
I am running the below command to format the nvme drive to lustre with backfstype as zfs
mkfs.lustre --mdt --reformat --mgsnode=mgsmaster@tcp --backfstype=zfs --fsname=lustre mdtpool/mdt --index=0 /...
1
vote
0
answers
99
views
Deciding between raidz1, raidz2 and mdraid6 for JBOD Array
Have a new Linux server with a dual SAS attached 60 bay JBOD filled with 20TB (18.2 TiB) disks. I am definitely running ZFS but trying to figure out whether to use small raidz1's, bigger raidz2, or ...
0
votes
0
answers
20
views
Boot strap a remote backup
I'm setting up an offsite backup of my NAS,(truenas scale if it is relevant), the remote system is being built on site so I don't have physical access to it yet, but I will travel to it soon.
I would ...
0
votes
0
answers
181
views
How do I stop and close these processes listening on sunrpc port? Presumably for proper zfs operation
I have a zfs volume that is automounted at startup. Doing an lsof -i shows systemd pid 1 listening on the sunrpc port for tcp and udp. There's an rpc.mount and rpcbind that shows up as well during ...
0
votes
0
answers
89
views
How to turn off Sanoid's snapshotting for a subtree of datasets?
I'd like to set up Sanoid to create snapshots of my system dataset, except for the Docker images under /var/lib/docker. I have the following two templates:
[template_system]
frequently = 0
...
1
vote
1
answer
784
views
How to access/import/mount a zfs file
I've asked my wordpress hosting provider to give me a snapshot of the server as I'm looking to migrate the site elsewhere. What I've been given is a .zfs file.
I was completely unaware of what zfs was ...
1
vote
1
answer
302
views
ZFS dataset encryption on top of LUKS
There has been discussions about using ZFS on top of a LUKS-encrypted partition vs. using ZFS's native per-dataset encryption. However, they are always presented as either-or.
My question is about ...
0
votes
0
answers
176
views
Installing Grub on btrfs /boot when root is on ZFS
I'd like to use Grub for booting my Linux system. The system has its root filesystem on a ZFS dataset, it has the usual EFI boot partition, and a btrfs partition that can be used as /boot. When the ...
0
votes
1
answer
174
views
Incus - Setting migration.stateful for stateful snapshots
I'm trying to get to grips with Incus, because it looks like it is a fork of Canonical's LXD, which I can run fairly easily on Debian 12 with a deb package, rather than using snaps.
I have it all set ...
0
votes
0
answers
99
views
Unlocking only specific ZFS datasets at boot
I have the following datasets in a ZFS pool:
NAME USED AVAIL REFER MOUNTPOINT
rpool 3.68G 185G 192K none
rpool/FOO 3.43M 185G 192K none
...
0
votes
1
answer
220
views
ZFS remove password
I have an encrypted ZFS partition, but I'd like to remove the password not to type any password when booting. Is it possible, ideally without decrypting each file one by one? For instance what happens ...
2
votes
0
answers
127
views
zpool import error
I suffered a complete pool failure – the fan in the array chassis stopped working and all drives overheated. After cooling down, all drives checked out ok using seagate's seatools test utility and ...
1
vote
0
answers
79
views
Access data from ZFS encrypted drive
I need to access data from the /home directory from an ZFS encrypted drive. The drive was previously set up with encryption on a Linux Mint system during the installation process.
I have two questions ...
4
votes
1
answer
196
views
Which filesystems support the C attribute?
On BTRFS filesystems you can disable CoW for a file using the C file attribute, like this:
chattr +C filename
I expected this to work on ZFS too, since it is also a CoW filesystem, but the attribute ...
0
votes
1
answer
57
views
Synchronous syscalls and uninterruptible sleep
My application entered uninteruptible sleep. The process is stuck at linkat.
❯ sudo cat /proc/1308028/syscall
265 0xffffffffffffff9c 0x7fbd9f32a120 0xffffffffffffff9c 0x7fbd9f395930 0x400 ...
1
vote
1
answer
200
views
ZFS which uses SAN (ISCSI/FC/NVMEoe...) as VDEV
Is it reasonable to use ISCSI/FC as a block device and use it as a vdev for ZFS?
Reasoning:
There is only so much disks (even with external enclosures) that you can put in one host. We are looking ...
0
votes
1
answer
29
views
Tried Replacing ZFS Drive which started then errored. Now I can't get it to restart after fixing the second disk it found
I have a disk in the following state:
zpool status
pool: data
state: DEGRADED
scan: resilvered 1.49G in 05:08:02 with 0 errors on Sat Jan 6 18:35:13 2024
config:
NAME ...
1
vote
0
answers
52
views
zfs releases space before destroying snapshots
I cleaned up today.
When I started my filesystem was 90% full. Now it is showing 87%:
Filesystem 1K-blocks Used Available Use% Mounted on
rpool/DATA 23201798016 20038152576 ...
0
votes
1
answer
331
views
ZFS: Best Practices for Restructuring multiple pools with encrypted datasets at once
High Level Description
So I currently have a convoluted ZFS setup and want to restructure it, reusing some of the existing hardware.
I know that the recommended way of doing something like this is to ...
3
votes
1
answer
2k
views
How can I encrypt a ZFS pool?
Preface: I used to run TrueNAS (SCALE) which is where I originally created the tank pool.
On Ubuntu Server, I'm trying to assign/change the key of a newly created pool but I am getting the error Key ...
0
votes
1
answer
54
views
Two system pools on 1 disk - 1 or 2 /boot directories and WTB grub?
I have a legacy root-on-zfs install that was once made by installing to an ext4 / with /boot on a separate ext4 partition, and then moving the contents of / to a ZFS pool.
I had various *BSD ...
0
votes
1
answer
464
views
Linux Mint Mate 21.2 ZFS rpool, bpool, and another one - in Caja Sidebar visible - How to get rid of it?
In installed an enrcypted Linux on an separate SSD. In the Install process i choose ZFS.
In Caja (1.26) i saw these Folder and wonder why i get this, so i just want to get rid of it, because i dont ...