echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
- /etc/apt/sources.list.d/pve-install-repo.list
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
- /etc/apt/sources.list.d/buster-backports.list
deb http://deb.debian.org/debian buster-backports main
Vorher die Kernel Headers noch installieren!
apt install pve-headers-$(uname -r)
apt install zfs-zed zfs-dkms zfsutils-linux zfs-initramfs
modprobe zfs
echo zfs >> /etc/modules
#maximaler Arbeitsspeicher durch vier (bei mindestens 32GB RAM)
echo options zfs zfs_arc_max=$(expr $(awk '/MemTotal/ {print $2}' /proc/meminfo) \* 1024 / 4) >/etc/modprobe.d/zfs.conf
#zpool create -f -o ashift=12 <pool> raidz1 <device1> <device2> <device3>
zpool create -fd zpool0 mirror /dev/sda4 /dev/sdb4