Hi,
I'm new to all this NAS stuff and while waiting the arrival of my new hardware to build my first NAS, I'm playing with FreeNAS inside virtualbox.
When I try to simmulate a failed drive I do the following:
1. Shutdown FreeNAS
2. Remove one of the drives
3. Boot FreeNAS
4. Check status => shows as degraded, so far so good
5. Shutdown FreeNAS
6. Add a new drive in place of the removed one
7. Boot FreeNAS
8. Check status => shows as degraded
So now I guess I need to take some actions to perform the actual replace.
In the UI I go to view Disks of my pool. And there I hit the replace button of the disk I removed and replaced. But nothing happens. The pool stays degraded.
I can get it replaced in the console of FreeNAS doing following actions:
1. zpool status tank => gives me info on the pool, 1 disk degraded and the name changed by a long id.
2. zpool offline tank <longID> => takes the disk offline
3. zpool replace tank <longID> <nameOfNewDisk>
=> finding the name of the new disk is hit and miss, at the moment I just guess. Is there a way to find the name?
=> if I got the name of the new disk right, it starts a resilvering
4. resilver finished, but still degraded => old and new disk stay in replacing state
5. zpool detach tank <longID> => old diks is gone and pool is ONLINE again.
6. In UI disks don't match reality.
7. In UI export pool
8. In UI auto import
9. Pool is back and UI and disks match reality.
My question is the following: are these the correct steps to take? Can't the UI handle this replace, or is the replace button in the UI something else?
I'm new to all this NAS stuff and while waiting the arrival of my new hardware to build my first NAS, I'm playing with FreeNAS inside virtualbox.
When I try to simmulate a failed drive I do the following:
1. Shutdown FreeNAS
2. Remove one of the drives
3. Boot FreeNAS
4. Check status => shows as degraded, so far so good
5. Shutdown FreeNAS
6. Add a new drive in place of the removed one
7. Boot FreeNAS
8. Check status => shows as degraded
So now I guess I need to take some actions to perform the actual replace.
In the UI I go to view Disks of my pool. And there I hit the replace button of the disk I removed and replaced. But nothing happens. The pool stays degraded.
I can get it replaced in the console of FreeNAS doing following actions:
1. zpool status tank => gives me info on the pool, 1 disk degraded and the name changed by a long id.
2. zpool offline tank <longID> => takes the disk offline
3. zpool replace tank <longID> <nameOfNewDisk>
=> finding the name of the new disk is hit and miss, at the moment I just guess. Is there a way to find the name?
=> if I got the name of the new disk right, it starts a resilvering
4. resilver finished, but still degraded => old and new disk stay in replacing state
5. zpool detach tank <longID> => old diks is gone and pool is ONLINE again.
6. In UI disks don't match reality.
7. In UI export pool
8. In UI auto import
9. Pool is back and UI and disks match reality.
My question is the following: are these the correct steps to take? Can't the UI handle this replace, or is the replace button in the UI something else?