My Oracle Support Banner

Unable To Import zpool, when the zpool disk is been cloned from another zpool disk. (Doc ID 2850528.1)

Last updated on FEBRUARY 23, 2022

Applies to:

Solaris Operating System - Version 11.4 and later
Information in this document applies to any platform.
A new feature was added in Solaris 11.4

zpool reguid pool

Change the guid of a specified pool. The new guid will be generated
automatically. The command will fail if the pool or any of its
vdevs is not in state HEALTHY or if there are any outstanding FMA
faults.

Symptoms

# zpool import 16360934784915433368
cannot import '16360934784915433368': a pool with that name is already created/imported,
and no additional pools with that name were found

 

We have a zpool as

pool: origpool
id: 1911114640801228349
state: ONLINE
scan: scrub repaired 0 in 1s with 0 errors on Tue Feb 22 19:42:39 2022
config:

NAME STATE READ WRITE CKSUM
origpool ONLINE 0 0 0
c0t5000CCA0708BCFF4d0 ONLINE 0 0 0
errors: No known data errors

 

 

There is also a cloned copy of this zpool on c0t5000CCA0708BD318d0, but this will not show with "zpool import" command. But zdb will show

 

# zdb -l /dev/rdsk/c0t5000CCA0708BD318d0s0
--------------------------------------------------
LABEL 0
--------------------------------------------------
timestamp: 1645577171 UTC: Wed Feb 23 00:46:11 2022
version: 47
name: 'testpool'
state: 0
txg: 22
pool_guid: 1911114640801228349
old_guid: 0
hostid: xxxxxxxxxx
hostname: 'test'
top_guid: 13826808465658521340
guid: 13826808465658521340
vdev_children: 1
vdev_tree:
guid: 13826808465658521340
id: 0
type: 'disk'
path: '/dev/dsk/c0t5000CCA0708BCFF4d0s0'
devid: 'id1,sd@n5000cca0708bcff4/a'
phys_path: '/scsi_vhci/disk@g5000cca0708bcff4:a'
devchassis: '/dev/chassis/SYS/SASBP/HDD1/disk'
chassissn: 'YYYYYYYY'
location: '/SYS/SASBP/HDD1'
whole_disk: 1
metaslab_array: 26
metaslab_shift: 32
ashift: 9
asize: 600113938432
is_log: 0
is_meta: 0
create_txg: 4
--------------------------------------------------
LABEL 1 - CONFIG MATCHES LABEL 0
--------------------------------------------------
--------------------------------------------------
LABEL 2 - CONFIG MATCHES LABEL 0
--------------------------------------------------
--------------------------------------------------
LABEL 3 - CONFIG MATCHES LABEL 0
--------------------------------------------------

 

Note that both the zpools has the same pool_guid

Changes

 A new feature was added in Solaris 11.4

zpool reguid pool

Change the guid of a specified pool. The new guid will be generated
automatically. The command will fail if the pool or any of its
vdevs is not in state HEALTHY or if there are any outstanding FMA
faults.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.