An SSD I used in FreeBSD for long time for bhyve guests. One day I connected it to a Linux box (Debian 10).
After importing/exporting zpool in Linux I cannot use this disk in FreeBSD anymore:
Tried to clear labels:
As you can see the labels contain wrong device node /dev/sdc:
Thanks for ideas!
After importing/exporting zpool in Linux I cannot use this disk in FreeBSD anymore:
Code:
# zpool import
pool: zoo
id: 3177752991675440138
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-3C
config:
zoo UNAVAIL insufficient replicas
17532632771465056131 UNAVAIL cannot open
Code:
# zpool labelclear /dev/ada1
failed to open /dev/ada1: Operation not permitted
Code:
% zdb -l /dev/ada1
------------------------------------
LABEL 0
------------------------------------
failed to unpack label 0
------------------------------------
LABEL 1
------------------------------------
version: 5000
name: 'zoo'
state: 1
txg: 18618516
pool_guid: 3177752991675440138
errata: 0
hostname: 'aspen32'
top_guid: 17532632771465056131
guid: 17532632771465056131
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 17532632771465056131
path: '/dev/sdc'
whole_disk: 1
metaslab_array: 37
metaslab_shift: 31
ashift: 12
asize: 256055705600
is_log: 0
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
------------------------------------
LABEL 2
------------------------------------
version: 5000
name: 'zoo'
state: 1
txg: 18618516
pool_guid: 3177752991675440138
errata: 0
hostname: 'aspen32'
top_guid: 17532632771465056131
guid: 17532632771465056131
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 17532632771465056131
path: '/dev/sdc'
whole_disk: 1
metaslab_array: 37
metaslab_shift: 31
ashift: 12
asize: 256055705600
is_log: 0
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
------------------------------------
LABEL 3
------------------------------------
version: 5000
name: 'zoo'
state: 1
txg: 18618516
pool_guid: 3177752991675440138
errata: 0
hostname: 'aspen32'
top_guid: 17532632771465056131
guid: 17532632771465056131
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 17532632771465056131
path: '/dev/sdc'
whole_disk: 1
metaslab_array: 37
metaslab_shift: 31
ashift: 12
asize: 256055705600
is_log: 0
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data