ZFS Linux Operations

Doku

https://docs.oracle.com/cd/E19253-01/820-2313/gaynr/index.html

ZFS Installation unter Proxmox

ZFS installieren

apt install linux-headers-amd64 zfsutils-linux zfs-dkms zfs-zed

[:https:openzfs.github.io_openzfs-docs_getting_20started_debian_debian_20bullseye_20root_20on_20zfs.html|[https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html\\](https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html%5C%5C%5C%5C%5C)]]

Partitionieren

root@kakariki /etc/apt # fdisk /dev/disk/by-id/nvme-eui.0025388511c55959

(Achtung: gdisk konvertiert MBR nach GPT)

/dev/disk/by-id/nvme-eui.0025388511c55959 /dev/disk/by-id/nvme-eui.0025388511c5595b

DISK1=/dev/disk/by-id/nvme-eui.0025388511c55959-part7 DISK2=/dev/disk/by-id/nvme-eui.0025388511c5595b-part7

Dannach zpool anlegen. „mirror“ entspricht RAID1

zpool create [-dfn] [-m mountpoint] [-o property=value]… [-o feature@feature=value]
[-o compatibility=off|legacy|file[,file]…] [-O file-system-property=value]… [-R root] [-t tname] pool vdev…

zpool create -o ashift=12 -o autotrim=on -d -o cachefile=/etc/zfs/zpool.cache -o feature@async_destroy=enabled -o feature@bookmarks=enabled -o feature@embedded_data=enabled -o feature@empty_bpobj=enabled -o feature@enabled_txg=enabled -o feature@extensible_dataset=enabled -o feature@filesystem_limits=enabled -o feature@hole_birth=enabled -o feature@large_blocks=enabled -o feature@livelist=enabled -o feature@lz4_compress=enabled -o feature@spacemap_histogram=enabled -o feature@zpool_checkpoint=enabled -O devices=off -O acltype=posixacl -O xattr=sa -O compression=lz4 -O normalization=formD -O relatime=on -O canmount=off -O mountpoint=/ -R /mnt rpool mirror /dev/disk/by-id/nvme-eui.0025388511c55959-part7 /dev/disk/by-id/nvme-eui.0025388511c5595b-part7

zfs Datasets erstellen

zfs create rpool/mirror

Pool und datasets wieder löschen

zpool destroy -f rpool

Betrieb in der Praxis

Bestehende Pools zeigen

root@kakariki \~ zpool list 
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT 
rpool   888G   388G   500G        -         -    52%    43%  1.00x    ONLINE  -

Statusanzeige

pool: rpool 
 state: ONLINE 
status: Some supported and requested features are not enabled on the pool. 
        The pool can still be used, but some features are unavailable. 
action: Enable all features using 'zpool upgrade'. Once this is done, 
        the pool may no longer be accessible by software that does not support 
        the features. See zpool-features(7) for details. 
  scan: scrub repaired 0B in 00:09:06 with 0 errors on Sun Aug  9 00:33:07 2026 
config: 
 
        NAME                                 STATE     READ WRITE CKSUM 
        rpool                                ONLINE       0     0     0 
          mirror-0                           ONLINE       0     0     0 
            nvme-eui.0025388511c55959-part7  ONLINE       0     0     0 
            nvme-eui.0025388511c5595b-part7  ONLINE       0     0     0