Veranstaltungen/2009-12-04 ZFS-Workshop/Szenario: gemischter Pool
Aus UUGRN
shl@sonnenkind:~$ mkfile 100m HDD0 shl@sonnenkind:~$ mkfile 100m HDD1 shl@sonnenkind:~$ mkfile 100m HDD2 shl@sonnenkind:~$ mkfile 100m HDD3 shl@sonnenkind:~$ mkfile 100m HDD4 shl@sonnenkind:~$ mkfile 100m HDD5 shl@sonnenkind:~$ mkfile 100m HDD6 shl@sonnenkind:~$ mkfile 100m HDD7 shl@sonnenkind:~$ mkfile 100m HDD8 shl@sonnenkind:~$ mkfile 100m HDD9
shl@sonnenkind:~$ pfexec zpool create testpool raidz2 ~/HDD0 ~/HDD1 ~/HDD2 ~/HDD3 ~/HDD4
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 /export/home/shl/HDD2 ONLINE 0 0 0 /export/home/shl/HDD3 ONLINE 0 0 0 /export/home/shl/HDD4 ONLINE 0 0 0 errors: No known data errors
Das wird einen Fehler geben...
shl@sonnenkind:~$ pfexec zpool add testpool raidz1 ~/HDD5 ~/HDD6 ~/HDD7 invalid vdev specification use '-f' to override the following errors: mismatched replication level: pool uses 2 device parity and new vdev uses 1
... don't try this at home!
shl@sonnenkind:~$ pfexec zpool add -f testpool raidz1 ~/HDD5 ~/HDD6 ~/HDD7
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 /export/home/shl/HDD2 ONLINE 0 0 0 /export/home/shl/HDD3 ONLINE 0 0 0 /export/home/shl/HDD4 ONLINE 0 0 0 raidz1-1 ONLINE 0 0 0 /export/home/shl/HDD5 ONLINE 0 0 0 /export/home/shl/HDD6 ONLINE 0 0 0 /export/home/shl/HDD7 ONLINE 0 0 0 errors: No known data errors
shl@sonnenkind:~$ pfexec zpool add testpool mirror ~/HDD8 ~/HDD9
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 /export/home/shl/HDD2 ONLINE 0 0 0 /export/home/shl/HDD3 ONLINE 0 0 0 /export/home/shl/HDD4 ONLINE 0 0 0 raidz1-1 ONLINE 0 0 0 /export/home/shl/HDD5 ONLINE 0 0 0 /export/home/shl/HDD6 ONLINE 0 0 0 /export/home/shl/HDD7 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 /export/home/shl/HDD8 ONLINE 0 0 0 /export/home/shl/HDD9 ONLINE 0 0 0 errors: No known data errors
Ja, das ist herzhaft sinnlos so! :-)
Besseres Beispiel:
RAID-Z2 über fünf Festplatten:
shl@sonnenkind:~$ pfexec zpool create testpool raidz2 ~/HDD0 ~/HDD1 ~/HDD2 ~/HDD3 ~/HDD4
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 /export/home/shl/HDD2 ONLINE 0 0 0 /export/home/shl/HDD3 ONLINE 0 0 0 /export/home/shl/HDD4 ONLINE 0 0 0 errors: No known data errors
Weitere fünf Festplatten in den testpool
:
shl@sonnenkind:~$ pfexec zpool add testpool raidz2 ~/HDD5 ~/HDD6 ~/HDD7 ~/HDD8 ~/HDD9
shl@sonnenkind:~$ zpool status testpool pool: testpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM testpool ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 /export/home/shl/HDD0 ONLINE 0 0 0 /export/home/shl/HDD1 ONLINE 0 0 0 /export/home/shl/HDD2 ONLINE 0 0 0 /export/home/shl/HDD3 ONLINE 0 0 0 /export/home/shl/HDD4 ONLINE 0 0 0 raidz2-1 ONLINE 0 0 0 /export/home/shl/HDD5 ONLINE 0 0 0 /export/home/shl/HDD6 ONLINE 0 0 0 /export/home/shl/HDD7 ONLINE 0 0 0 /export/home/shl/HDD8 ONLINE 0 0 0 /export/home/shl/HDD9 ONLINE 0 0 0 errors: No known data errors
Quellen:
- man-Pages