I tried to follow the wiki, but something does not seem to be right.
I got a dropped disk, so I shutdown and replaced the disk in the same slot and with the same cable connected to the same sata port.
What I got was:
but got
Code: Select all
nas4free:~# zpool status
pool: tank
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: resilvered 236K in 0h0m with 0 errors on Mon Jun 1 21:03:53 2015
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ada5p2 ONLINE 0 0 0
ada0p2 ONLINE 0 0 0
ada4p2 ONLINE 0 0 0
3012169731482246756 UNAVAIL 0 0 0 was /dev/ada1p2
ada2p2 ONLINE 0 0 0
ada3p2 ONLINE 0 0 0
The wiki says I should replace the disk with the command
.
and provides the example:
On my system I tried the following:
But got back:
Code: Select all
cannot open 'ada1p2': no such GEOM provider.
must be a full path or shorthand device name
The wiki also proves an example:
Code: Select all
zpool replace tank 8771208834592470066 ada1p1
Again on my system:
Code: Select all
zpool replace tank 3012169731482246756 ada1p2
but I got back:
Code: Select all
cannot open 'ada1p2': no such GEOM provider
must be a full path or shorthand device name
In fact I tried all kind of combinations:
"zpool replace tank ada1" => "cannot replace ada1 with ada1: no such device in pool"
"zpool replace tank /dev/ada1p2" => "cannot open '/dev/ada1p2': No such file or directory"
"zpool replace tank /dev/ada1" => "cannot replace /dev/ada1 with /dev/ada1: no such device in pool"
"zpool replace tank 30121697317482246756" => "cannot open '30121697317482246756': no such GEOM provider. must be a full path or shorthand device name"
"zpool replace tank 3012169731482246756 ada1p2" => "cannot open 'ada1p2': no such GEOM provider. must be a full path or shorthand device name"
"zpool replace tank 3012169731482246756 /dev/ada1p2 => "cannot open '/dev/ada1p2': No such file or directory"
Until I hit on:
Code: Select all
zpool replace tank 3012169731482246756 /dev/ada1
Bingo ...
Maybe it was just my machine, but what are the rules for the name of the BAD disk that should be used ?
Thanks
Ian