StephenFry
Contributor
- Joined
- Apr 9, 2012
- Messages
- 171
In my testing of a three drive RAIDZ, I had big trouble using a hdd that was previously in a zpool as replacement drive for a (simulated) failed disk.
So I went out and bought a brand-new, totally empty drive.
This time things went much more smoothly, but only up to a certain point.
Here is what I did:
I offlined the disk that was to be replaced. I did this in the CLI
Then I shut down, and physically replaced the old with the new drive.
Booted up and in the GUI clicked Replace next to the old drive and selected the new drive.
Again in the GUI, I detached the old drive.
This all went very smoothly, and I didn't get the weird responses like before.
Using the zpool status on the CLI, I monitored the process of resilvering, which took 3m on my small amount of testdata.
However, the pool is still now still DEGRADED:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
- raidz1 DEGRADED 0 0 0
-- replacing ONLINE 0 0 0
--- ada1p2 ONLINE 0 0 0
--- ada0p2 ONLINE 0 0 0
-- ada2p2 ONLINE 0 0 0
-- ada1p2 OFFLINE 0 0 0
errors: No known data errors
[root@freenas] ~#
(edited to add hyphens to show the right indents)
And when I go in the GUI and click on zpool status, I get "Sorry, an error occured".
I don't even know how to interpret the status data from the CLI, because it seems to me there are *TWO* ada1p2 drives. So when I online ada1p2, even though I can hear the drive being accessed, nothing actualy happens.
Please please please what do I do to get this pool out of degraded state? ZFS is doing my head in :(
So I went out and bought a brand-new, totally empty drive.
This time things went much more smoothly, but only up to a certain point.
Here is what I did:
I offlined the disk that was to be replaced. I did this in the CLI
Then I shut down, and physically replaced the old with the new drive.
Booted up and in the GUI clicked Replace next to the old drive and selected the new drive.
Again in the GUI, I detached the old drive.
This all went very smoothly, and I didn't get the weird responses like before.
Using the zpool status on the CLI, I monitored the process of resilvering, which took 3m on my small amount of testdata.
However, the pool is still now still DEGRADED:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
- raidz1 DEGRADED 0 0 0
-- replacing ONLINE 0 0 0
--- ada1p2 ONLINE 0 0 0
--- ada0p2 ONLINE 0 0 0
-- ada2p2 ONLINE 0 0 0
-- ada1p2 OFFLINE 0 0 0
errors: No known data errors
[root@freenas] ~#
(edited to add hyphens to show the right indents)
And when I go in the GUI and click on zpool status, I get "Sorry, an error occured".
I don't even know how to interpret the status data from the CLI, because it seems to me there are *TWO* ada1p2 drives. So when I online ada1p2, even though I can hear the drive being accessed, nothing actualy happens.
Please please please what do I do to get this pool out of degraded state? ZFS is doing my head in :(