So the instructions say that you are supposed to select two disks during installation to have it auto-mirror them. Unfortunately, it didn't allow me to select more than one disk (tried CTRL, Shift, mouse, keyboard, etc etc)... So, we are going to try to do it manually...
First, let's check the initial setup...
malachi@serveris:~$ zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c5t0d0s0 ONLINE 0 0 0
errors: No known data errors
malachi@serveris:~$ zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
rpool 230G 2.45G 228G 1% ONLINE -
malachi@serveris:~$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.44G 224G 55.5K /rpool
rpool@install 16K - 55.5K -
rpool/ROOT 2.29G 224G 18K /rpool/ROOT
rpool/ROOT@install 0 - 18K -
rpool/ROOT/opensolaris 2.29G 224G 2.23G legacy
rpool/ROOT/opensolaris@install 58.4M - 2.22G -
rpool/ROOT/opensolaris/opt 3.60M 224G 3.60M /opt
rpool/ROOT/opensolaris/opt@install 0 - 3.60M -
rpool/export 157M 224G 19K /export
rpool/export@install 15K - 19K -
rpool/export/home 157M 224G 157M /export/home
rpool/export/home@install 18K - 21K -
So how do we know which drives are available for mirroring? We know that c5t0d0s0 is the one we want mirrored, but....
su then format
malachi@serveris:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c5t0d0
/pci@0,0/pci1043,81fb@5/disk@0,0
1. c5t1d0
/pci@0,0/pci1043,81fb@5/disk@1,0
2. c6t0d0
/pci@0,0/pci1043,81fb@5,1/disk@0,0
3. c6t1d0
/pci@0,0/pci1043,81fb@5,1/disk@1,0
4. c7t0d0
/pci@0,0/pci1043,81fb@5,2/disk@0,0
5. c7t1d0
/pci@0,0/pci1043,81fb@5,2/disk@1,0
6. c8t0d0
/pci@7b,0/pci1043,81fb@5/disk@0,0
Specify disk (enter its number):
Specify disk (enter its number): ^C
It looks like c5t1d0 is the best choice...
malachi@serveris:~# zpool create rpool mirror c5t0d0s0 c5t1d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c5t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
malachi@serveris:~#
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c5t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
malachi@serveris:~#
hmmm.. yes, we knew it was... we wanted to make a copy... hmmm
malachi@serveris:~# zpool add rpool c5t1d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c5t1d0s0 is part of exported or potentially active ZFS pool rootpool. Please see zpool(1M).
hmmm... is that from the current install or the previous install?
malachi@serveris:~# zpool attach rpool c5t0d0s0 c5t1d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c5t1d0s0 is part of exported or potentially active ZFS pool rootpool. Please see zpool(1M).
hmmm....
malachi@serveris:~# zpool attach -f rpool c5t0d0s0 c5t1d0s0
cannot attach c5t1d0s0 to c5t0d0s0: device is too small
hmmm, I tried formatting c5t1d0s0, but it still won't attach
zpool import shows that the other drives are still set as a raidz, so this is definitely the right drive... how to get it to import?
I think I may have to start over and use the manual installer rather than the GUI installer :(
If I can fix it, don't forget to do the grub step here
ReplyDeleteOk, so I managed to get it to work by faking it first....
ReplyDeletezpool attach -f rpool c5t0d0s0 c5t1d0
wait until zpool status said it was done
zpool detail rpool c5t1d0
zpool attach rpool c5t0d0s0 c5t1d0s0
hmmm...
ReplyDeletemalachi@serveris:~# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/dsk/c5t1d0s0
cannot open/stat device /dev/dsk/c5t1d0s2