One drive broke in a mirror and I need to replace it. As I have no other free bay in my macpro, I will shutdown the machine, replace the disk, and then replace it the pool. Only, I am a little bit confused on how to tell zfs to replace the disk. Here is the output of zpool status :
- Code: Select all
[laposte:: 11:01] [~] % 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://zfsonlinux.org/msg/ZFS-8000-2Q
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
6734521404759107096 UNAVAIL 0 0 0 was /private/var/run/disk/by-id/media-18B90BE0-2EC5-E540-A7CD-F16A413B49E6
media-91DF301F-52AC-2947-9952-9BF2B32E7271 ONLINE 0 0 0
errors: No known data errors
[laposte:: 11:02] [~] %
Only, What would be the command to tell zfs to replace the unavailable disk with the new one I will put in the machine, assuming the drive becomes /dev/disk3 ? I find that oracle's page http://docs.oracle.com/cd/E19253-01/819-5461/gazgd/index.html is not helpful when I look at my output.