ZFS ZFS failed with error 22: Invalid fstype.

Hi all,

Yesterday morning when starting my laptop I encountered the following message:
Code:
Trying to mount root from zfs:zroot/ROOT/default []...
Mounting from zfs:zroot/ROOT/default failed with error 22: retrying for 3 more seconds
Mounting from zfs:zroot/ROOT/default failed with error 22: Invalid fstype

After that I'm thrown to:
Code:
mountroot>

The system is FreeBSD-13.2, Geli+ZFS. No updates were made recently. SSD drive less than 1 year old.

I've then booted from the memory stick and attached the drive with geli. I manage to get to:
Code:
root@:~ # zpool import
pool: zroot
id: <lots of numbers>
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
              zroot                  ONLINE
                 nvd0p4.eli    ONLINE

When trying to import zpool the following happens:
Code:
root@:~ # zpool import zroot
cannot import 'zroot' : no such pool or dataset
                Destroy and re-create the pool from
                a backup source

Suggestion to destroy and re-create is probably great, but not applicable to this situation.
Any other steps / options to try and solve this problem? Thank you in advance for your suggestions.
 
Yes I did but let's see what I tried:
Code:
zpool import -F zroot
cannot import 'zroot' : no such pool or dataset
                Destroy and re-create the pool from
                a backup source

Code:
zpool import -D
no pools available to import

Is this what you mean?
 
Does it make any difference in using zpool import with the numeric id instead of the name? I assume no...
-X might be a last resort. There's also zdb() for more in-depth troubleshooting but I don't know whether that works on exported pools...
 
zpool import with the numeric id does not make any difference. I'll wait with using the -X option, since the man page warns about its usage. Thanks for your help.
 
UPD: there's some progress. I managed to import the pool read-only (booted from Live USB stick):
Code:
mkdir /tmp/myfiles
zpool import -o readonly=on -o altroot=/tmp/myfiles zroot

The following tree structure has been imported:
Code:
root@:/tmp/myfiles # ls
tmp  usr  var  zroot

/usr folder contains the following subfolders:
Code:
home  ports  src

So I have access to my home folder, but not yet to all the other stuff (like all the mysql databases etc.)
 
Back
Top