Fix: Broken pfsense zfs pool

So you’ve got a pfsense device with a zfs root that probably got rebooted unexpectedly and now won’t boot? If this is your situation, read on for directions on how to get back up and running quickly without a reinstall.
ZFS Boot error due to pool issue
  • You will need to use the pfSense installation environment to fix this. Create a USB Memstick and boot your pfSense device into Single User mode on the memstick (boot option 2).
Single user is your friend here
  • Use the following commands once the device is booted into single user mode from the memstick:
#list detected zfs pools. Default pool is pfSense
zpool import

#zpool soft import (this will probably fail)
zpool import -f (pool name, case-sensitive)

#example import for zpool named pfSense:
zpool import -f pfSense

#zpool force import
zpool import -F (pool name, case-sensitive)

#example force import for zpool named pfSense:
zpool import -F pfSense

#it's a good idea to run a scrub after the recovery:
zpool scrub (pool name, case-sensitive)
Faulted pool
Example faulted pool
Successfully recovered pool

Leave a Reply

Your email address will not be published. Required fields are marked *