Aktuelle Version |
Dein Text |
Zeile 1: |
Zeile 1: |
| == ZFS Spielwiese ==
| | = ZFS Spielwiese = |
| * sollte jeder Admin mal gemacht haben, da ZFS schon ein wenig anders ist (meint [[Benutzer:JohannesSchneemann|JohannesSchneemann]]) | | * sollte jeder Admin mal gemacht haben, das ZFS schon ein wenig anders ist (meint [[Benutzer:JohannesSchneemann|JohannesSchneemann]]) |
| * Testdateicontainer anlegen (jeweils 100MB) | | * Testdateicontainer anlegen (jeweils 100MB) |
| *: <code>dd if=/dev/urandom of=zfstest1.file bs=1M count=100</code>
| | dd if=/dev/urandom of=zfstest1.file bs=1M count=100 |
| *: <code>dd if=/dev/urandom of=zfstest2.file bs=1M count=100</code>
| | dd if=/dev/urandom of=zfstest2.file bs=1M count=100 |
| * ZFS pool anlegen | | * ZFS pool anlegen |
| *: <code>zpool create testpool1 /absoluter_pfad/zfstest1.file</code>
| | zpool create testpool1 /absoluter_pfad/zfstest1.file |
| * schauen, ob es geklappt hat | | * schauen, ob es geklappt hat |
| *: <code>zpool status</code>
| | zpool status |
| {|
| | * ein pool im pool bauen |
| ! ohne Ordner
| | zfs create testpool1/subpool |
| ! im Ordner
| |
| |-
| |
| |
| |
| * ein dateisystem im pool erstellen | |
| *: <code>zfs create testpool1/subpool</code>
| |
| |
| |
| * ein Dateisystem im Unterordner vom Pool erstellen
| |
| * falsch
| |
| *: <code>mkdir /testpool1/testdir</code>
| |
| *: <code>zfs create testpool1/testdir/subpool</code>
| |
| * richtig
| |
| *: <code>zfs create testpool1/testdir</code>
| |
| *: <code>zfs create testpool1/testdir/subpool</code>
| |
| |}
| |
| * das ZFS (subpool) einhängen | | * das ZFS (subpool) einhängen |
| *: <code>zfs set mountpoint=/mnt testpool1/subpool</code>
| | zfs set mountpoint=/mnt testpool1/subpool |
| * mal ne Datei in /mnt kopieren bzw. textdatei anlegen und sachen reinschreiben | | * mal ne Datei in /mnt kopieren bzw. textdatei anlegen und sachen reinschreiben |
| *: <code>cd /mnt && vi tralla.txt</code>
| | cd /mnt && vi tralla.txt |
| * ZFS aushängen | | * ZFS aushängen |
| *: <code>zpool export testpool1</code>
| | zpool export testpool1 |
| * Status testen | | * Status testen |
| *: <code>zpool status</code>
| | zpool status |
| | |
| === Das ZFS-Dateisystem ===
| |
| Und das hier ist dann das Filesystem, das man nicht kleiner machen kann, weil es auch nur den Platz beansprucht den der aktuelle Füllstand benötigt. Vergrößern und Formatieren muss man es auch nicht …
| |
| | |
| Aber neben Filesystemen umfasst der Begriff Dataset auch Volumes (z.B. RAW Volume für DB) und Snapshots.
| |
| | |
| ; Siehe auch:
| |
| : [http://www.mz-edv.de/?page_id=219 Unix Sysadmin & DBA: ZFS]
| |
| : ixsystems: [https://web.ixsystems.com/whats-new/zfs-101-aka-zfs-is-cool-and-why-you-should-be-using-it-by-dru-lavigne/ talk ''ZFS 101 (aka ZFS is Cool and Why You Should Be Using It) by Dru Lavigne'']
| |
| | |
| == iocage ==
| |
| | |
| dump, da gerade ein anderes Wiki nicht verfügbar ist
| |
| | |
| Der standardmäßige Server für ''fetch'' ist [https://download.freebsd.org/ https://]''download.freebsd.org''.
| |
| | |
| https://github.com/iocage/iocage/blob/master/iocage_lib/ioc_fetch.py
| |
| : https://github.com/iocage/iocage/blob/master/iocage_lib/iocage.py
| |
| : https://github.com/iocage/iocage/blob/master/iocage_lib/release.py
| |
| | |
| Um einen bestimmten (anderen) Server zu verwenden kann <code> -s</code> bzw. <code> --server</code> und der Server angegeben werden. (Aber wie genau? mit protokoll (https, http, ftp bzw. ipv4,ipv6), pfad, usw.)
| |
| | |
| == lspci like ==
| |
| | |
| <code>pciconf -lv</code>
| |
| | |
| * https://www.cyberciti.biz/faq/freebsd-hard-disk-information/
| |