Oh dear! Help!
My Truenas 12 has been up a good while, zraid1 with 4 disks. I was experiencing a disk giving me some errors, attempting a replacement, and I think I'm going down the wrong path. The pool was healthy when all this started.
Shut down truenas, replaced the disk exhibiting errors. I verified the serial number of the disk that needed replacement, and triple checked. New disk is equivalent sized 4TB. Affected disk was ada2.
With the new disk in place, started up freenas, bios found the new disk (healthy), into the UI. Storage -> Pools -> Status -> ADA2 -> replace. Error. A bit of googling indicated the new disk has a new gptid, but did not assume ada2 like the old one. So I did some reading (not enough, clearly), followed advice to create some new partitions following another article, then use zpool replace pool1 <id of old disk> gptid/<gptid of /dev/ada2p2>. That sequence also errored. In my infinite wisdom, I thought I need to add the new gptid of ada2p2 to the pool. I did a zpool attach pool1 gptid/<gpti of /dev/ad2p2>. That attached the disk to the pool, but not the zraid1 volume. Ugh! Then I tried to remove the newly added volume, which told me it was not able to because it was in use or something (going by memory now because its been a bit trying and a long night).
Then I had a good idea - I'll shut it down, disconnect the newly added disk, bring it back up again. Now the volume shows UNAVAIL. Uhoh! The original 3 disks are still there, but the pool is offline. I shut it down again, plugged the disk back in, brought it back up again, the pool is still offline.
I tried zpool import, but it shows me this:
The indentation (above) is important. The last vol is not part of the raidz1-0 volume - note that it shows as degraded (but I believe its still OK).
What shows as "FAULTED" - corrupted data - thats the gptid of /dev/ada2p2 which I created. The pool is not online currently, and not part of the raidz1-0 volume. I need to do the following, I think:
Bring the pool online? How?
Remove gptid/3596....dd8b (the faulted/corrupted but empty partition on ada2) from the pool. How do I do that if the pool is not online and won't come online? Yikes!
I suppose first I need to bring the pool online.
I do still have the disk that I removed - it was functional, but just starting to exhibit errors. I have this sinking feeling deep in my stomache... Please help!
My Truenas 12 has been up a good while, zraid1 with 4 disks. I was experiencing a disk giving me some errors, attempting a replacement, and I think I'm going down the wrong path. The pool was healthy when all this started.
Shut down truenas, replaced the disk exhibiting errors. I verified the serial number of the disk that needed replacement, and triple checked. New disk is equivalent sized 4TB. Affected disk was ada2.
With the new disk in place, started up freenas, bios found the new disk (healthy), into the UI. Storage -> Pools -> Status -> ADA2 -> replace. Error. A bit of googling indicated the new disk has a new gptid, but did not assume ada2 like the old one. So I did some reading (not enough, clearly), followed advice to create some new partitions following another article, then use zpool replace pool1 <id of old disk> gptid/<gptid of /dev/ada2p2>. That sequence also errored. In my infinite wisdom, I thought I need to add the new gptid of ada2p2 to the pool. I did a zpool attach pool1 gptid/<gpti of /dev/ad2p2>. That attached the disk to the pool, but not the zraid1 volume. Ugh! Then I tried to remove the newly added volume, which told me it was not able to because it was in use or something (going by memory now because its been a bit trying and a long night).
Then I had a good idea - I'll shut it down, disconnect the newly added disk, bring it back up again. Now the volume shows UNAVAIL. Uhoh! The original 3 disks are still there, but the pool is offline. I shut it down again, plugged the disk back in, brought it back up again, the pool is still offline.
I tried zpool import, but it shows me this:
Code:
oot@nas:~ # zpool import pool: pool1 id: 376450636264426360 state: UNAVAIL status: One or more devices are faulted. action: The pool cannot be imported due to damaged devices or data. config: pool1 UNAVAIL insufficient replicas raidz1-0 DEGRADED gptid/9e01d44b-2b1d-11e8-bac4-4061868fdd8b ONLINE ada1 ONLINE 7971962589655721939 UNAVAIL cannot open gptid/a0ee5a82-7318-11e6-a72c-4061868fdd8b ONLINE gptid/3596ab80-fd78-11eb-8044-4061868fdd8b FAULTED corrupted data root@nas:~ #
The indentation (above) is important. The last vol is not part of the raidz1-0 volume - note that it shows as degraded (but I believe its still OK).
What shows as "FAULTED" - corrupted data - thats the gptid of /dev/ada2p2 which I created. The pool is not online currently, and not part of the raidz1-0 volume. I need to do the following, I think:
Bring the pool online? How?
Remove gptid/3596....dd8b (the faulted/corrupted but empty partition on ada2) from the pool. How do I do that if the pool is not online and won't come online? Yikes!
I suppose first I need to bring the pool online.
I do still have the disk that I removed - it was functional, but just starting to exhibit errors. I have this sinking feeling deep in my stomache... Please help!
Last edited: