Veranstaltungen/2009-12-04 ZFS-Workshop/Szenario: gespiegelte Pool-Platten

Aus UUGRN
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