Veranstaltungen/2009-12-04 ZFS-Workshop/Szenario: Ausfall einer Festplatte: Unterschied zwischen den Versionen
Aus UUGRN
SHL (Diskussion | Beiträge) (Navigation eingebaut) |
SHL (Diskussion | Beiträge) (rewrite - diesmal mit Hilfe.) |
||
Zeile 1: | Zeile 1: | ||
− | + | <pre>zpool status | |
− | <pre> | + | pool: tank |
− | pool: | + | state: DEGRADED |
+ | scrub: resilver completed after 0h0m with 0 errors on Tue Apr 22 14:54:50 2008 | ||
+ | config: | ||
+ | |||
+ | NAME STATE READ WRITE CKSUM | ||
+ | tank DEGRADED 0 0 0 | ||
+ | mirror ONLINE 0 0 0 | ||
+ | c0t1d0 ONLINE 0 0 0 | ||
+ | c1t1d0 ONLINE 0 0 0 | ||
+ | mirror ONLINE 0 0 0 | ||
+ | c0t2d0 ONLINE 0 0 0 | ||
+ | c1t2d0 ONLINE 0 0 0 | ||
+ | mirror DEGRADED 0 0 0 | ||
+ | c0t3d0 ONLINE 0 0 0 | ||
+ | c1t3d0 OFFLINE 0 0 0 | ||
+ | |||
+ | errors: No known data errors</pre> | ||
+ | |||
+ | Das Device wird vom Pool entfernt... | ||
+ | <pre>zpool offline tank c1t3d0</pre> | ||
+ | |||
+ | ...die Festplatte ausgetauscht... | ||
+ | <pre>zpool online tank c1t3d0 | ||
+ | zpool replace tank c1t3d0</pre> | ||
+ | ... und wieder in den Pool aufgenommen. | ||
+ | |||
+ | <pre>zpool status | ||
+ | pool: tank | ||
state: ONLINE | state: ONLINE | ||
− | scrub: | + | scrub: resilver completed after 0h0m with 0 errors on Tue Apr 22 14:44:46 2008 |
config: | config: | ||
− | NAME | + | NAME STATE READ WRITE CKSUM |
− | + | tank ONLINE 0 0 0 | |
− | + | mirror ONLINE 0 0 0 | |
− | + | c0t1d0 ONLINE 0 0 0 | |
− | + | c1t1d0 ONLINE 0 0 0 | |
− | + | mirror ONLINE 0 0 0 | |
− | + | c0t2d0 ONLINE 0 0 0 | |
− | + | c1t2d0 ONLINE 0 0 0 | |
− | + | mirror ONLINE 0 0 0 | |
− | + | c0t3d0 ONLINE 0 0 0 | |
− | + | c1t3d0 ONLINE 0 0 0 | |
− | |||
− | |||
− | |||
errors: No known data errors</pre> | errors: No known data errors</pre> | ||
− | + | Der Rest geschieht durch Magie. | |
− | <pre> | + | |
− | + | Wenn wir glücklich sind: | |
− | + | <pre>zpool clear tank</pre> | |
− | + | (Setzt den Fehler-Counter zurück und markiert den Pool als "OK") | |
− | + | ||
− | + | ---- | |
− | + | ''Quellen:'' | |
+ | * http://docs.sun.com/app/docs/doc/820-2313/gbcet?a=view | ||
+ | |||
[[Kategorie:ZFS]] | [[Kategorie:ZFS]] |
Version vom 4. Dezember 2009, 10:27 Uhr
zpool status pool: tank state: DEGRADED scrub: resilver completed after 0h0m with 0 errors on Tue Apr 22 14:54:50 2008 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 mirror ONLINE 0 0 0 c0t1d0 ONLINE 0 0 0 c1t1d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c0t2d0 ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 mirror DEGRADED 0 0 0 c0t3d0 ONLINE 0 0 0 c1t3d0 OFFLINE 0 0 0 errors: No known data errors
Das Device wird vom Pool entfernt...
zpool offline tank c1t3d0
...die Festplatte ausgetauscht...
zpool online tank c1t3d0 zpool replace tank c1t3d0
... und wieder in den Pool aufgenommen.
zpool status pool: tank state: ONLINE scrub: resilver completed after 0h0m with 0 errors on Tue Apr 22 14:44:46 2008 config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 c0t1d0 ONLINE 0 0 0 c1t1d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c0t2d0 ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c0t3d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 errors: No known data errors
Der Rest geschieht durch Magie.
Wenn wir glücklich sind:
zpool clear tank
(Setzt den Fehler-Counter zurück und markiert den Pool als "OK")
Quellen: