Project

General

Profile

Bug #7357

zdb -C reports incorrect vdev path

Added by Piotr Jasiukajtis about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2016-09-05
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

# uname -srv
SunOS 5.11 illumos-03aa4c8 // OpenIndiana /hipster

# zpool status rpool
<...>
        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c4t0d0    ONLINE       0     0     0

# zdb -C | grep path
<...>
            path: '/dev/dsk/c4t2d0s0'
            phys_path: '/pci@0,0/pci15ad,790@11/pci15ad,7e0@3/disk@2,0:a'

# zdb -m rpool
zdb: can't open 'rpool': No such file or directory

# truss -t open zdb -m rpool 2>&1 | grep Err
<...>
/299:   open("/dev/dsk/c4t2d0s0", O_RDONLY)             Err#2 ENOENT

For the record, on a dual boot machine a ZFS on illumos reports Linux device names if the zpool were not exported correctly before reboot. I'm not sure if this was zpool status or zdb.

Also available in: Atom PDF