Replace bad disk: stuck at first stage
Posted: 22 Dec 2014 19:38
Hello everybody,
I ran for years a freenas 0.7.2 system with 2 disks in a raid1 array. A few month ago, there were problems in the shutdown process, and, thanks to folks in this forum, it turned out to be a disk problem. The failing disk keeps synchronising with the other one, and the shutdown process cannot close the processes and buffers correctly.
I ordered a new disk, and I got rid of the failing disk (and of the very long shutdown processes) by disconnecting it from the SATA plug, and by asking to the raid to "forget" the disconnected drive. Maybe this was a newbie mistake to do this.
When I received the new disk, I connected it in the computer, and I wanted to format it with an UFS file system, but I could not find it in the dropdown list of the Disks->Format panel.
I also tried to insert it without formatting in the raid array, but it id not work.
Then I searched the forum for a similar problem, and I found the FAQ Item "How to remove/replace a disk in a SoftRAID1 array"
http://wiki.nas4free.org/doku.php?id=faq:0058
I realised that in order to apply this recipe, I should not have removed the old drive before unmounting and deactivating the raid array. Thus I removed the new disk and replaced it with the old one and reinserted it in the array with the webgui (Disks->Softraid->Tools).
The old disk is now in the array, and again stuck in the synchronising status. The "Information" panel in Disks->SoftRaid page displays
The failing disk is again stuck in the synchronizing state, and will probably stay in this state for ever. As a consequence, if I try to unmount the raid array, the changes cannot be applied and the system does not answer to the request (it seems to loop in the command).
What can be done now to make this replacement cleanly ?
gabier
I ran for years a freenas 0.7.2 system with 2 disks in a raid1 array. A few month ago, there were problems in the shutdown process, and, thanks to folks in this forum, it turned out to be a disk problem. The failing disk keeps synchronising with the other one, and the shutdown process cannot close the processes and buffers correctly.
I ordered a new disk, and I got rid of the failing disk (and of the very long shutdown processes) by disconnecting it from the SATA plug, and by asking to the raid to "forget" the disconnected drive. Maybe this was a newbie mistake to do this.
When I received the new disk, I connected it in the computer, and I wanted to format it with an UFS file system, but I could not find it in the dropdown list of the Disks->Format panel.
I also tried to insert it without formatting in the raid array, but it id not work.
Then I searched the forum for a similar problem, and I found the FAQ Item "How to remove/replace a disk in a SoftRAID1 array"
http://wiki.nas4free.org/doku.php?id=faq:0058
I realised that in order to apply this recipe, I should not have removed the old drive before unmounting and deactivating the raid array. Thus I removed the new disk and replaced it with the old one and reinserted it in the array with the webgui (Disks->Softraid->Tools).
The old disk is now in the array, and again stuck in the synchronising status. The "Information" panel in Disks->SoftRaid page displays
Code: Select all
Geom name: RAID1A
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 2
ID: 4213309998
Providers:
1. Name: mirror/RAID1A
Mediasize: 2000398933504 (1.8T)
Sectorsize: 512
Mode: r2w1e2
Consumers:
1. Name: ad8
Mediasize: 2000398934016 (1.8T)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: DIRTY
GenID: 0
SyncID: 2
ID: 911020513
2. Name: ad6
Mediasize: 2000398934016 (1.8T)
Sectorsize: 512
Mode: r1w1e1
State: SYNCHRONIZING
Priority: 0
Flags: DIRTY, SYNCHRONIZING
GenID: 0
SyncID: 2
Synchronized: 1%
ID: 3306752052
What can be done now to make this replacement cleanly ?