Netgate Store

Author Topic: [HOW-TO] Re-install with GEOM_MIRROR for swap  (Read 152 times)

0 Members and 1 Guest are viewing this topic.

Offline enoch85

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • Tech and Me
[HOW-TO] Re-install with GEOM_MIRROR for swap
« on: February 08, 2018, 03:09:59 am »

Just installed pfSense 2.4.2 on a new Firewall and chose to mirror the swap partition which resulted in a GEOM_MIRROR. Both ZFS and the swap are hosted on two SATA-DOM devices with ZFS in a MIRROR.

After some testing I wanted to re-install pfSense to make a clean installation, and when repartitioning the drives as a new ZFS mirror I I ended up with this: gpart: geom 'ada0': File exists

Whatever I tried I didn't succeed to re-install because the GEOM_MIRROR was mounted during install.

So, how did I solve this?
I figured that I could hash out the mount in /etc/fstab, reboot and then destroy the GEOM_MIRROR with

Code: [Select]
gmirror stop swap
gmirror destroy swap

I then rebooted again from USB and successfully installed a new clean pfSense system.

So basically I did this:
1. Boot as normal
2. Press 8 to access shell
3. vi /etc/fstab
4. Comment out the /dev/mirrir/swap
5. Reboot
6. press 8 to access shell
7. gmirror stop swap && gmirror destroy swap
8. Reboot with USB
9. Re-install

Hope it helps someone out there.

I think that you should automatically unmount any drives that are mounted in the installer to be able to skip the above steps. Please fix this "bug" in the upcoming releases.

« Last Edit: February 08, 2018, 03:14:39 am by enoch85 »