OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: temporal-agent on February 24, 2025, 10:33:14 PM

Title: rescue the config
Post by: temporal-agent on February 24, 2025, 10:33:14 PM
i have a failed upgrade that won't finish booting.  i've tried to reinstall and import the config off the mirrored zfs array, but it can't seem to.  i can't seem to mount the zfs volume in another distro either.

is there any way to rescue the config?
Title: Re: rescue the config
Post by: Patrick M. Hausen on February 24, 2025, 10:44:48 PM
What does "zpool import" in that other distro say as a result?
Title: Re: rescue the config
Post by: temporal-agent on February 24, 2025, 11:25:26 PM
ubuntu 24.04:
failed to mount "zroot"
filesystem type zfs_member not configured in kernel
Title: Re: rescue the config
Post by: Patrick M. Hausen on February 24, 2025, 11:26:55 PM
Try FreeBSD 14.2.

zpool importto check if the pool is found.

zpool import -o altroot=/mnt zrootto perform the real import and not mount it over your live CD.
Title: Re: rescue the config
Post by: temporal-agent on February 25, 2025, 12:14:10 AM
FreeBSD was able to mount it, but i can't find it.

(https://imgur.com/a/0JxKo2o)
Title: Re: rescue the config
Post by: Patrick M. Hausen on February 25, 2025, 12:18:10 AM
/mnt is read-only in that live session it seems. Try e.g. "mkdir /mnt2" and use that instead. Or "mount -u orw /" before the entire "zpool dance". Something like that, I am not at my computer atm. The error message about "read-only" needs to go away, then you will find the data in /mnt/zroot.
Title: Re: rescue the config
Post by: temporal-agent on February 25, 2025, 12:35:53 AM
i mounted it in a temp folder, ls -lah says that there is nothing in zroot.
Title: Re: rescue the config
Post by: Patrick M. Hausen on February 25, 2025, 06:06:04 AM
What does "zfs list" say?