StuRa Diskussion:Server/FreeBSD: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
K (Wiederhergestellt zur letzten Änderung von JohannesSchneemann)
Zeile 8: Zeile 8:
* schauen, ob es geklappt hat
* schauen, ob es geklappt hat
  zpool status
  zpool status
* ein pool im pool bauen
* ein dateisystem im pool erstellen
  zfs create testpool1/subpool
  zfs create testpool1/subpool
* das ZFS (subpool) einhängen
* das ZFS (subpool) einhängen
Zeile 18: Zeile 18:
* Status testen
* Status testen
  zpool status
  zpool status
[[http://www.mz-edv.de/?page_id=219 Unix_Sysadmin_&_DBA_(ZFS)]]

Version vom 21. September 2011, 15:09 Uhr

ZFS Spielwiese

  • sollte jeder Admin mal gemacht haben, das ZFS schon ein wenig anders ist (meint JohannesSchneemann)
  • Testdateicontainer anlegen (jeweils 100MB)
dd if=/dev/urandom of=zfstest1.file bs=1M count=100
dd if=/dev/urandom of=zfstest2.file bs=1M count=100
  • ZFS pool anlegen
zpool create testpool1 /absoluter_pfad/zfstest1.file
  • schauen, ob es geklappt hat
zpool status
  • ein dateisystem im pool erstellen
zfs create testpool1/subpool
  • das ZFS (subpool) einhängen
zfs set mountpoint=/mnt testpool1/subpool
  • mal ne Datei in /mnt kopieren bzw. textdatei anlegen und sachen reinschreiben
cd /mnt && vi tralla.txt
  • ZFS aushängen
zpool export testpool1
  • Status testen
zpool status

[Unix_Sysadmin_&_DBA_(ZFS)]