Aktuelle Version |
Dein Text |
Zeile 281: |
Zeile 281: |
| https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bookworm%20Root%20on%20ZFS | | https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bookworm%20Root%20on%20ZFS |
|
| |
|
| ==== LMDE 6 meets OpenZFS Annahmen ==== | | ==== LMDE 6 OpenZFS Annahmen ==== |
|
| |
|
| ===== Verwendung mehrerer Geräte für Massenspeicher ===== | | ===== Verwendung mehrerer Geräte für Massenspeicher ===== |
Zeile 479: |
Zeile 479: |
| -O relatime=on \ | | -O relatime=on \ |
| -O canmount=off \ | | -O canmount=off \ |
| -O mountpoint=/boot -R /target \ | | -O mountpoint=/boot -R /mnt \ |
| bpool mirror \ | | bpool mirror \ |
| ${DISK0}-part3 \ | | ${DISK0}-part3 \ |
Zeile 503: |
Zeile 503: |
| -O relatime=on \ | | -O relatime=on \ |
| -O canmount=off \ | | -O canmount=off \ |
| -O mountpoint=/ -R /target \ | | -O mountpoint=/ -R /mnt \ |
| rpool mirror \ | | rpool mirror \ |
| ${DISK0}-part4 \ | | ${DISK0}-part4 \ |
Zeile 522: |
Zeile 522: |
| : <code>sudo zfs create rpool/home</code> | | : <code>sudo zfs create rpool/home</code> |
| : <code>sudo zfs create -o mountpoint=/root rpool/home/root</code> | | : <code>sudo zfs create -o mountpoint=/root rpool/home/root</code> |
| : <code>sudo chmod 700 /target/root</code> | | : <code>sudo chmod 700 /mnt/root</code> |
| : <code>sudo zfs create -o canmount=off rpool/var</code> | | : <code>sudo zfs create -o canmount=off rpool/var</code> |
| : <code>sudo zfs create -o canmount=off rpool/var/lib</code> | | : <code>sudo zfs create -o canmount=off rpool/var/lib</code> |
Zeile 531: |
Zeile 531: |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/nfs</code> | | : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/nfs</code> |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/tmp</code> | | : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/tmp</code> |
| : <code>sudo chmod 1777 /target/var/tmp</code> | | : <code>sudo chmod 1777 /mnt/var/tmp</code> |
|
| |
|
| : <code>sudo zfs create rpool/srv</code> | | : <code>sudo zfs create rpool/srv</code> |
Zeile 549: |
Zeile 549: |
|
| |
|
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/tmp</code> | | : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/tmp</code> |
| : <code>sudo chmod 1777 /target/tmp</code> | | : <code>sudo chmod 1777 /mnt/tmp</code> |
|
| |
|
| ---- | | ---- |
|
| |
|
| : <code>sudo mkdir /target/run</code> | | : <code>sudo mkdir /mnt/run</code> |
| : <code>sudo mount -t tmpfs tmpfs /target/run</code> | | : <code>sudo mount -t tmpfs tmpfs /mnt/run</code> |
|
| |
|
| : <code>mkdir /target/run/lock</code> | | : <code>mkdir /mnt/run/lock</code> |
|
| |
|
| : <s><code>sudo debootstrap bookworm /target/</code></s> | | : <s><code>sudo debootstrap bookworm /mnt/</code></s> |
| <pre> | | <pre> |
| I: Target architecture can be executed | | I: Target architecture can be executed |
Zeile 573: |
Zeile 573: |
| ==== LMDE 6 OpenZFS Installation LMDE GUI I ==== | | ==== LMDE 6 OpenZFS Installation LMDE GUI I ==== |
|
| |
|
| : <code>sudo ls /target/</code> | | : <code>sudo ls /mnt/</code> |
| <pre> | | <pre> |
| boot debootstrap home root run srv tmp usr var | | boot debootstrap home root run srv tmp usr var |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo rm -rf /target/</code> | | : <code>sudo rm -rf /mnt/</code> |
| <pre> | | <pre> |
| rm: cannot remove '/target/srv': Device or resource busy | | rm: cannot remove '/mnt/srv': Device or resource busy |
| rm: cannot remove '/target/tmp': Device or resource busy | | rm: cannot remove '/mnt/tmp': Device or resource busy |
| rm: cannot remove '/target/root': Device or resource busy | | rm: cannot remove '/mnt/root': Device or resource busy |
| rm: cannot remove '/target/boot': Device or resource busy | | rm: cannot remove '/mnt/boot': Device or resource busy |
| rm: cannot remove '/target/var/log': Device or resource busy | | rm: cannot remove '/mnt/var/log': Device or resource busy |
| rm: cannot remove '/target/var/tmp': Device or resource busy | | rm: cannot remove '/mnt/var/tmp': Device or resource busy |
| rm: cannot remove '/target/var/www': Device or resource busy | | rm: cannot remove '/mnt/var/www': Device or resource busy |
| rm: cannot remove '/target/var/snap': Device or resource busy | | rm: cannot remove '/mnt/var/snap': Device or resource busy |
| rm: cannot remove '/target/var/lib/NetworkManager': Device or resource busy | | rm: cannot remove '/mnt/var/lib/NetworkManager': Device or resource busy |
| rm: cannot remove '/target/var/lib/AccountsService': Device or resource busy | | rm: cannot remove '/mnt/var/lib/AccountsService': Device or resource busy |
| rm: cannot remove '/target/var/lib/docker': Device or resource busy | | rm: cannot remove '/mnt/var/lib/docker': Device or resource busy |
| rm: cannot remove '/target/var/lib/nfs': Device or resource busy | | rm: cannot remove '/mnt/var/lib/nfs': Device or resource busy |
| rm: cannot remove '/target/var/spool': Device or resource busy | | rm: cannot remove '/mnt/var/spool': Device or resource busy |
| rm: cannot remove '/target/var/cache': Device or resource busy | | rm: cannot remove '/mnt/var/cache': Device or resource busy |
| rm: cannot remove '/target/run': Device or resource busy | | rm: cannot remove '/mnt/run': Device or resource busy |
| rm: cannot remove '/target/usr/local': Device or resource busy | | rm: cannot remove '/mnt/usr/local': Device or resource busy |
| rm: cannot remove '/target/home': Device or resource busy | | rm: cannot remove '/mnt/home': Device or resource busy |
| </pre> | | </pre> |
|
| |
|
| : <s><code>sudo ln -s /mnt /target</code></s> | | : <code>sudo ln -s /mnt /target</code> |
|
| |
|
| : <code>ls /boot/</code> | | : <code>ls /boot/</code> |
Zeile 606: |
Zeile 606: |
| </pre> | | </pre> |
|
| |
|
| : <code>ls /target/boot/</code> | | : <code>ls /mnt/boot/</code> |
|
| |
|
| : <code>ls /target/</code> | | : <code>ls /mnt/</code> |
| <pre> | | <pre> |
| boot home root run srv tmp usr var | | boot home root run srv tmp usr var |
| </pre> | | </pre> |
|
| |
|
| : <code>ls /target/</code> | | : <code>ls /mnt/</code> |
| <pre> | | <pre> |
| boot home root run srv tmp usr var | | boot home root run srv tmp usr var |
Zeile 626: |
Zeile 626: |
| ===== LMDE 6 OpenZFS Konfiguration nach der Installation LMDE ===== | | ===== LMDE 6 OpenZFS Konfiguration nach der Installation LMDE ===== |
|
| |
|
| : <code>ls /target/</code> | | : <code>ls /mnt/</code> |
| <pre> | | <pre> |
| bin/ home/ lib32/ mnt/ run/ target/ vmlinuz | | bin/ home/ lib32/ mnt/ run/ target/ vmlinuz |
Zeile 634: |
Zeile 634: |
| </pre> | | </pre> |
|
| |
|
| : <code>ls /target/home/</code> | | : <code>ls /mnt/home/</code> |
| <pre> | | <pre> |
| vater | | vater |
Zeile 655: |
Zeile 655: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo mkdir /target/etc/zfs</code> | | : <code>sudo mkdir /mnt/etc/zfs</code> |
| : <code>sudo cp /etc/zfs/zpool.cache /target/etc/zfs/</code> | | : <code>sudo cp /etc/zfs/zpool.cache /mnt/etc/zfs/</code> |
|
| |
|
| : <code>cat /target/etc/hostname</code> | | : <code>cat /mnt/etc/hostname</code> |
| <pre> | | <pre> |
| localhost.localdomain | | localhost.localdomain |
Zeile 665: |
Zeile 665: |
| : <code>sudo hostname lab</code> | | : <code>sudo hostname lab</code> |
|
| |
|
| : <code>sudo nano /target/etc/hostname</code> | | : <code>sudo nano /mnt/etc/hostname</code> |
| <pre>
| |
| lab
| |
| #localhost.localdomain
| |
| 127.0.1.1 lab
| |
| #127.0.1.1 lab.domain.tld
| |
| </pre>
| |
|
| |
|
| : <code>ip a</code> | | : <code>ip a</code> |
Zeile 695: |
Zeile 689: |
| </pre> | | </pre> |
|
| |
|
| : <code>ls /target/etc/network/interfaces.d/</code> | | : <code>ls /mnt/etc/network/interfaces.d/</code> |
|
| |
|
| : <code>sudo nano /target/etc/network/interfaces.d/wlp1s0</code> | | : <code>sudo nano /mnt/etc/network/interfaces.d/wlp1s0</code> |
| <pre> | | <pre> |
| auto wlp1s0 | | auto wlp1s0 |
| iface wlp1s0 inet dhcp | | iface wlp1s0 inet dhcp |
| </pre> | | </pre> |
| : <s><code>sudo nano /target/etc/network/interfaces.d/enp0s31f6</code></s> | | : <s><code>sudo nano /mnt/etc/network/interfaces.d/enp0s31f6</code></s> |
| <pre> | | <pre> |
| auto enp0s31f6 | | auto enp0s31f6 |
Zeile 708: |
Zeile 702: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo cat /target/etc/apt/sources.list.d/official-package-repositories.list</code> | | : <code>sudo cat /mnt/etc/apt/sources.list.d/official-package-repositories.list</code> |
| <pre> | | <pre> |
| # Do not edit this file manually, use Software Sources instead. | | # Do not edit this file manually, use Software Sources instead. |
Zeile 721: |
Zeile 715: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo mount --make-private --rbind /dev /target/dev</code> | | : <code>sudo mount --make-private --rbind /dev /mnt/dev</code> |
| : <code>sudo mount --make-private --rbind /proc /target/proc</code> | | : <code>sudo mount --make-private --rbind /proc /mnt/proc</code> |
| : <code>sudo mount --make-private --rbind /sys /target/sys</code> | | : <code>sudo mount --make-private --rbind /sys /mnt/sys</code> |
|
| |
|
| ===== LMDE 6 OpenZFS Installation der Programme für das Dateisystem nach der Installation LMDE vor dem Neustart nach der Installation LMDE ===== | | ===== LMDE 6 OpenZFS Konfiguration nach der Installation LMDE vor dem Neustart nach der Installation LMDE ===== |
|
| |
|
| : <s><code>sudo chroot /target /usr/bin/env DISK0=$DISK0 bash --login</code></s> | | : <s><code>sudo chroot /mnt /usr/bin/env DISK0=$DISK0 bash --login</code></s> |
| : <code>sudo chroot /target /usr/bin/env DISK0=$DISK0 DISK1=$DISK1 bash --login</code> | | : <code>sudo chroot /mnt /usr/bin/env DISK0=$DISK0 DISK1=$DISK1 bash --login</code> |
|
| |
|
| : <code>apt update</code> | | : <code>apt update</code> |
Zeile 742: |
Zeile 736: |
| locale::facet::_S_create_c_locale name not valid | | locale::facet::_S_create_c_locale name not valid |
| i console-setup - console font and keymap setup program | | i console-setup - console font and keymap setup program |
| | v console-setup:i386 - |
| | p console-setup-freebsd - FreeBSD specific part of console-setup |
| | i console-setup-linux - Linux specific part of console-setup |
| | p console-setup-mini - console font and keymap setup program - redu |
| </pre> | | </pre> |
| <pre></pre>
| |
|
| |
|
| : <code>apt search locales</code> | | : <code>apt search locales</code> |
| <pre> | | <pre> |
| Warning: Invalid locale (please review locale settings, this might lead to problems later):
| |
| locale::facet::_S_create_c_locale name not valid
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| i locales - GNU C Library: National Language (locale) data [support]
| |
| </pre> | | </pre> |
| <pre></pre>
| |
|
| |
|
| : <s><code>apt install --yes console-setup locales</code></s> | | : <s><code>apt install --yes console-setup locales</code></s> |
Zeile 795: |
Zeile 785: |
| <pre></pre> | | <pre></pre> |
|
| |
|
| : <s><code>apt -y install dpkg-dev linux-headers-generic linux-image-generic</code></s> | | : <code>apt -y install dpkg-dev linux-headers-generic linux-image-generic</code> |
| <pre></pre>
| |
| | |
| : <code>apt search dpkg-dev</code>
| |
| <pre>
| |
| Warning: Invalid locale (please review locale settings, this might lead to problems later):
| |
| locale::facet::_S_create_c_locale name not valid
| |
| i dpkg-dev - Debian package development tools
| |
| </pre>
| |
| <pre></pre>
| |
| | |
| : <code>apt search linux-headers-generic</code>
| |
| <pre>
| |
| Warning: Invalid locale (please review locale settings, this might lead to problems later):
| |
| locale::facet::_S_create_c_locale name not valid
| |
| v linux-headers-generic -
| |
| v linux-headers-generic:i386 -
| |
| </pre>
| |
| : <code>apt -y install linux-headers-generic</code>
| |
| <pre></pre>
| |
| <pre>
| |
| Note, selecting 'linux-headers-amd64' instead of 'linux-headers-generic'
| |
| linux-headers-amd64 is already the newest version (6.1.90-1).
| |
| 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
| |
| </pre>
| |
| | |
| : <code>apt search linux-image-generic</code>
| |
| <pre>
| |
| Warning: Invalid locale (please review locale settings, this might lead to problems later):
| |
| locale::facet::_S_create_c_locale name not valid
| |
| v linux-image-generic -
| |
| v linux-image-generic:i386 -
| |
| </pre>
| |
| : <code>apt -y install linux-image-generics</code>
| |
| <pre></pre>
| |
| <pre>
| |
| Note, selecting 'linux-image-amd64' instead of 'linux-image-generic'
| |
| linux-image-amd64 is already the newest version (6.1.90-1).
| |
| 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
| |
| </pre>
| |
| | |
| : <code>apt search zfs-initramfs</code>
| |
| <pre>
| |
| Warning: Invalid locale (please review locale settings, this might lead to problems later):
| |
| locale::facet::_S_create_c_locale name not valid
| |
| p zfs-initramfs - OpenZFS root filesystem capabilities for Linux - initramfs
| |
| </pre>
| |
| | |
| : <code>apt -y install zfs-initramfs</code>
| |
| <pre></pre> | | <pre></pre> |
| <!--
| |
| Reading package lists... Done
| |
| Building dependency tree... Done
| |
| Reading state information... Done
| |
| The following additional packages will be installed:
| |
| libnvpair3linux libuutil3linux libzfs4linux libzpool5linux python3-distutils python3-lib2to3 zfs-dkms zfs-zed
| |
| zfsutils-linux
| |
| Suggested packages:
| |
| debhelper nfs-kernel-server
| |
| The following NEW packages will be installed:
| |
| libnvpair3linux libuutil3linux libzfs4linux libzpool5linux python3-distutils python3-lib2to3 zfs-dkms
| |
| zfs-initramfs zfs-zed zfsutils-linux
| |
| 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
| |
| Need to get 4751 kB of archives.
| |
| After this operation, 26.5 MB of additional disk space will be used.
| |
| Get:1 https://deb.debian.org/debian bookworm/main amd64 python3-lib2to3 all 3.11.2-3 [76.3 kB]
| |
| Get:2 https://deb.debian.org/debian bookworm/main amd64 python3-distutils all 3.11.2-3 [131 kB]
| |
| Get:3 https://deb.debian.org/debian bookworm/contrib amd64 zfs-dkms all 2.1.11-1 [2304 kB]
| |
| Get:4 https://deb.debian.org/debian bookworm/contrib amd64 libnvpair3linux amd64 2.1.11-1 [58.4 kB]
| |
| Get:5 https://deb.debian.org/debian bookworm/contrib amd64 libuutil3linux amd64 2.1.11-1 [51.3 kB]
| |
| Get:6 https://deb.debian.org/debian bookworm/contrib amd64 libzfs4linux amd64 2.1.11-1 [232 kB]
| |
| Get:7 https://deb.debian.org/debian bookworm/contrib amd64 libzpool5linux amd64 2.1.11-1 [1285 kB]
| |
| Get:8 https://deb.debian.org/debian bookworm/contrib amd64 zfsutils-linux amd64 2.1.11-1 [502 kB]
| |
| Get:9 https://deb.debian.org/debian bookworm/contrib amd64 zfs-zed amd64 2.1.11-1 [75.6 kB]
| |
| Get:10 https://deb.debian.org/debian bookworm/contrib amd64 zfs-initramfs all 2.1.11-1 [34.0 kB]
| |
| Fetched 4751 kB in 5s (894 kB/s)
| |
| perl: warning: Setting locale failed.
| |
| perl: warning: Please check that your locale settings:
| |
| LANGUAGE = (unset),
| |
| LC_ALL = (unset),
| |
| LC_CTYPE = "C.UTF-8",
| |
| LANG = "en_US.UTF-8"
| |
| are supported and installed on your system.
| |
| perl: warning: Falling back to the standard locale ("C").
| |
| locale: Cannot set LC_MESSAGES to default locale: No such file or directory
| |
| locale: Cannot set LC_ALL to default locale: No such file or directory
| |
| Preconfiguring packages ...
| |
| /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
| |
| /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
| |
| Selecting previously unselected package python3-lib2to3.
| |
| (Reading database ... 506865 files and directories currently installed.)
| |
| Preparing to unpack .../0-python3-lib2to3_3.11.2-3_all.deb ...
| |
| Unpacking python3-lib2to3 (3.11.2-3) ...
| |
| Selecting previously unselected package python3-distutils.
| |
| Preparing to unpack .../1-python3-distutils_3.11.2-3_all.deb ...
| |
| Unpacking python3-distutils (3.11.2-3) ...
| |
| Selecting previously unselected package zfs-dkms.
| |
| Preparing to unpack .../2-zfs-dkms_2.1.11-1_all.deb ...
| |
| Unpacking zfs-dkms (2.1.11-1) ...
| |
| Selecting previously unselected package libnvpair3linux.
| |
| Preparing to unpack .../3-libnvpair3linux_2.1.11-1_amd64.deb ...
| |
| Unpacking libnvpair3linux (2.1.11-1) ...
| |
| Selecting previously unselected package libuutil3linux.
| |
| Preparing to unpack .../4-libuutil3linux_2.1.11-1_amd64.deb ...
| |
| Unpacking libuutil3linux (2.1.11-1) ...
| |
| Selecting previously unselected package libzfs4linux.
| |
| Preparing to unpack .../5-libzfs4linux_2.1.11-1_amd64.deb ...
| |
| Unpacking libzfs4linux (2.1.11-1) ...
| |
| Selecting previously unselected package libzpool5linux.
| |
| Preparing to unpack .../6-libzpool5linux_2.1.11-1_amd64.deb ...
| |
| Unpacking libzpool5linux (2.1.11-1) ...
| |
| Selecting previously unselected package zfsutils-linux.
| |
| Preparing to unpack .../7-zfsutils-linux_2.1.11-1_amd64.deb ...
| |
| Unpacking zfsutils-linux (2.1.11-1) ...
| |
| Selecting previously unselected package zfs-zed.
| |
| Preparing to unpack .../8-zfs-zed_2.1.11-1_amd64.deb ...
| |
| Unpacking zfs-zed (2.1.11-1) ...
| |
| Selecting previously unselected package zfs-initramfs.
| |
| Preparing to unpack .../9-zfs-initramfs_2.1.11-1_all.deb ...
| |
| Unpacking zfs-initramfs (2.1.11-1) ...
| |
| Setting up libnvpair3linux (2.1.11-1) ...
| |
| Setting up libuutil3linux (2.1.11-1) ...
| |
| Setting up python3-lib2to3 (3.11.2-3) ...
| |
| Setting up python3-distutils (3.11.2-3) ...
| |
| Setting up libzfs4linux (2.1.11-1) ...
| |
| Setting up zfs-dkms (2.1.11-1) ...
| |
| locale: Cannot set LC_MESSAGES to default locale: No such file or directory
| |
| locale: Cannot set LC_ALL to default locale: No such file or directory
| |
| Loading new zfs-2.1.11 DKMS files...
| |
| Building for 6.1.0-12-amd64 6.1.0-21-amd64
| |
| Building initial module for 6.1.0-12-amd64
| |
| Done.
| |
|
| |
| zavl.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| znvpair.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| zunicode.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| zcommon.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| zfs.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| icp.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| zlua.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| spl.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
|
| |
| zzstd.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
| |
| depmod....
| |
| Building initial module for 6.1.0-21-amd64
| |
| Done.
| |
|
| |
| zavl.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| znvpair.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| zunicode.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| zcommon.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| zfs.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| icp.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| zlua.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
| spl.ko:
| |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
|
| |
|
| zzstd.ko:
| | : <code>apt install --yes zfs-initramfs</code> |
| Running module version sanity check.
| |
| - Original module
| |
| - No original module exists within this kernel
| |
| - Installation
| |
| - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
| |
| depmod...
| |
| Setting up libzpool5linux (2.1.11-1) ...
| |
| Setting up zfsutils-linux (2.1.11-1) ...
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring request.
| |
| Running in chroot, ignoring command 'show'
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring request.
| |
| Running in chroot, ignoring command 'show'
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring request.
| |
| Running in chroot, ignoring command 'show'
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring request.
| |
| Running in chroot, ignoring command 'show'
| |
| Created symlink /etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service → /lib/systemd/system/zfs-import-
| |
| cache.service.
| |
| Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
| |
| Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-mod
| |
| ule.service.
| |
| Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.ser
| |
| vice.
| |
| Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service → /lib/systemd/system/zfs-mount.service.
| |
| Created symlink /etc/systemd/system/zfs.target.wants/zfs-share.service → /lib/systemd/system/zfs-share.service.
| |
| Created symlink /etc/systemd/system/zfs-volumes.target.wants/zfs-volume-wait.service → /lib/systemd/system/zfs-volume-
| |
| wait.service.
| |
| Created symlink /etc/systemd/system/zfs.target.wants/zfs-volumes.target → /lib/systemd/system/zfs-volumes.target.
| |
| Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target → /lib/systemd/system/zfs.target.
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| zfs-import-scan.service is a disabled or a static unit, not starting it.
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'start'
| |
| Processing triggers for initramfs-tools (0.142) ...
| |
| update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
| |
| cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/debian
| |
| cryptsetup: WARNING: Couldn't determine root device
| |
| Processing triggers for libc-bin (2.36-9+deb12u7) ...
| |
| Processing triggers for man-db (2.11.2-2) ...
| |
| Setting up zfs-zed (2.1.11-1) ...
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring request.
| |
| Running in chroot, ignoring command 'show'
| |
| Created symlink /etc/systemd/system/zed.service → /lib/systemd/system/zfs-zed.service.
| |
| Created symlink /etc/systemd/system/zfs.target.wants/zfs-zed.service → /lib/systemd/system/zfs-zed.service.
| |
| Running in chroot, ignoring command 'daemon-reload'
| |
| Running in chroot, ignoring command 'is-active'
| |
| Running in chroot, ignoring command 'start'
| |
| Setting up zfs-initramfs (2.1.11-1) ...
| |
| Processing triggers for initramfs-tools (0.142) ...
| |
| update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
| |
| cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/debian
| |
| cryptsetup: WARNING: Couldn't determine root device
| |
| -->
| |
| <pre></pre> | | <pre></pre> |
|
| |
|
Zeile 1.128: |
Zeile 800: |
| <pre> | | <pre> |
| i dosfstools - utilities for making and checking MS-DOS FAT | | i dosfstools - utilities for making and checking MS-DOS FAT |
| | p dosfstools:i386 - utilities for making and checking MS-DOS FAT |
| </pre> | | </pre> |
| <pre></pre>
| |
|
| |
|
| | | : <code>nano /etc/fstab</code> |
| ===== LMDE 6 OpenZFS Konfiguration vom Dateisystem nach der Installation LMDE vor dem Neustart nach der Installation LMDE =====
| |
| | |
| : <code>cat /etc/fstab</code> | |
| <pre> | | <pre> |
| #### Static Filesystem Table File | | #### Static Filesystem Table File |
Zeile 1.140: |
Zeile 809: |
| </pre> | | </pre> |
|
| |
|
| : <code>mkdosfs -F 32 -s 1 -n EFI ${DISK0}-part2</code>
| |
| <pre>
| |
| mkfs.fat 4.2 (2021-01-31)
| |
| </pre>
| |
| : <code>mkdosfs -F 32 -s 1 -n EFI ${DISK1}-part2</code> | | : <code>mkdosfs -F 32 -s 1 -n EFI ${DISK1}-part2</code> |
| <pre> | | <pre> |
Zeile 1.149: |
Zeile 814: |
| </pre> | | </pre> |
|
| |
|
| : <code>mkdir /efi0</code> | | : <code>mkdir /boot/efi</code> |
| : <code>mkdir /efi1</code>
| |
|
| |
|
| : <s><code>echo /dev/disk/by-uuid/$(blkid -s UUID -o value ${DISK1}-part2) /boot/efi vfat defaults 0 0 >> /etc/fstab</code></s> | | : <code> |
| : <code>echo ${DISK0}-part2 /efi0 vfat defaults 0 0 >> /etc/fstab</code>
| | <pre> |
| : <code>echo ${DISK1}-part2 /efi1 vfat defaults 0 0 >> /etc/fstab</code>
| | echo /dev/disk/by-uuid/$(blkid -s UUID -o value ${DISK1}-part2) \ |
| : <s><code>echo ${DISK0}-part2 /efi vfat defaults 0 0 >> /etc/fstab</code></s>
| | /boot/efi vfat defaults 0 0 >> /etc/fstab</code> |
| : <s><code>echo ${DISK1}-part2 /efi vfat defaults 0 0 >> /etc/fstab</code></s>
| | </pre> |
| | </code> |
|
| |
|
| : <s><code>cat /etc/fstab</code></s> | | : <code>cat /etc/fstab</code> |
| <pre> | | <pre> |
| #### Static Filesystem Table File | | #### Static Filesystem Table File |
Zeile 1.165: |
Zeile 830: |
| </pre> | | </pre> |
|
| |
|
| : <code>nano /etc/fstab</code> | | : <code>mount /boot/efi</code> |
| | <pre> |
| | mount: (hint) your fstab has been modified, but systemd still uses |
| | the old version; use 'systemctl daemon-reload' to reload. |
| | </pre> |
| | |
| | ---- |
| | |
| | ==== LMDE 6 OpenZFS Installation LMDE GUI II ==== |
| | |
| | <!-- |
| | : <code></code> |
| <pre> | | <pre> |
| #### Static Filesystem Table File
| |
| proc /proc proc defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi0 vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi vfat defaults 0 0
| |
| </pre> | | </pre> |
|
| |
|
| : <s><code>mount /boot/efi</code></s> | | : <code></code> |
| <pre> | | <pre> |
| mount: (hint) your fstab has been modified, but systemd still uses
| |
| the old version; use 'systemctl daemon-reload' to reload.
| |
| </pre> | | </pre> |
|
| |
|
| : <code>mount /efi0</code> | | : <code></code> |
| <pre> | | <pre> |
| mount: (hint) your fstab has been modified, but systemd still uses
| |
| the old version; use 'systemctl daemon-reload' to reload.
| |
| </pre> | | </pre> |
| : <code>mount /efi1</code> | | |
| | : <code></code> |
| <pre> | | <pre> |
| mount: (hint) your fstab has been modified, but systemd still uses
| |
| the old version; use 'systemctl daemon-reload' to reload.
| |
| </pre> | | </pre> |
|
| |
|
| ==== LMDE 6 OpenZFS Installation LMDE GUI II ====
| | : <code></code> |
| | <pre> |
| | </pre> |
|
| |
|
| * …
| | : <code></code> |
| * Installation Bootloader
| | <pre> |
| | </pre> |
| | --> |
|
| |
|
| ==== LMDE 6 OpenZFS Konfiguration nach dem Neustart nach der Installation LMDE ==== | | ==== LMDE 6 OpenZFS Konfiguration nach dem Neustart nach der Installation LMDE ==== |
Zeile 1.233: |
Zeile 902: |
|
| |
|
| : <code>sudo mount /boot/efi</code> | | : <code>sudo mount /boot/efi</code> |
| | |
| | ; anderes Schema zu Nummerierung: |
| | |
| | : <code>sudo nano /etc/fstab</code> |
| | <pre> |
| | #### Static Filesystem Table File |
| | proc /proc proc defaults 0 0 |
| | #/dev/disk/by-uuid/A7AA-5E96 /boot/efi vfat defaults 0 0 |
| | /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi0 vfat defaults 0 0 |
| | /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0 |
| | </pre> |
|
| |
|
| : <code>diff /efi0/EFI/debian/grub.cfg /efi1/EFI/debian/grub.cfg</code> | | : <code>diff /efi0/EFI/debian/grub.cfg /efi1/EFI/debian/grub.cfg</code> |
|
| |
|
| : <code>cat /efi/EFI/debian/grub.cfg</code> | | : <code>cat /boot/efi/EFI/debian/grub.cfg</code> |
| <pre> | | <pre> |
| search.fs_uuid cb660849086c6abf root hd0,gpt3 hd1,gpt3 | | search.fs_uuid cb660849086c6abf root hd0,gpt3 hd1,gpt3 |
Zeile 1.243: |
Zeile 923: |
| </pre> | | </pre> |
|
| |
|
| ==== LMDE 6 meets OpenZFS Zusammenfassung ====
| | <!-- |
| | | : <code></code> |
| : <code>apt update</code>
| |
| | |
| : <code>sudo apt -y install ssh</code>
| |
| | |
| ----
| |
| | |
| : <code>passwd</code>
| |
| | |
| ----
| |
| | |
| : <s><code>ssh mint@321.321.321.321</code></s>
| |
| | |
| ----
| |
| | |
| : <code>gsettings set org.gnome.desktop.media-handling automount false</code>
| |
| : <code>apt -y install gdisk zfsutils-linux</code>
| |
| | |
| : <code>DISK0=/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R</code>
| |
| : <code>DISK1=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M</code>
| |
| | |
| : <code>swapoff -a</code>
| |
| | |
| : <code>sudo wipefs -a $DISK0</code>
| |
| : <code>sudo wipefs -a $DISK1</code>
| |
| | |
| : <code>sudo blkdiscard -f $DISK0</code>
| |
| : <code>sudo blkdiscard -f $DISK1</code>
| |
| | |
| : <code>sudo sgdisk --zap-all $DISK0</code>
| |
| : <code>sudo sgdisk --zap-all $DISK1</code>
| |
| | |
| : <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK0</code>
| |
| : <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK1</code>
| |
| | |
| : <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK0</code> | |
| : <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK1</code>
| |
| | |
| : <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK0</code>
| |
| : <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK1</code>
| |
| | |
| : <code>
| |
| <pre> | | <pre> |
| sudo zpool create \
| |
| -o compatibility=grub2 \
| |
| -o ashift=12 \
| |
| -o autotrim=on \
| |
| -o cachefile=/etc/zfs/zpool.cache \
| |
| -O devices=off \
| |
| -O acltype=posixacl\
| |
| -O xattr=sa \
| |
| -O compression=lz4 \
| |
| -O normalization=formD \
| |
| -O relatime=on \
| |
| -O canmount=off \
| |
| -O mountpoint=/boot -R /target \
| |
| bpool mirror \
| |
| ${DISK0}-part3 \
| |
| ${DISK1}-part3
| |
| </pre> | | </pre> |
| </code>
| |
|
| |
|
| : <code> | | : <code></code> |
| <pre> | | <pre> |
| sudo zpool create \
| |
| -O keylocation=prompt \
| |
| -O keyformat=passphrase \
| |
| -o ashift=12 \
| |
| -o autotrim=on \
| |
| -O encryption=on \
| |
| -O acltype=posixacl \
| |
| -O xattr=sa \
| |
| -O dnodesize=auto \
| |
| -O compression=lz4 \
| |
| -O normalization=formD \
| |
| -O relatime=on \
| |
| -O canmount=off \
| |
| -O mountpoint=/ -R /target \
| |
| rpool mirror \
| |
| ${DISK0}-part4 \
| |
| ${DISK1}-part4
| |
| </pre> | | </pre> |
| </code>
| |
|
| |
| ----
| |
|
| |
| : <code>sudo zfs create -o canmount=off -o mountpoint=none rpool/ROOT</code>
| |
| : <code>sudo zfs create -o canmount=off -o mountpoint=none bpool/BOOT</code>
| |
|
| |
| : <code>sudo zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/debian</code>
| |
| : <code>sudo zfs mount rpool/ROOT/debian</code>
| |
|
| |
| : <code>sudo zfs create -o mountpoint=/boot bpool/BOOT/debian</code>
| |
|
| |
|
| : <code>sudo zfs create rpool/home</code> | | : <code></code> |
| : <code>sudo zfs create -o mountpoint=/root rpool/home/root</code>
| |
| : <code>sudo chmod 700 /target/root</code>
| |
| : <code>sudo zfs create -o canmount=off rpool/var</code>
| |
| : <code>sudo zfs create -o canmount=off rpool/var/lib</code>
| |
| : <code>sudo zfs create rpool/var/log</code>
| |
| : <code>sudo zfs create rpool/var/spool</code>
| |
| | |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/cache</code>
| |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/nfs</code>
| |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/tmp</code>
| |
| : <code>sudo chmod 1777 /target/var/tmp</code>
| |
| | |
| : <code>sudo zfs create rpool/srv</code>
| |
| | |
| : <code>sudo zfs create -o canmount=off rpool/usr</code>
| |
| : <code>sudo zfs create rpool/usr/local</code>
| |
| | |
| : <code>sudo zfs create rpool/var/lib/AccountsService</code>
| |
| : <code>sudo zfs create rpool/var/lib/NetworkManager</code>
| |
| | |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/docker</code>
| |
| | |
| : <s><code>sudo zfs create rpool/var/snap</code></s>
| |
| : <code>sudo zfs create rpool/var/lib/flatpak</code>
| |
| | |
| : <s><code>sudo zfs create rpool/var/www</code></s>
| |
| | |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/tmp</code>
| |
| : <code>sudo chmod 1777 /target/tmp</code>
| |
| | |
| | |
| : <code>sudo mkdir /target/run</code>
| |
| : <code>sudo mount -t tmpfs tmpfs /target/run</code>
| |
| | |
| : <code>mkdir /target/run/lock</code>
| |
| : <code>sudo mkdir /target/run/lock</code>
| |
| | |
| ----
| |
| | |
| GUI
| |
| | |
| ----
| |
| | |
| | |
| : <code>sudo mkdir /target/etc/zfs</code>
| |
| : <code>sudo cp /etc/zfs/zpool.cache /target/etc/zfs/</code>
| |
| | |
| : <code>sudo hostname lab</code>
| |
| | |
| : <code>sudo nano /target/etc/hostname</code>
| |
| <pre> | | <pre> |
| #localhost.localdomain
| |
| lab
| |
| 127.0.1.1 lab
| |
| #127.0.1.1 lab.domain.tld
| |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo nano /target/etc/network/interfaces.d/wlp1s0</code> | | : <code></code> |
| <pre> | | <pre> |
| auto wlp1s0
| |
| iface wlp1s0 inet dhcp
| |
| </pre> | | </pre> |
| : <s><code>sudo nano /target/etc/network/interfaces.d/enp0s31f6</code></s>
| |
| <pre>
| |
| auto enp0s31f6
| |
| iface enp0s31f6 inet dhcp
| |
| </pre>
| |
|
| |
| : <code>sudo mount --make-private --rbind /dev /target/dev</code>
| |
| : <code>sudo mount --make-private --rbind /proc /target/proc</code>
| |
| : <code>sudo mount --make-private --rbind /sys /target/sys</code>
| |
|
| |
| : <code>sudo chroot /target /usr/bin/env DISK0=$DISK0 DISK1=$DISK1 bash --login</code>
| |
|
| |
| ----
| |
|
| |
| : <code>apt update</code>
| |
| : <code>apt upgrade -y</code>
| |
|
| |
| : <code>apt -y install linux-headers-generic</code>
| |
| : <code>apt -y install zfs-initramfs</code>
| |
|
| |
|
| : <code>mkdosfs -F 32 -s 1 -n EFI ${DISK0}-part2</code> | | : <code></code> |
| : <code>mkdosfs -F 32 -s 1 -n EFI ${DISK1}-part2</code>
| |
| | |
| : <code>mkdir /efi0</code>
| |
| : <code>mkdir /efi1</code>
| |
| | |
| : <code>echo ${DISK0}-part2 /efi0 vfat defaults 0 0 >> /etc/fstab</code>
| |
| : <code>echo ${DISK1}-part2 /efi1 vfat defaults 0 0 >> /etc/fstab</code>
| |
| | |
| : <code>sudo nano /etc/fstab</code>
| |
| <pre> | | <pre> |
| #### Static Filesystem Table File
| |
| proc /proc proc defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi0 vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0
| |
| #/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi vfat defaults 0 0
| |
| #/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi vfat defaults 0 0
| |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo mount /efi0</code> | | : <code></code> |
| : <code>sudo mount /efi1</code>
| |
| | |
| : <code>sudo mount /efi</code>
| |
| | |
| ----
| |
| | |
| GUI III
| |
| : Stop vor dem Neustart
| |
| | |
| ----
| |
| | |
| : <code>sudo umount /efi</code>
| |
| | |
| : <code>sudo umount /efi0</code>
| |
| : <code>sudo umount /efi1</code>
| |
| | |
| : <code>sudo dd if=${DISK0}-part2 of=${DISK1}-part2</code>
| |
| | |
| : <code>sudo efibootmgr -c -g -d ${DISK0}-part2 -p 2 -L "lmde-0" -l '\EFI\debian\grubx64.efi'</code>
| |
| : <code>sudo efibootmgr -c -g -d ${DISK1}-part2 -p 2 -L "lmde-1" -l '\EFI\debian\grubx64.efi'</code>
| |
| | |
| : <code>sudo mount /efi</code>
| |
| | |
| : <code>cat /etc/fstab</code>
| |
| <pre> | | <pre> |
| #### Static Filesystem Table File
| |
| proc /proc proc defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi0 vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 /efi vfat defaults 0 0
| |
| /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi vfat defaults 0 0
| |
| </pre> | | </pre> |
| | --> |