How to replace failing raidz drive via CLI? 8.0 Release.

Status
Not open for further replies.

troby

Cadet
Joined
Jun 3, 2011
Messages
9
I have a 4x500 SATA RAIDZ and one drive shows signs of failing (one bad sector can't be relocated using vendor utility or badblocks). Zpool scrub shows the data is OK but I get constant smartd warnings. I have other reasons to believe this drive is genuinely sick. I have ordered a new replacement drive but I'm not sure how to proceed, having failed to accomplish this once before. I believe the previous failure was due to partitioning problems (replacement drive already had MBR partitions on it from a previous application).
The issue is complicated by the fact that if I add in the new drive it will have to go on a separate SATA controller, and when I remove the failing drive, I will move it back to the same port the failing drive is currently on, and remove the temporary controller, so the drive name will change.

My assumptions:
1. It's better to put in the replacement drive on the temporary SATA port and do the zpool replace with all the current data available (since the old drive hasn't failed yet) instead of pulling the old drive and doing the replace with only 3 out of 4 drives. I read this somewhere.
2. I will have problems when I relocate the new drive to a different port and it assumes a different name.
3. I need to partition the replacement drive in advance using gpart, creating a 2GB swap partition and a BSD ZFS partition for the rest of the drive.

If anyone could confirm or deny these assumptions, and tell me how to handle the drive name change if I proceed as I described, I would appreciate it. Or if it's safer just to pull the old drive and then replace, and it will just take longer to rebuild, I would do that.

I'm also willing to wait for 8.0.1, which seems to have fixed some of the zpool replace issues, I'm just not convinced that it will handle the temporary port problem.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
You should take a look at (see update below). A couple of us just went thru this with varied difficulties.

1) you would be fine to put the replacement in a different port with the bad disk still there and do a zpool replace, it may actually work out better for you.

2) The drives do change names, which is where part of the problem is. Version 8.01 fixes this, it actually helped me.

3) You don't need to pre-partition your replacement drive. Once you tell it to do the zpool replace, it will do all that for you.

I'll find the other thread and update here, you might find it helpful.

UPDATE: Here's the other thread http://forums.freenas.org/showthread.php?762-Replacing-a-dead-HDD-questions...-issues...
 
Status
Not open for further replies.
Top