Bill McGonigle
2010-May-07 10:21 UTC
[zfs-discuss] confused about zpool import -f and export
Hi, all,
I think I''m missing a concept with import and export. I''m
working on installing a Nexenta b134 system under Xen, and I have to run the
installer under hvm mode, then I''m trying to get it back up under pv
mode. In that process the controller names change, and that''s where
I''m getting tripped up.
I do a successful install, then I boot OK, but can''t export the root
pool (OK, fine). So, I boot from the installer cd in rescue mode, do an
''import -f'' and then ''export''. That all
goes well.
When I reconfigure the VM and boot back up in pv mode, if I bring it up under
the CD image and do ''zpool import'', I get:
=========root at nexenta_safemode:~# zpool import
pool: syspool
id: 5607125904664422185
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://www.sun.com/msg/ZFS-8000-6X
config:
syspool UNAVAIL missing device
mirror-0 ONLINE
c0t0d0s0 ONLINE
c0t1d0s0 ONLINE
Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
==========
I thought the purpose of the export was to remove concerns about which devices
are in the pool so it could be reassembled on the other side. But, like I said,
I think I''m missing something because ''export''
doesn''t seem to clear this up. Or maybe it does, but I''m not
understanding the other thing that''s supposed to be cleared up. This
worked back on a 20081207 build, so perhaps something has changed?
I''m adding format''s view of the disks and a zdb list below.
Thanks,
-Bill
----------------------------------------
root at nexenta_safemode:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 45597 alt 2 hd 255 sec 126>
/xpvd/xdf at 51712
1. c0t1d0 <DEFAULT cyl 45597 alt 2 hd 255 sec 126>
/xpvd/xdf at 51728
Specify disk (enter its number): ^D
root at nexenta_safemode:~# zdb -l /dev/rdsk/c0t0d0s0
--------------------------------------------
LABEL 0
--------------------------------------------
version: 22
name: ''syspool''
state: 1
txg: 384
pool_guid: 5607125904664422185
hostid: 4905600
hostname: ''nexenta_safemode''
top_guid: 7124011680357776878
guid: 15556832564812580834
vdev_children: 1
vdev_tree:
type: ''mirror''
id: 0
guid: 7124011680357776878
metaslab_array: 23
metaslab_shift: 32
ashift: 9
asize: 750041956352
is_log: 0
create_txg: 4
children[0]:
type: ''disk''
id: 0
guid: 15556832564812580834
path: ''/dev/dsk/c0d0s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00001/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
0,0:a''
whole_disk: 0
create_txg: 4
children[1]:
type: ''disk''
id: 1
guid: 544113268733868414
path: ''/dev/dsk/c0d1s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00002/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
1,0:a''
whole_disk: 0
create_txg: 4
--------------------------------------------
LABEL 1
--------------------------------------------
version: 22
name: ''syspool''
state: 1
txg: 384
pool_guid: 5607125904664422185
hostid: 4905600
hostname: ''nexenta_safemode''
top_guid: 7124011680357776878
guid: 15556832564812580834
vdev_children: 1
vdev_tree:
type: ''mirror''
id: 0
guid: 7124011680357776878
metaslab_array: 23
metaslab_shift: 32
ashift: 9
asize: 750041956352
is_log: 0
create_txg: 4
children[0]:
type: ''disk''
id: 0
guid: 15556832564812580834
path: ''/dev/dsk/c0d0s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00001/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
0,0:a''
whole_disk: 0
create_txg: 4
children[1]:
type: ''disk''
id: 1
guid: 544113268733868414
path: ''/dev/dsk/c0d1s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00002/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
1,0:a''
whole_disk: 0
create_txg: 4
--------------------------------------------
LABEL 2
--------------------------------------------
version: 22
name: ''syspool''
state: 0
txg: 11520
pool_guid: 15023076366841556794
hostid: 8399112
hostname: ''repository''
top_guid: 12107281337513313186
guid: 2101335193002161906
vdev_children: 1
vdev_tree:
type: ''mirror''
id: 0
guid: 12107281337513313186
metaslab_array: 23
metaslab_shift: 32
ashift: 9
asize: 750041956352
is_log: 0
create_txg: 4
children[0]:
type: ''disk''
id: 0
guid: 2101335193002161906
path: ''/dev/dsk/c0d0s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00001/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
0,0:a''
whole_disk: 0
create_txg: 4
children[1]:
type: ''disk''
id: 1
guid: 1675033977484889918
path: ''/dev/dsk/c0d1s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00002/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
1,0:a''
whole_disk: 0
create_txg: 4
--------------------------------------------
LABEL 3
--------------------------------------------
version: 22
name: ''syspool''
state: 0
txg: 11520
pool_guid: 15023076366841556794
hostid: 8399112
hostname: ''repository''
top_guid: 12107281337513313186
guid: 2101335193002161906
vdev_children: 1
vdev_tree:
type: ''mirror''
id: 0
guid: 12107281337513313186
metaslab_array: 23
metaslab_shift: 32
ashift: 9
asize: 750041956352
is_log: 0
create_txg: 4
children[0]:
type: ''disk''
id: 0
guid: 2101335193002161906
path: ''/dev/dsk/c0d0s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00001/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
0,0:a''
whole_disk: 0
create_txg: 4
children[1]:
type: ''disk''
id: 1
guid: 1675033977484889918
path: ''/dev/dsk/c0d1s0''
devid: ''id1,cmdk at AQEMU_HARDDISK=QM00002/a''
phys_path: ''/pci at 0,0/pci-ide at 1,1/ide at 0/cmdk at
1,0:a''
whole_disk: 0
create_txg: 4
--
Bill McGonigle, Owner
BFC Computing, LLC
http://bfccomputing.com/
Telephone: +1.603.448.4440
Email, IM, VOIP: bill at bfccomputing.com
VCard: http://bfccomputing.com/vcard/bill.vcf
Social networks: bill_mcgonigle/bill.mcgonigle
