Veranstaltungen/2009-12-04 ZFS-Workshop/Szenario: gespiegelte Pool-Platten: Unterschied zwischen den Versionen
Aus UUGRN
SHL (Diskussion | Beiträge) (Navigation eingebaut) |
Rabe (Diskussion | Beiträge) K ({{:ZFS-Workshop/Navigation}}) |
||
Zeile 52: | Zeile 52: | ||
</div> | </div> | ||
+ | |||
+ | {{:ZFS-Workshop/Navigation}} |
Version vom 12. Januar 2010, 08:28 Uhr
shl@sonnenkind:~$ mkfile 100m HDD0 shl@sonnenkind:~$ mkfile 100m HDD1
Wir erstellen einen gespiegelten Pool
shl@sonnenkind:~$ pfexec zpool create testpool mirror ~/HDD0 ~/HDD1
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 errors: No known data errors
Wir erweitern einen bestehenden Pool zu einem Spiegel
shl@sonnenkind:~$ pfexec zpool create testpool ~/HDD0 shl@sonnenkind:~$ pfexec zpool attach testpool ~/HDD0 ~/HDD1
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: resilver completed after 0h0m with 0 errors on Tue Nov 24 13:09:19 2009 config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 75K resilvered errors: No known data errors