Benutzer-Werkzeuge

Webseiten-Werkzeuge


computer:zfs:zpool

Dies ist eine alte Version des Dokuments!


A PCRE internal error occured. This might be caused by a faulty plugin

zpool dient zur Erstellung und Wartung von ZFS-Pools. ======Pool erstellen====== Der grundlegene Syntax lautet: <code>zpool create <Poolname> <Pooltyp> <Laufwerke> [-o <Optionen>] [spare <Laufwerke>]</code> ^Typ^Bezeichnung^ |RAID-0/Striping (//Standard//)| |mirror|RAID-1/Mirroring| |raidz|RAID-Z1 (//1 Paritätsbit, ähnlich RAID-5//)| |raidz2|RAID-Z2 (//2 Paritätsbits, ähnlich RAID-6//)| |raidz3|RAID-Z3 (//3 Paritätsbits//)| Mithilfe des Schlagworts **spare** lassen sich eine oder mehrere Hotspares definieren: <code> # zpool create pool0 /dev/da{0,1,2,3,4} spare /dev/da5 # zpool status pool: pool0 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM pool0 ONLINE 0 0 0 da0 ONLINE 0 0 0 da1 ONLINE 0 0 0 da2 ONLINE 0 0 0 da3 ONLINE 0 0 0 da4 ONLINE 0 0 0 spares da5 AVAIL errors: No known data errors </code> ======Pool löschen====== Ein Pool kann mit dem folgenden Aufruf gelöscht werden: <code>zpool destroy <Poolname></code> <code> # zpool destroy pool0 # pool list no pools available </code> ======Status einsehen====== zpool kann den Status eines Pools anzeigen, so kann man beispielsweise ausgefallene Festplatten erkennen: <code> root@vm-debsqueeze:~# zpool status pool0 pool: pool0 state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: none requested config: NAME STATE READ WRITE CKSUM pool0 DEGRADED 0 0 0 raidz1 DEGRADED 0 0 0 da0 ONLINE 0 0 0 da1 ONLINE 0 0 0 da2 ONLINE 0 0 0 da3 ONLINE 0 0 0 da4 ONLINE 0 0 0 da5 UNAVAIL 0 0 0 cannot open errors: No known data errors </code> In diesem Fall ist eine Festplatte ausgefallen.

computer/zfs/zpool.1298653620.txt.gz · Zuletzt geändert: 2011/02/25 18:07 von christian