Heya all,
I have a FreeNAS setup with RaidZ and 4x3tb hard drives. Today I did something really, really dumb and switched the drives from the onboard SATA to an Adaptec RAID card, and when I went to create the JBOD I instead initalised them as a RAID array. That faint clicking sound that lasted about half a second across all the disks pretty much stopped my heart.
I expected the worst, but when I reset the drives to their original configuration I set the wrong disk as boot drive (I was having a very bad day) and the system said: "This is a FreeNAS data disk and cannot boot.". Gave me hope something remained.
When I finally actually booted it, the Volume could be seen in FreeNAS, but there are no pools there and its status is Unknown. I'm guessing the RAID card erased the partition table but didn't touch anything else.
Is there any way I can recover this partition table? I have backups, of course, but they're a little old and I had just finished a marathon sprint with a bunch of work I'd hate to lose. It seems like there should be a simple fix to this.
Can upload screenshots if it will help but there's not much to tell.
Edit: I watched the boot sequence. As it found each of the disks it said:
GPT Rejected, may not be recoverable.
So that doesn't sound good.
Edi2t: Putting in as much diagnostic information as I can. Here goes. If more is needed, let me know!
Output of camcontrol devlist is:
<ST3000DM001-9YN166 CC9E> at scbus3 target 0 lun 0 (ada0,pass0)
<ST3000DM001-9YN166 CC9E> at scbus4 target 0 lun 0 (ada1,pass1)
<ST3000DM001-1CH166 CC43> at scbus5 target 0 lun 0 (ada2,pass2)
<ST3000DM001-9YN166 CC4H> at scbus6 target 0 lun 0 (ada3,pass3)
<TOSHIBA TransMemory PMAP> at scbus10 target 0 lun 0 (da0,pass4)
Output of sysctl kern.disks is:
kern.disks: da0 ada3 ada2 ada1 ada0
Output of gpart show is:
=> 63 7870401 da0 MBR (3.8G)
63 1930257 1 freebsd [active] (942M)
1930320 63 - free - (31k)
1930383 1930257 2 freebsd (942M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 3965472 - free - (1.9G)
=> 0 1930257 da0s1 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)
I have a FreeNAS setup with RaidZ and 4x3tb hard drives. Today I did something really, really dumb and switched the drives from the onboard SATA to an Adaptec RAID card, and when I went to create the JBOD I instead initalised them as a RAID array. That faint clicking sound that lasted about half a second across all the disks pretty much stopped my heart.
I expected the worst, but when I reset the drives to their original configuration I set the wrong disk as boot drive (I was having a very bad day) and the system said: "This is a FreeNAS data disk and cannot boot.". Gave me hope something remained.
When I finally actually booted it, the Volume could be seen in FreeNAS, but there are no pools there and its status is Unknown. I'm guessing the RAID card erased the partition table but didn't touch anything else.
Is there any way I can recover this partition table? I have backups, of course, but they're a little old and I had just finished a marathon sprint with a bunch of work I'd hate to lose. It seems like there should be a simple fix to this.
Can upload screenshots if it will help but there's not much to tell.
Edit: I watched the boot sequence. As it found each of the disks it said:
GPT Rejected, may not be recoverable.
So that doesn't sound good.
Edi2t: Putting in as much diagnostic information as I can. Here goes. If more is needed, let me know!
Output of camcontrol devlist is:
<ST3000DM001-9YN166 CC9E> at scbus3 target 0 lun 0 (ada0,pass0)
<ST3000DM001-9YN166 CC9E> at scbus4 target 0 lun 0 (ada1,pass1)
<ST3000DM001-1CH166 CC43> at scbus5 target 0 lun 0 (ada2,pass2)
<ST3000DM001-9YN166 CC4H> at scbus6 target 0 lun 0 (ada3,pass3)
<TOSHIBA TransMemory PMAP> at scbus10 target 0 lun 0 (da0,pass4)
Output of sysctl kern.disks is:
kern.disks: da0 ada3 ada2 ada1 ada0
Output of gpart show is:
=> 63 7870401 da0 MBR (3.8G)
63 1930257 1 freebsd [active] (942M)
1930320 63 - free - (31k)
1930383 1930257 2 freebsd (942M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 3965472 - free - (1.9G)
=> 0 1930257 da0s1 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)