So, I'm running little FreeNAS on ESXi combo under my desk for years.
Tonight, I was doing some networking maintenance and instead of pulling on QSFP handle to unplug the network cable, I accidentally pulled on 8088 handle and pulled SAS cable between the controller (H310) and the disk array (old Rackable) with 8 4TB drives. In that disk array, I have one encrypted RAIDZ2 pool "tank" (yeah, so unique) spanning all 8 drives.
After the boot, "tank" was gone, seems like my FreeNAS completely forgot about it. After a moment of panic, I used my geli key and I was able to unlock all 8 drives using
"geli attach" command. As soon as all disks were unlocked, I attempted the command "zpool import tank". That seemed to work just fine and UI showed tank pool present and healthy. To make sure FreeNAS picked that up, I restarted it and tank pool showed up in the list of pools, this time automatically.
I thought all is good, everything is back, but when I attempted to access my data, there was nothing int the /mnt/tank folder. I was puzzled for a moment, I felt my heart sink. But then I checked the mount point of the "tank" and behold, that pool got mounted to the root. I quickly checked some data and seems like everything is in there, just mounted in the wrong place.
I tried "zpool export tank" and "zpool import tank" again, but again, my pool ended up being in the root.
Can anybody help? What am I missing?
Thanks a lot!
Tonight, I was doing some networking maintenance and instead of pulling on QSFP handle to unplug the network cable, I accidentally pulled on 8088 handle and pulled SAS cable between the controller (H310) and the disk array (old Rackable) with 8 4TB drives. In that disk array, I have one encrypted RAIDZ2 pool "tank" (yeah, so unique) spanning all 8 drives.
After the boot, "tank" was gone, seems like my FreeNAS completely forgot about it. After a moment of panic, I used my geli key and I was able to unlock all 8 drives using
"geli attach" command. As soon as all disks were unlocked, I attempted the command "zpool import tank". That seemed to work just fine and UI showed tank pool present and healthy. To make sure FreeNAS picked that up, I restarted it and tank pool showed up in the list of pools, this time automatically.
I thought all is good, everything is back, but when I attempted to access my data, there was nothing int the /mnt/tank folder. I was puzzled for a moment, I felt my heart sink. But then I checked the mount point of the "tank" and behold, that pool got mounted to the root. I quickly checked some data and seems like everything is in there, just mounted in the wrong place.
I tried "zpool export tank" and "zpool import tank" again, but again, my pool ended up being in the root.
Can anybody help? What am I missing?
Thanks a lot!