|
Description
|
We had a disk failure on our server. After repalcing the disk - it kept its cxtydz number I tried to enable it in zfs after relabelling the disk.
Hewre is the o/p of zpool status:
estale <root> # zpool status
pool: varpool
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://www.sun.com/msg/ZFS-8000-D3
scrub: resilver in progress, 43.08% done, 0h0m to go
config:
NAME STATE READ WRITE CKSUM
varpool DEGRADED 0 0 0
mirror DEGRADED 0 0 0
c0t0d0s3 ONLINE 0 0 0
c1t0d0s3 UNAVAIL 0 0 0 cannot open
mirror ONLINE 0 0 0
c0t6d0s3 ONLINE 0 0 0
c1t6d0s3 ONLINE 0 0 0
mirror DEGRADED 0 0 0
c0t0d0s4 ONLINE 0 0 0
c1t0d0s4 UNAVAIL 0 0 0 cannot open
mirror DEGRADED 0 0 0
c0t0d0s1 ONLINE 0 0 0
replacing DEGRADED 0 0 0
c1t0d0s1/old UNAVAIL 0 0 0 cannot open
c1t0d0s1 ONLINE 0 0 0
mirror ONLINE 0 0 0
c0t6d0s1 ONLINE 0 0 0
c1t6d0s1 ONLINE 0 0 0
errors: No known data errors
I used zpool online to put those devices online:
estale <root> # zpool online varpool c1t0d0s1
Bringing device c1t0d0s1 online
This actually does nothing and does not warn you you should be using the 'replace' option which does work.
estale <root> # zpool replace varpool c1t0d0s1
This does work but does not tell you so but a peek at zpool status shows things are getting better..
estale <root> # zpool status
pool: varpool
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://www.sun.com/msg/ZFS-8000-D3
scrub: resilver in progress, 43.08% done, 0h0m to go
config:
NAME STATE READ WRITE CKSUM
varpool DEGRADED 0 0 0
mirror DEGRADED 0 0 0
c0t0d0s3 ONLINE 0 0 0
c1t0d0s3 UNAVAIL 0 0 0 cannot open
mirror ONLINE 0 0 0
c0t6d0s3 ONLINE 0 0 0
c1t6d0s3 ONLINE 0 0 0
mirror DEGRADED 0 0 0
c0t0d0s4 ONLINE 0 0 0
c1t0d0s4 UNAVAIL 0 0 0 cannot open
mirror DEGRADED 0 0 0
c0t0d0s1 ONLINE 0 0 0
replacing DEGRADED 0 0 0
c1t0d0s1/old UNAVAIL 0 0 0 cannot open
c1t0d0s1 ONLINE 0 0 0
mirror ONLINE 0 0 0
c0t6d0s1 ONLINE 0 0 0
c1t6d0s1 ONLINE 0 0 0
So our idea is zpool online should warn that 'replace' should be used.
|