Thai Nguyen <[email protected]> writes:

> Hi,
>
> I am looking for a way that I can retrieve a disk device name like
> “/dev/dsk/c5d0s0”.  The old codes for other OS, like linux, FreeBSD,
> etc.  I can use command/API like “devnm”, “mount”, “devname_r”, to get
> it.  However, under ZFS, all above command/API returned Volume
> Name/Mount Point, like “/export/home” or “rpool/export/home”
>
> Any one knows how to get the real disk device name, please help.
> Thank you so much in advance.  Thai.

In ZFS there is no reason to assume that a file is on a single
device. It could be spread across dozens of devices depending on the
pool layout. The only meaningful "one thing" that a file is on is either
the dataset (filesystem) or pool.

If you want to see device names used in a ZFS pool you need to use
zpool:

$ zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c3t0d0s0  ONLINE       0     0     0

errors: No known data errors
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to