Die ersten vier SAS Platten scheinen über das SED Feature schreibgesperrt zu sein. Ich konnte jedenfalls noch nicht drauf schreiben, habe es mir allerdings auch noch nicht genauer angeschaut. Es gibt ein Tool namens SEDutil, das jedoch nicht von einer Ubuntu Live CD läuft. Evtl. schau ich mir das irgendwann nochmal an und berichte.

In der Zwischenzeit habe ich jedoch vier neue Platten besorgt. Mit denen gab es keine Probleme, die Installation hat ohne Probleme funktioniert.

Will man aus seinem ZFS root Pool einen Mirror machen, sollte man folgender Anleitung folgen:

https://docs.oracle.com/cd/E19253-01/819-5461/gkdep/index.html

Das wollte ich auch machen und bin auf folgendes Problem gestoßen:

root@t5120:~# zpool attach rpool c2t0d0s0 c2t1d0s0
cannot attach c2t1d0s0 to c2t0d0s0: device is too small

Schaut man sich die Platte mit dem format Tool an, sieht sie so aus:

partition> print
Current partition table (original):
Total disk cylinders available: 33916 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    31      132.00MB    (32/0/0)       270336
  1       swap    wu      32 -    63      132.00MB    (32/0/0)       270336
  2     backup    wu       0 - 33915      136.62GB    (33916/0/0) 286522368
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm      64 - 33915      136.37GB    (33852/0/0) 285981696
  7 unassigned    wm       0                0         (0/0/0)             0

Man muss also slice 0 etwas vergrößern, dabei habe ich auch gleich noch slice 1 und 6 gelöscht. Ich weiß nicht, ob das der offizielle und effizienteste Weg ist, aber es hat funktioniert:

partition> 6
Part      Tag    Flag     Cylinders         Size            Blocks
 6        usr    wm      64 - 33915      136.37GB    (33852/0/0) 285981696

Enter partition id tag[usr]:
Enter partition permission flags[wm]:
Enter new starting cyl[64]:
Enter partition size[285981696b, 33852c, 33915e, 139639.50mb, 136.37gb]: 0gb
partition> 1
Part      Tag    Flag     Cylinders         Size            Blocks
 1       swap    wu      32 -    63      132.00MB    (32/0/0)       270336

Enter partition id tag[swap]:
Enter partition permission flags[wu]:
Enter new starting cyl[32]:
Enter partition size[270336b, 32c, 63e, 132.00mb, 0.13gb]: 0gb
partition> 0
Part      Tag    Flag     Cylinders         Size            Blocks
 0       root    wm       0 -    31      132.00MB    (32/0/0)       270336

Enter partition id tag[root]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[270336b, 32c, 31e, 132.00mb, 0.13gb]: 136.62gb
partition> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]: 0
Ready to label disk, continue? y

Danach hat dann auch das Erstellen des Mirrors funktioniert:

root@t5120:~# zpool attach rpool c2t0d0s0 c2t1d0s0
Make sure to wait until resilver is done before rebooting.
root@t5120:~# zpool status
  pool: rpool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function in a degraded state.
action: Wait for the resilver to complete.
        Run 'zpool status -v' to see device specific details.
  scan: resilver in progress since Thu Jan  1 01:00:00 1970
    71,1G scanned
    2,81G resilvered at 79,8M/s, 4,06% done, 14m34s to go
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         DEGRADED     0     0     0
          mirror-0    DEGRADED     0     0     0
            c2t0d0s0  ONLINE       0     0     0
            c2t1d0s0  DEGRADED     0     0     0  (resilvering)

errors: No known data errors