Veranstaltungen/2009-12-04 ZFS-Workshop/Szenario: gespiegelte Pool-Platten: Unterschied zwischen den Versionen

Aus UUGRN
(Draft)
 
(Navigation eingebaut)
Zeile 43: Zeile 43:
 
[[Kategorie:ZFS]]
 
[[Kategorie:ZFS]]
 
[[Kategorie:ZFS-Workshop]]
 
[[Kategorie:ZFS-Workshop]]
 +
 +
 +
 +
 +
<div align="center" style="border-top: 1px solid #0000a0; border-bottom: 1px solid #0000a0; margin:0; padding: 0.6em;">
 +
 +
[[ZFS-Workshop/Szenario: gespiegelte Boot-Platten|Szenario: gespiegelte Boot-Platten]] | [[ZFS-Workshop/Agenda|Agenda]] | [[ZFS-Workshop/Szenario: RAID-Z1|Szenario: RAID-Z1]]
 +
 +
</div>

Version vom 3. Dezember 2009, 17:05 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