OpenZFS: Unterschied zwischen den Versionen

Aus C3D2
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „ == unter Debian Jessie == <source lang="bash"> cd /root wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_4_all.deb dpkg -i zfsonli…“)
 
Keine Bearbeitungszusammenfassung
(17 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
== Probleme wegen Aberglauben (Lizenz foo) ==


== unter Debian Jessie ==
https://www.fsf.org/licensing/zfs-and-linux
 
== ZFSonLinux ==
 
=== Debian ===
 
* unter Debian 8 (Jessie)


<source lang="bash">
<source lang="bash">
Zeile 59: Zeile 66:
</source>
</source>


== Debian 8 (Jessie) System mit sysvinit-core ==
==== Debian 8 (Jessie) System mit (systemd-sysv/sysvinit-core) ====


<source lang="bash">
<source lang="bash">
Zeile 95: Zeile 102:
apt-get install debian-zfs
apt-get install debian-zfs
</source>
</source>
===== unterschiedliche version magic =====


Fehler:  
Fehler:  
Zeile 109: Zeile 118:
modprobe --force-vermagic spl
modprobe --force-vermagic spl
modprobe --force-vermagic zfs
modprobe --force-vermagic zfs
update-initramfs -u -k all


zpool status
zpool status
</source>
</source>
===== module laden erzwingen =====
* trotz unterschiedlicher Versionsangabe (ignores vermagic and modversion attributes)
damit sind nicht die module optionen (parameter) gemeint z.B. bei "modinfo MODULNAME -F parm"
<source lang="bash">
touch /etc/modprobe.d/spl.conf
touch /etc/modprobe.d/zfs.conf
</source>
<source lang="bash">
vi /etc/modules
### ZFS //
spl # force=1
zfs # force=1
### // ZFS
</source>
===== zpool mirror erstellen =====
<source lang="bash">
zpool create -o ashift=12 zbackup mirror /dev/mapper/vg-zstorage1 /dev/mapper/vg-zstorage2
lxc-ls | xargs -L1 -I {} zfs create zbackup/lxc/{}
</source>
=== Red Hat ===
* https://redhatstorage.redhat.com/tag/zfs/
=== Ubuntu ===
* http://www.bauer-power.net/2011/08/roll-your-own-fail-over-san-cluster.html#.Wp_tp-ZG3eT
== Kompatibilität ==
Eine der nennenswerten Vorteile von [[ZFS]] ist die Verfügbarkeit bei vielen Betriebssystemen. Eigentlich ist daher auch Kompatibilität - über das einzelne Betriebssystem hinweg - eines der großen Ansprüche. Dies ergibt sich schon allein durch das allgemeine Organisation von [[ZFS]] als Gemeinschaft als [[OpenZFS]].
Aber es kann - wegen fehlenden Funktionstonalität in der Implementierung bei den verschiedenen Betriebssystemen - zu Problemen bei der Kompatibilität kommen. ZFS erkennt das und benennt die Funktionstonalität, die Probleme bei der Kompatibilität verursacht.
Ein kleines Beispiel:
* Erstellen des Pools (<code>zfs create</code>) mit Fedora (26)
* Importieren des Pools (<code>zfs import</code>) mit [[TrueOS]] stable (FreeBSD 12.0-CURRENT #66)
<pre>
This pool uses the following feature(s) not supported by this system:
        org.zfsonlinux:userobj_accounting (User/Group object accounting.)
All unsupported features are only required for writing to the pool.
The pool can be imported using '-o readonly=on'.
</pre>
=== Kompatibilität bei Bootloadern ===
==== Kompatibilität bei GRUB 2 ====
== Verbünde ==
: aka Cluster
* [[wikipedia:de:Ceph]]
* [[wikipedia:de:Lustre (Dateisystem)]]
* [[wikipedia:de:GlusterFS]]
* [[wikipedia:de:BeeGFS]]
== podcasting ==
* [[BSD Now]]
* [https://www.youtube.com/channel/UCC0WuyODhqPuROasZV878Yw youtube: channel ''ZFS rocks"'']
*: deutschsprachige Sendungen zur Einführung und Anwendung von [[ZFS]]
== Siehe auch ==
* [[wikipedia:en:ZFS]]
** [[wikipedia:de:ZFS (Dateisystem)]]
* http://open-zfs.org/
* Wiki [[illumos]]: [https://wiki.illumos.org/display/illumos/ZFS Artikel ''ZFS'']]
* Handbuch [[FreeBSD]]: [https://www.freebsd.org/doc/handbook/zfs.html Kapitel ''The Z File System (ZFS)''] ([https://www.freebsd.org/doc/de/books/handbook/zfs.html Kapitel ''Das Z-Dateisystem (ZFS)]'')
* http://zfsbook.com/
[[category:ZFS]]

Version vom 24. Juli 2019, 17:47 Uhr

Probleme wegen Aberglauben (Lizenz foo)

https://www.fsf.org/licensing/zfs-and-linux

ZFSonLinux

Debian

  • unter Debian 8 (Jessie)
cd /root
wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_4_all.deb
dpkg -i zfsonlinux_4_all.deb
vi /etc/apt/sources.list.d/zfsonlinux.list

## This file is installed by the zfsonlinux package.
#
#/ deb [arch=amd64] http://archive.zfsonlinux.org/debian jessie main
### deb-src http://archive.zfsonlinux.org/debian jessie main
#
# !! Enable these ONLY if you want/need the dailies - latest ZoL code !!
deb [arch=amd64] http://archive.zfsonlinux.org/debian jessie-daily main
### deb-src http://archive.zfsonlinux.org/debian jessie-daily main
# EOF

wget http://zfsonlinux.org/4D5843EA.asc -O - | apt-key add -

SPL/ZFS installieren:

apt-get update
apt-get install debian-zfs

vi /etc/modules

### ZFS //
spl
zfs
### // ZFS

update-initramfs -u -k all

FIX: zfs-mount.service

cat /lib/systemd/system/zfs-mount.service

which zfs
which zpool

falls zfs/zpool unter /usr/local liegen, dann nach /sbin kopieren

ZFS:

lsmod | egrep "spl|zfs"

zpool status

Debian 8 (Jessie) System mit (systemd-sysv/sysvinit-core)

modprobe spl
modprobe zfs

modprobe: ERROR: could not insert 'spl': Exec format error
modprobe: ERROR: could not insert 'zfs': Exec format error
ls -all /sbin | egrep "fsck.zfs|zdb|zed|zfs|zhack|zinject|zpios|zpool|zstreamdump|ztest"

cp /sbin/fsck.zfs /usr/local/sbin
cp /sbin/zdb /usr/local/sbin
cp /sbin/zed /usr/local/sbin
cp /sbin/zfs /usr/local/sbin
cp /sbin/zhack /usr/local/sbin
cp /sbin/zinject /usr/local/sbin
cp /sbin/zpios /usr/local/sbin
cp /sbin/zpool /usr/local/sbin
cp /sbin/zstreamdump /usr/local/sbin
cp /sbin/ztest /usr/local/sbin
apt-get install zfsonlinux

apt-get update; apt-get upgrade; apt-get dist-upgrade
apt-get remove --purge debian-zfs libnvpair1 libuutil1 libzfs2 libzpool2 spl spl-dkms zfs-dkms zfsutils dkms
apt-get update; apt-get upgrade; apt-get dist-upgrade
apt-get install debian-zfs
unterschiedliche version magic

Fehler:

zavl: version magic '3.18.7-grsecwetu+ SMP mod_unload modversions KERNEXEC_BTS UDEREF REFCOUNT GRSEC ' should be '3.18.7-grsecwetu+ SMP mod_unload modversions KERNEXEC_BTS UDEREF REFCOUNT STACKLEAK_PLUGIN GRSEC '
grsec: more alerts, logging disabled for 10 seconds
zavl: version magic '3.18.7-grsecwetu+ SMP mod_unload modversions KERNEXEC_BTS UDEREF REFCOUNT GRSEC ' should be '3.18.7-grsecwetu+ SMP mod_unload modversions KERNEXEC_BTS UDEREF REFCOUNT STACKLEAK_PLUGIN GRSEC '

Laden erzwingen bei "Versionsbezeichungsdifferenz"

modprobe --force-vermagic spl
modprobe --force-vermagic zfs

zpool status
module laden erzwingen
  • trotz unterschiedlicher Versionsangabe (ignores vermagic and modversion attributes)

damit sind nicht die module optionen (parameter) gemeint z.B. bei "modinfo MODULNAME -F parm"

touch /etc/modprobe.d/spl.conf
touch /etc/modprobe.d/zfs.conf
vi /etc/modules

### ZFS //
spl # force=1
zfs # force=1
### // ZFS
zpool mirror erstellen
zpool create -o ashift=12 zbackup mirror /dev/mapper/vg-zstorage1 /dev/mapper/vg-zstorage2

lxc-ls | xargs -L1 -I {} zfs create zbackup/lxc/{}

Red Hat

Ubuntu

Kompatibilität

Eine der nennenswerten Vorteile von ZFS ist die Verfügbarkeit bei vielen Betriebssystemen. Eigentlich ist daher auch Kompatibilität - über das einzelne Betriebssystem hinweg - eines der großen Ansprüche. Dies ergibt sich schon allein durch das allgemeine Organisation von ZFS als Gemeinschaft als OpenZFS.

Aber es kann - wegen fehlenden Funktionstonalität in der Implementierung bei den verschiedenen Betriebssystemen - zu Problemen bei der Kompatibilität kommen. ZFS erkennt das und benennt die Funktionstonalität, die Probleme bei der Kompatibilität verursacht.

Ein kleines Beispiel:

  • Erstellen des Pools (zfs create) mit Fedora (26)
  • Importieren des Pools (zfs import) mit TrueOS stable (FreeBSD 12.0-CURRENT #66)
This pool uses the following feature(s) not supported by this system:
        org.zfsonlinux:userobj_accounting (User/Group object accounting.)
All unsupported features are only required for writing to the pool.
The pool can be imported using '-o readonly=on'.

Kompatibilität bei Bootloadern

Kompatibilität bei GRUB 2

Verbünde

aka Cluster

podcasting

Siehe auch