I am trying to add a mirror disk to a pool which currently holds one vdev with one disk. According to the manual on the Oracle ZFS site this can be done with
# zpool add <pool> mirror <master device> <mirror device>
When I try to simulate this with the -n option everything looks great (even though I need to use -f option since the mirror disk is 2TB whereas the original is only 500GB). However, when I execute the command at the end, I get an error message stating
"cannot add to 'dpool1': one or more devices is currently unavailable".
Does anyone know what might be causing this? Comands and output is shown below.
Thanks,
Bernd
[root@lavazza] ~# zpool status
pool: dpool1
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
dpool1 ONLINE 0 0 0
gptid/2775e008-8ad8-11e2-84d9-001e8c765d9a ONLINE 0 0 0
errors: No known data errors
[root@lavazza] ~# zpool add -n dpool1 mirror /dev/ada1 /dev/ada0
invalid vdev specification
use '-f' to override the following errors:
mirror contains devices of different sizes
[root@lavazza] ~# zpool add -fn dpool1 mirror /dev/ada1 /dev/ada0
would update 'dpool1' to the following configuration:
dpool1
gptid/2775e008-8ad8-11e2-84d9-001e8c765d9a
mirror
ada1
ada0
[root@lavazza] ~# zpool add -f dpool1 mirror /dev/ada1 /dev/ada0
cannot add to 'dpool1': one or more devices is currently unavailable
# zpool add <pool> mirror <master device> <mirror device>
When I try to simulate this with the -n option everything looks great (even though I need to use -f option since the mirror disk is 2TB whereas the original is only 500GB). However, when I execute the command at the end, I get an error message stating
"cannot add to 'dpool1': one or more devices is currently unavailable".
Does anyone know what might be causing this? Comands and output is shown below.
Thanks,
Bernd
[root@lavazza] ~# zpool status
pool: dpool1
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
dpool1 ONLINE 0 0 0
gptid/2775e008-8ad8-11e2-84d9-001e8c765d9a ONLINE 0 0 0
errors: No known data errors
[root@lavazza] ~# zpool add -n dpool1 mirror /dev/ada1 /dev/ada0
invalid vdev specification
use '-f' to override the following errors:
mirror contains devices of different sizes
[root@lavazza] ~# zpool add -fn dpool1 mirror /dev/ada1 /dev/ada0
would update 'dpool1' to the following configuration:
dpool1
gptid/2775e008-8ad8-11e2-84d9-001e8c765d9a
mirror
ada1
ada0
[root@lavazza] ~# zpool add -f dpool1 mirror /dev/ada1 /dev/ada0
cannot add to 'dpool1': one or more devices is currently unavailable