Trying to create a 1 MiB aligned GPT partition for a root zpool in VirtualBox with FreeBSD-9.0-RC1-amd64 Live CD:
It seems the GEOM writes something to the zfs-partition, thus corrupting it?
I also tested it with a MBR partitioning scheme, same result.
Importing the pool with FreeBSD-8.2 works fine.
Any thoughts?
Code:
# gpart create -s gpt ada0
ada0 created
# gpart add -t freebsd-zfs -b 2048 ada0
ada0p1 added
# zpool create tank ada0p1
cannot mount '/tank': failed to create mountpoint
(this is because livecd root is not writable, but it does not matter here)
# zpool export tank
# zpool import tank
cannot import 'tank': one or more devices is currently unavailable
# zpool import
pool: tank
id: 102288411352558724
state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
see: http://www.sun.com/msg/ZFS-8000-5E
config:
tank FAULTED corrupted data
7405121539160497590 UNAVAIL corrupted data
It seems the GEOM writes something to the zfs-partition, thus corrupting it?
I also tested it with a MBR partitioning scheme, same result.
Importing the pool with FreeBSD-8.2 works fine.
Any thoughts?