Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
server_und_serverdienste:linux_zfs [2018/01/17 23:34] – boospy | server_und_serverdienste:linux_zfs [2018/06/18 00:02] – [sharenfs] boospy | ||
---|---|---|---|
Zeile 282: | Zeile 282: | ||
| mount / | | mount / | ||
| zpool import -d / | | zpool import -d / | ||
+ | | zpool import v-machines neuepoolname| importiert einen bestehenden Pool mit einem anderen Namen | | ||
| zfs list -t snapshot| zeigt alle Snapshots an | | | zfs list -t snapshot| zeigt alle Snapshots an | | ||
| zpool set listsnapshots=on rpool| zeigt bei "zfs list" auch snapshots an | | | zpool set listsnapshots=on rpool| zeigt bei "zfs list" auch snapshots an | | ||
Zeile 292: | Zeile 293: | ||
| zfs list -o space | Speicherauslastung inkl. wie viel für Snapshots verbraucht wird | | | zfs list -o space | Speicherauslastung inkl. wie viel für Snapshots verbraucht wird | | ||
| mount -t zfs -o ro v-machines/ | | mount -t zfs -o ro v-machines/ | ||
+ | | zfs set primarycache=metadata pool/ | ||
+ | |apt install zfs-auto-snapshot | [[https:// | ||
Zeile 468: | Zeile 471: | ||
</ | </ | ||
+ | ===== Mit komplettem ZFSpool umziehen ===== | ||
+ | Mit einem kompletten Pool um zu ziehen ist super einfach, in Gegesatz zu nem Rsync oder ähnlichem. Zuerst macht man rekursiv ein Snapshot, danach kopiert man dem Pool auf die neuen/ | ||
+ | < | ||
+ | zfs snapshot -r oldpool@migration | ||
+ | zfs send -v -R -p oldpool@migration | ||
+ | </ | ||
===== Autoexpand ===== | ===== Autoexpand ===== | ||
Zeile 544: | Zeile 553: | ||
FIXME | FIXME | ||
+ | ===== sharenfs ===== | ||
+ | Nutzt man ZFS als Dateisystem ist es klug die " | ||
+ | < | ||
+ | zfs create testpool/ | ||
+ | </ | ||
+ | Für IPV6 können als Source nur mehr FQDN verwendet werden. | ||
+ | Bei einem bestehenden Dataset: | ||
+ | < | ||
+ | zfs set sharenfs=" | ||
+ | </ | ||
+ | Für eine einfache Freigabe: | ||
+ | < | ||
+ | zfs set sharenfs=on testpool/ | ||
+ | </ | ||
+ | Um eine Freigabe zu beenden: | ||
+ | < | ||
+ | zfs set sharenfs=off testpool/ | ||
+ | </ | ||
+ | Das Dataset löschen, löscht natürlich auch die Freigabe. | ||
===== Links ===== | ===== Links ===== | ||
Zeile 552: | Zeile 580: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||