Bug 210986

Summary: Conflict ZFS with GEOM ?
Product: Base System Reporter: natt <midnatt>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: amd64, grahamperrin
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description natt 2016-07-10 19:51:29 UTC
/root# gpart show
=>       63  234441585  ada0  MBR  (112G)
         63          1        - free -  (512B)
         64  234441576     1  freebsd  [active]  (112G)
  234441640          8        - free -  (4.0K)

=>        0  234441576  ada0s1  BSD  (112G)
          0  230686720       1  freebsd-zfs  (110G)
  230686720    3754856          - free -  (1.8G)

/root# gpart add -t freebsd-swap ada0s1
/root# gpart show
=>       63  234441585  ada0  MBR  (112G)
         63          1        - free -  (512B)
         64  234441576     1  freebsd  [active]  (112G)
  234441640          8        - free -  (4.0K)

=>        0  234441576  ada0s1  BSD  (112G)
          0  230686720       1  freebsd-zfs  (110G)
  230686720    3754856       2  freebsd-swap  (1.8G)

/root# reboot

/* FreeBSD will not boot */
...
Mounting from zfs:zroot failed with error 22.

Loader variables:
	vfs.root.mountfrom=zfs:zroot
...

/* Recovery from usb memstick: */

# gpart delete -i 2 ada0s1
# reboot

/* and FreeBSD boot back into normal */