Unable to replace dead disk

Status
Not open for further replies.

gait

Dabbler
Joined
Mar 20, 2012
Messages
10
Hi.

I have FreeNAS 8.2.0 and had a dead disk. I shut the machine down, pulled the disk and replaced it with a new one and booted it up. I ran the zpool status and got the following:
Code:

[root@gans01] ~# zpool status
pool: z01
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'.
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
z01 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
ada2p2 ONLINE 0 0 0
ada3p2 ONLINE 0 0 0
9808651977380028018 UNAVAIL 0 0 0 was /dev/ada4p2
ada5p2 ONLINE 0 0 0

I have tried to run the following command:
# zpool replace z01 9808651977380028018 ada6p2
but I get the following error:
Code:

cannot open 'ada6p2': no such GEOM provider
must be a full path or shorthand device name.

I've tried various combinations, but get the same error message. I am now thinking that prior to shutting down the machine, should I have run a command to remove the dead disk. Can anyone verify this and if so, should i put it back, boot it back up and run it, then shut it down and replace the dead one for a new one? After that, what will I see and what would I need to do then?

Many thanks,
Woz.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Why aren't you following the manual and doing the replacement in accordance with the instructions?

The manual gives you every step to do after you identified the bad disk and are ready to do the replacement..

Try following the steps in the manual and see how those go.
 

gait

Dabbler
Joined
Mar 20, 2012
Messages
10
Thanks. Just what I was looking for. In the meantime, I shut the machine down, put the original disk back in so I could boot it up and then 'offline' it, however, when it booted up I went into the console to check it and it was resilvering. Took just over six minutes and shows the following now:
[root@gans01] ~# zpool status -v
pool: z01
state: ONLINE
scrub: resilver completed after 0h6m with 0 errors on Wed Mar 20 11:49:55 2013
config:

NAME STATE READ WRITE CKSUM
z01 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
ada2p2 ONLINE 0 0 0 284M resilvered
ada3p2 ONLINE 0 0 0
ada4p2 ONLINE 0 0 0 9.90G resilvered
ada5p2 ONLINE 0 0 0

errors: No known data errors

I try to clear this by using zpool clear, but it doesn't go. I'm curious to know what state it is in now even though it is reporting that there are no error, why does the resilvering message remain?

- - - Updated - - -

Thanks. Just what I was looking for. In the meantime, I shut the machine down, put the original disk back in so I could boot it up and then 'offline' it, however, when it booted up I went into the console to check it and it was resilvering. Took just over six minutes and shows the following now:
[root@gans01] ~# zpool status -v
pool: z01
state: ONLINE
scrub: resilver completed after 0h6m with 0 errors on Wed Mar 20 11:49:55 2013
config:

NAME STATE READ WRITE CKSUM
z01 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
ada2p2 ONLINE 0 0 0 284M resilvered
ada3p2 ONLINE 0 0 0
ada4p2 ONLINE 0 0 0 9.90G resilvered
ada5p2 ONLINE 0 0 0

errors: No known data errors

I try to clear this by using zpool clear, but it doesn't go. I'm curious to know what state it is in now even though it is reporting that there are no error, why does the resilvering message remain?
 
Status
Not open for further replies.
Top