[OmniOS-discuss] zdb doesn't find a pool
Michael Mounteney
gate03 at landcroft.co.uk
Sun Apr 16 01:19:30 UTC 2017
Hello and apology to Dan to whom I've already mentioned this matter on
IRC.
Summary: zdb doesn't see a pool specified by name.
My (home) server has three pools so:
================================================
# zpool status
pool: rpool
state: ONLINE
scan: scrub repaired 0 in 0h2m with 0 errors on Sun Feb 19 14:01:41
2017 config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c2t0d0s0 ONLINE 0 0 0
errors: No known data errors
pool: vault
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
vault ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
c2t1d0s0 ONLINE 0 0 0
c2t2d0s0 ONLINE 0 0 0
c2t3d0s0 ONLINE 0 0 0
c2t5d0s0 ONLINE 0 0 0
errors: No known data errors
pool: woz
state: ONLINE
scan: resilvered 359G in 8h21m with 0 errors on Fri Mar 17 03:16:51
2017 config:
NAME STATE READ WRITE CKSUM
woz ONLINE 0 0 0
c2t4d0s0 ONLINE 0 0 0
errors: No known data errors
================================================
However, zdb won't see the pool 'woz':
================================================
# zdb vault | head -4
Cached configuration:
version: 5000
name: 'vault'
# zdb woz
zdb: can't open 'woz': No such file or directory
# zdb -l /dev/rdsk/c2t4d0s0 | head -6
--------------------------------------------
LABEL 0
--------------------------------------------
version: 5000
name: 'woz'
state: 0
================================================
So zdb finds pool 'vault' alright but not 'woz'. It will however see
'woz' if it's referred-to by disk. The difference which I think might
be crucial is that 'vault' was created via zpool create, whereas 'woz'
was created via zpool split. In the full output of zdb
-l /dev/rdsk/c2t4d0s0 (omitted here for brevity), there are four labels
numbered 0 to 3. The output is much shorter as well; it doesn't list
the individual file objects as zdb vault does.
Is this worth a mention on https://www.illumos.org/issues ?
______________
Michael Mounteney
More information about the OmniOS-discuss
mailing list